xrk-components 2.0.0-beta.91 → 2.0.0-beta.93

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/lib/index.esm.js CHANGED
@@ -76295,13 +76295,7 @@ var script$9 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$9
76295
76295
  childrenKey: childrenKey
76296
76296
  });
76297
76297
  }
76298
- /* 内部额外扩展了源数据属性必须在此添加,防止数据属性的添加导致UI重绘 */
76299
- var privateData = function (data) {
76300
- return data.map(function (item) {
76301
- return __assign(__assign({}, item), { _selectionLoading: false });
76302
- });
76303
- };
76304
- return privateData(data);
76298
+ return data;
76305
76299
  };
76306
76300
  var handleSortChange = function (info) {
76307
76301
  emits('sort-change', info);
@@ -76446,6 +76440,7 @@ var script$8 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$8
76446
76440
  var rowKey = (props === null || props === void 0 ? void 0 : props.prop) || 'id';
76447
76441
  var childrenKey = ((_b = props === null || props === void 0 ? void 0 : props.treeProps) === null || _b === void 0 ? void 0 : _b.children) || 'children';
76448
76442
  var _selectionAllLoading = ref(false);
76443
+ var _selectionRowLoading = ref(false);
76449
76444
  var BaseTableColumnHeaderSelectionLabelRender = defineComponent({
76450
76445
  name: 'table-column-header-selection-label-render',
76451
76446
  props: ['size'],
@@ -76649,10 +76644,10 @@ var script$8 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$8
76649
76644
  return __generator(this, function (_c) {
76650
76645
  switch (_c.label) {
76651
76646
  case 0:
76652
- if (_selectionDisabled(row) || row._selectionLoading)
76647
+ if (_selectionDisabled(row) || _selectionRowLoading.value)
76653
76648
  return [2 /*return*/];
76654
76649
  if (!props.prop) return [3 /*break*/, 16];
76655
- row._selectionLoading = true;
76650
+ _selectionRowLoading.value = true;
76656
76651
  _c.label = 1;
76657
76652
  case 1:
76658
76653
  _c.trys.push([1, 14, 15, 16]);
@@ -76708,7 +76703,7 @@ var script$8 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$8
76708
76703
  console.log('handleCheckboxClick error', error_2);
76709
76704
  return [3 /*break*/, 16];
76710
76705
  case 15:
76711
- row._selectionLoading = false;
76706
+ _selectionRowLoading.value = false;
76712
76707
  return [7 /*endfinally*/];
76713
76708
  case 16: return [2 /*return*/];
76714
76709
  }
@@ -76763,7 +76758,7 @@ var script$8 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$8
76763
76758
  "model-value": unref(checked)(row),
76764
76759
  disabled: _selectionDisabled(row)
76765
76760
  }, null, 8 /* PROPS */, ["model-value", "disabled"]), [
76766
- [unref(vLoading$1), row._selectionLoading]
76761
+ [unref(vLoading$1), _selectionRowLoading.value]
76767
76762
  ])
76768
76763
  ], 8 /* PROPS */, _hoisted_1$5))
76769
76764
  : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
package/lib/index.umd.js CHANGED
@@ -76298,13 +76298,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76298
76298
  childrenKey: childrenKey
76299
76299
  });
76300
76300
  }
76301
- /* 内部额外扩展了源数据属性必须在此添加,防止数据属性的添加导致UI重绘 */
76302
- var privateData = function (data) {
76303
- return data.map(function (item) {
76304
- return __assign(__assign({}, item), { _selectionLoading: false });
76305
- });
76306
- };
76307
- return privateData(data);
76301
+ return data;
76308
76302
  };
76309
76303
  var handleSortChange = function (info) {
76310
76304
  emits('sort-change', info);
@@ -76449,6 +76443,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76449
76443
  var rowKey = (props === null || props === void 0 ? void 0 : props.prop) || 'id';
76450
76444
  var childrenKey = ((_b = props === null || props === void 0 ? void 0 : props.treeProps) === null || _b === void 0 ? void 0 : _b.children) || 'children';
76451
76445
  var _selectionAllLoading = vue.ref(false);
76446
+ var _selectionRowLoading = vue.ref(false);
76452
76447
  var BaseTableColumnHeaderSelectionLabelRender = vue.defineComponent({
76453
76448
  name: 'table-column-header-selection-label-render',
76454
76449
  props: ['size'],
@@ -76652,10 +76647,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76652
76647
  return __generator(this, function (_c) {
76653
76648
  switch (_c.label) {
76654
76649
  case 0:
76655
- if (_selectionDisabled(row) || row._selectionLoading)
76650
+ if (_selectionDisabled(row) || _selectionRowLoading.value)
76656
76651
  return [2 /*return*/];
76657
76652
  if (!props.prop) return [3 /*break*/, 16];
76658
- row._selectionLoading = true;
76653
+ _selectionRowLoading.value = true;
76659
76654
  _c.label = 1;
76660
76655
  case 1:
76661
76656
  _c.trys.push([1, 14, 15, 16]);
@@ -76711,7 +76706,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76711
76706
  console.log('handleCheckboxClick error', error_2);
76712
76707
  return [3 /*break*/, 16];
76713
76708
  case 15:
76714
- row._selectionLoading = false;
76709
+ _selectionRowLoading.value = false;
76715
76710
  return [7 /*endfinally*/];
76716
76711
  case 16: return [2 /*return*/];
76717
76712
  }
@@ -76766,7 +76761,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76766
76761
  "model-value": vue.unref(checked)(row),
76767
76762
  disabled: _selectionDisabled(row)
76768
76763
  }, null, 8 /* PROPS */, ["model-value", "disabled"]), [
76769
- [vue.unref(vLoading$1), row._selectionLoading]
76764
+ [vue.unref(vLoading$1), _selectionRowLoading.value]
76770
76765
  ])
76771
76766
  ], 8 /* PROPS */, _hoisted_1$5))
76772
76767
  : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xrk-components",
3
- "version": "2.0.0-beta.91",
3
+ "version": "2.0.0-beta.93",
4
4
  "description": "",
5
5
  "main": "lib/index.esm.js",
6
6
  "typings": "lib/packages/index.d.ts",