isCheckedAll: function() {
      if (this.cartList.length === 0) {
        return false;
      } else {
        return !this.cartList.find(item => !item.checked);
      }
    },

改正,加入get()、set()

    isCheckedAll: {
      get: function() {
        if (this.cartList.length === 0) {
          return false;
        } else {
          return !this.cartList.find(item => !item.checked);
        }
      },
      set: function() {}
    },

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
  • 2021-08-29
  • 2021-08-03
猜你喜欢
  • 2022-12-23
  • 2021-05-03
  • 2021-09-18
  • 2021-04-23
  • 2022-12-23
  • 2021-09-08
  • 2021-09-08
相关资源
相似解决方案