xrk-components 2.0.0-beta.92 → 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 +5 -13
- package/lib/index.umd.js +5 -13
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -76284,14 +76284,6 @@ 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
|
-
};
|
|
76295
76287
|
var transformData = function (data) {
|
|
76296
76288
|
if (!Array.isArray(data) || !data.length)
|
|
76297
76289
|
return [];
|
|
@@ -76303,7 +76295,6 @@ var script$9 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$9
|
|
|
76303
76295
|
childrenKey: childrenKey
|
|
76304
76296
|
});
|
|
76305
76297
|
}
|
|
76306
|
-
privateData(data);
|
|
76307
76298
|
return data;
|
|
76308
76299
|
};
|
|
76309
76300
|
var handleSortChange = function (info) {
|
|
@@ -76449,6 +76440,7 @@ var script$8 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$8
|
|
|
76449
76440
|
var rowKey = (props === null || props === void 0 ? void 0 : props.prop) || 'id';
|
|
76450
76441
|
var childrenKey = ((_b = props === null || props === void 0 ? void 0 : props.treeProps) === null || _b === void 0 ? void 0 : _b.children) || 'children';
|
|
76451
76442
|
var _selectionAllLoading = ref(false);
|
|
76443
|
+
var _selectionRowLoading = ref(false);
|
|
76452
76444
|
var BaseTableColumnHeaderSelectionLabelRender = defineComponent({
|
|
76453
76445
|
name: 'table-column-header-selection-label-render',
|
|
76454
76446
|
props: ['size'],
|
|
@@ -76652,10 +76644,10 @@ var script$8 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$8
|
|
|
76652
76644
|
return __generator(this, function (_c) {
|
|
76653
76645
|
switch (_c.label) {
|
|
76654
76646
|
case 0:
|
|
76655
|
-
if (_selectionDisabled(row) ||
|
|
76647
|
+
if (_selectionDisabled(row) || _selectionRowLoading.value)
|
|
76656
76648
|
return [2 /*return*/];
|
|
76657
76649
|
if (!props.prop) return [3 /*break*/, 16];
|
|
76658
|
-
|
|
76650
|
+
_selectionRowLoading.value = true;
|
|
76659
76651
|
_c.label = 1;
|
|
76660
76652
|
case 1:
|
|
76661
76653
|
_c.trys.push([1, 14, 15, 16]);
|
|
@@ -76711,7 +76703,7 @@ var script$8 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$8
|
|
|
76711
76703
|
console.log('handleCheckboxClick error', error_2);
|
|
76712
76704
|
return [3 /*break*/, 16];
|
|
76713
76705
|
case 15:
|
|
76714
|
-
|
|
76706
|
+
_selectionRowLoading.value = false;
|
|
76715
76707
|
return [7 /*endfinally*/];
|
|
76716
76708
|
case 16: return [2 /*return*/];
|
|
76717
76709
|
}
|
|
@@ -76766,7 +76758,7 @@ var script$8 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$8
|
|
|
76766
76758
|
"model-value": unref(checked)(row),
|
|
76767
76759
|
disabled: _selectionDisabled(row)
|
|
76768
76760
|
}, null, 8 /* PROPS */, ["model-value", "disabled"]), [
|
|
76769
|
-
[unref(vLoading$1),
|
|
76761
|
+
[unref(vLoading$1), _selectionRowLoading.value]
|
|
76770
76762
|
])
|
|
76771
76763
|
], 8 /* PROPS */, _hoisted_1$5))
|
|
76772
76764
|
: (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
package/lib/index.umd.js
CHANGED
|
@@ -76287,14 +76287,6 @@ 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
|
-
};
|
|
76298
76290
|
var transformData = function (data) {
|
|
76299
76291
|
if (!Array.isArray(data) || !data.length)
|
|
76300
76292
|
return [];
|
|
@@ -76306,7 +76298,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76306
76298
|
childrenKey: childrenKey
|
|
76307
76299
|
});
|
|
76308
76300
|
}
|
|
76309
|
-
privateData(data);
|
|
76310
76301
|
return data;
|
|
76311
76302
|
};
|
|
76312
76303
|
var handleSortChange = function (info) {
|
|
@@ -76452,6 +76443,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76452
76443
|
var rowKey = (props === null || props === void 0 ? void 0 : props.prop) || 'id';
|
|
76453
76444
|
var childrenKey = ((_b = props === null || props === void 0 ? void 0 : props.treeProps) === null || _b === void 0 ? void 0 : _b.children) || 'children';
|
|
76454
76445
|
var _selectionAllLoading = vue.ref(false);
|
|
76446
|
+
var _selectionRowLoading = vue.ref(false);
|
|
76455
76447
|
var BaseTableColumnHeaderSelectionLabelRender = vue.defineComponent({
|
|
76456
76448
|
name: 'table-column-header-selection-label-render',
|
|
76457
76449
|
props: ['size'],
|
|
@@ -76655,10 +76647,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76655
76647
|
return __generator(this, function (_c) {
|
|
76656
76648
|
switch (_c.label) {
|
|
76657
76649
|
case 0:
|
|
76658
|
-
if (_selectionDisabled(row) ||
|
|
76650
|
+
if (_selectionDisabled(row) || _selectionRowLoading.value)
|
|
76659
76651
|
return [2 /*return*/];
|
|
76660
76652
|
if (!props.prop) return [3 /*break*/, 16];
|
|
76661
|
-
|
|
76653
|
+
_selectionRowLoading.value = true;
|
|
76662
76654
|
_c.label = 1;
|
|
76663
76655
|
case 1:
|
|
76664
76656
|
_c.trys.push([1, 14, 15, 16]);
|
|
@@ -76714,7 +76706,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76714
76706
|
console.log('handleCheckboxClick error', error_2);
|
|
76715
76707
|
return [3 /*break*/, 16];
|
|
76716
76708
|
case 15:
|
|
76717
|
-
|
|
76709
|
+
_selectionRowLoading.value = false;
|
|
76718
76710
|
return [7 /*endfinally*/];
|
|
76719
76711
|
case 16: return [2 /*return*/];
|
|
76720
76712
|
}
|
|
@@ -76769,7 +76761,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76769
76761
|
"model-value": vue.unref(checked)(row),
|
|
76770
76762
|
disabled: _selectionDisabled(row)
|
|
76771
76763
|
}, null, 8 /* PROPS */, ["model-value", "disabled"]), [
|
|
76772
|
-
[vue.unref(vLoading$1),
|
|
76764
|
+
[vue.unref(vLoading$1), _selectionRowLoading.value]
|
|
76773
76765
|
])
|
|
76774
76766
|
], 8 /* PROPS */, _hoisted_1$5))
|
|
76775
76767
|
: (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|