@zkwq/business 0.0.44 → 0.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -23156,13 +23156,19 @@ const PC = {
23156
23156
  },
23157
23157
  methods: {
23158
23158
  selectChange(e) {
23159
- e.key == this.allKey ? (this.checkdKeys = [this.allKey], this.$emit(
23160
- "change",
23161
- []
23162
- )) : (this.single && (this.checkdKeys = []), this.checkdKeys.includes(e.key) ? (this.checkdKeys.splice(this.checkdKeys.indexOf(e.key), 1), this.checkdKeys.length == 0 && (this.checkdKeys = [this.allKey])) : (this.checkdKeys.includes(this.allKey) && this.checkdKeys.splice(this.checkdKeys.indexOf(this.allKey), 1), this.checkdKeys.push(e.key)), this.$emit(
23163
- "change",
23164
- this.itemDatas.filter((t) => this.checkdKeys.includes(t.key)).filter((t) => t.key != this.allKey).map((t) => t.key)
23165
- ));
23159
+ if (e.key == this.allKey)
23160
+ this.checkdKeys = [this.allKey], this.$emit("update:checkList", []), this.$emit(
23161
+ "change",
23162
+ []
23163
+ );
23164
+ else {
23165
+ this.single && (this.checkdKeys = []), this.checkdKeys.includes(e.key) ? (this.checkdKeys.splice(this.checkdKeys.indexOf(e.key), 1), this.checkdKeys.length == 0 && (this.checkdKeys = [this.allKey])) : (this.checkdKeys.includes(this.allKey) && this.checkdKeys.splice(this.checkdKeys.indexOf(this.allKey), 1), this.checkdKeys.push(e.key));
23166
+ let t = this.itemDatas.filter((s) => this.checkdKeys.includes(s.key)).filter((s) => s.key != this.allKey).map((s) => s.key);
23167
+ this.$emit("update:checkList", t), this.$emit(
23168
+ "change",
23169
+ t
23170
+ );
23171
+ }
23166
23172
  }
23167
23173
  }
23168
23174
  }, Wr = {};
@@ -23172,7 +23178,7 @@ var OC = /* @__PURE__ */ b(
23172
23178
  AC,
23173
23179
  !1,
23174
23180
  FC,
23175
- "c6104628",
23181
+ "86916e3a",
23176
23182
  null,
23177
23183
  null
23178
23184
  );
@@ -23310,12 +23316,15 @@ const BC = {
23310
23316
  },
23311
23317
  methods: {
23312
23318
  checkboxChange(e) {
23313
- this.$emit("change", e);
23319
+ let t = this.checkedList.map((s) => s);
23320
+ this.$emit("update:checkList", t), this.$emit("change", t);
23314
23321
  },
23315
23322
  labelClick(e) {
23316
- this.checkedList.includes(e) ? this.checkedList.splice(this.checkedList.indexOf(e), 1) : this.checkedList.push(e), this.$emit(
23323
+ this.checkedList.includes(e) ? this.checkedList.splice(this.checkedList.indexOf(e), 1) : this.checkedList.push(e);
23324
+ let t = this.checkedList.map((s) => s);
23325
+ this.$emit("update:checkList", t), this.$emit(
23317
23326
  "change",
23318
- this.checkedList.map((t) => t)
23327
+ t
23319
23328
  );
23320
23329
  },
23321
23330
  beforeEnter(e) {
@@ -23344,7 +23353,7 @@ var RC = /* @__PURE__ */ b(
23344
23353
  LC,
23345
23354
  !1,
23346
23355
  VC,
23347
- "5603ed3c",
23356
+ "47f376ee",
23348
23357
  null,
23349
23358
  null
23350
23359
  );