xrk-components 2.0.0-beta.90 → 2.0.0-beta.92

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
@@ -76284,6 +76284,14 @@ var script$9 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$9
76284
76284
  var props = _props;
76285
76285
  var BaseTableRef = ref();
76286
76286
  var childrenKey = ((_b = props === null || props === void 0 ? void 0 : props.treeProps) === null || _b === void 0 ? void 0 : _b.children) || 'children';
76287
+ /* 内部额外扩展了源数据属性必须在此添加,防止数据属性的添加导致UI重绘。
76288
+ 并且不能拷贝数据,防止外部使用row时导致数据源不一致
76289
+ */
76290
+ var privateData = function (data) {
76291
+ data.forEach(function (item) {
76292
+ item._selectionLoading = false;
76293
+ });
76294
+ };
76287
76295
  var transformData = function (data) {
76288
76296
  if (!Array.isArray(data) || !data.length)
76289
76297
  return [];
@@ -76295,6 +76303,7 @@ var script$9 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$9
76295
76303
  childrenKey: childrenKey
76296
76304
  });
76297
76305
  }
76306
+ privateData(data);
76298
76307
  return data;
76299
76308
  };
76300
76309
  var handleSortChange = function (info) {
@@ -76752,13 +76761,13 @@ var script$8 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$8
76752
76761
  style: { "display": "inline-block" },
76753
76762
  onClick: withModifiers(function ($event) { return (handleCheckboxClick(row)); }, ["prevent"])
76754
76763
  }, [
76755
- createCommentVNode(" v-loading=\"row._selectionLoading\" "),
76756
- createCommentVNode(" v-loading,导致整个table重绘,待优化先去掉 "),
76757
- createVNode(unref(BaseCheckbox), {
76764
+ withDirectives(createVNode(unref(BaseCheckbox), {
76758
76765
  class: "table-base-checkbox",
76759
76766
  "model-value": unref(checked)(row),
76760
76767
  disabled: _selectionDisabled(row)
76761
- }, null, 8 /* PROPS */, ["model-value", "disabled"])
76768
+ }, null, 8 /* PROPS */, ["model-value", "disabled"]), [
76769
+ [unref(vLoading$1), row._selectionLoading]
76770
+ ])
76762
76771
  ], 8 /* PROPS */, _hoisted_1$5))
76763
76772
  : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
76764
76773
  createTextVNode(toDisplayString(getColumnValue(row, $index, column)), 1 /* TEXT */)
package/lib/index.umd.js CHANGED
@@ -76287,6 +76287,14 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76287
76287
  var props = _props;
76288
76288
  var BaseTableRef = vue.ref();
76289
76289
  var childrenKey = ((_b = props === null || props === void 0 ? void 0 : props.treeProps) === null || _b === void 0 ? void 0 : _b.children) || 'children';
76290
+ /* 内部额外扩展了源数据属性必须在此添加,防止数据属性的添加导致UI重绘。
76291
+ 并且不能拷贝数据,防止外部使用row时导致数据源不一致
76292
+ */
76293
+ var privateData = function (data) {
76294
+ data.forEach(function (item) {
76295
+ item._selectionLoading = false;
76296
+ });
76297
+ };
76290
76298
  var transformData = function (data) {
76291
76299
  if (!Array.isArray(data) || !data.length)
76292
76300
  return [];
@@ -76298,6 +76306,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76298
76306
  childrenKey: childrenKey
76299
76307
  });
76300
76308
  }
76309
+ privateData(data);
76301
76310
  return data;
76302
76311
  };
76303
76312
  var handleSortChange = function (info) {
@@ -76755,13 +76764,13 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76755
76764
  style: { "display": "inline-block" },
76756
76765
  onClick: vue.withModifiers(function ($event) { return (handleCheckboxClick(row)); }, ["prevent"])
76757
76766
  }, [
76758
- vue.createCommentVNode(" v-loading=\"row._selectionLoading\" "),
76759
- vue.createCommentVNode(" v-loading,导致整个table重绘,待优化先去掉 "),
76760
- vue.createVNode(vue.unref(BaseCheckbox), {
76767
+ vue.withDirectives(vue.createVNode(vue.unref(BaseCheckbox), {
76761
76768
  class: "table-base-checkbox",
76762
76769
  "model-value": vue.unref(checked)(row),
76763
76770
  disabled: _selectionDisabled(row)
76764
- }, null, 8 /* PROPS */, ["model-value", "disabled"])
76771
+ }, null, 8 /* PROPS */, ["model-value", "disabled"]), [
76772
+ [vue.unref(vLoading$1), row._selectionLoading]
76773
+ ])
76765
76774
  ], 8 /* PROPS */, _hoisted_1$5))
76766
76775
  : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
76767
76776
  vue.createTextVNode(vue.toDisplayString(getColumnValue(row, $index, column)), 1 /* TEXT */)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xrk-components",
3
- "version": "2.0.0-beta.90",
3
+ "version": "2.0.0-beta.92",
4
4
  "description": "",
5
5
  "main": "lib/index.esm.js",
6
6
  "typings": "lib/packages/index.d.ts",