vxe-table 4.10.6-beta.31 → 4.10.6-beta.32
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/es/style.css +1 -1
- package/es/table/src/body.js +6 -6
- package/es/table/src/footer.js +2 -2
- package/es/table/src/header.js +2 -2
- package/es/table/src/table.js +10 -6
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +23 -14
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/body.js +7 -4
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/footer.js +2 -1
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +2 -1
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/table.js +10 -6
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +2 -2
- package/packages/table/src/body.ts +10 -10
- package/packages/table/src/footer.ts +2 -2
- package/packages/table/src/header.ts +2 -2
- package/packages/table/src/table.ts +10 -6
- /package/es/{iconfont.1737526556258.ttf → iconfont.1738648607811.ttf} +0 -0
- /package/es/{iconfont.1737526556258.woff → iconfont.1738648607811.woff} +0 -0
- /package/es/{iconfont.1737526556258.woff2 → iconfont.1738648607811.woff2} +0 -0
- /package/lib/{iconfont.1737526556258.ttf → iconfont.1738648607811.ttf} +0 -0
- /package/lib/{iconfont.1737526556258.woff → iconfont.1738648607811.woff} +0 -0
- /package/lib/{iconfont.1737526556258.woff2 → iconfont.1738648607811.woff2} +0 -0
package/es/table/src/table.js
CHANGED
|
@@ -253,7 +253,8 @@ export default defineComponent({
|
|
|
253
253
|
dragCol: null,
|
|
254
254
|
dragTipText: '',
|
|
255
255
|
isDragResize: false,
|
|
256
|
-
|
|
256
|
+
isRowLoading: false,
|
|
257
|
+
isColLoading: false
|
|
257
258
|
});
|
|
258
259
|
const internalData = {
|
|
259
260
|
tZindex: 0,
|
|
@@ -2580,16 +2581,18 @@ export default defineComponent({
|
|
|
2580
2581
|
scrollYStore.endIndex = 1;
|
|
2581
2582
|
scrollXStore.startIndex = 0;
|
|
2582
2583
|
scrollXStore.endIndex = 1;
|
|
2584
|
+
reactData.isRowLoading = true;
|
|
2583
2585
|
reactData.scrollVMLoading = false;
|
|
2584
2586
|
editStore.insertMaps = {};
|
|
2585
2587
|
editStore.removeMaps = {};
|
|
2586
2588
|
const sYLoad = updateScrollYStatus(fullData);
|
|
2589
|
+
reactData.isDragColMove = false;
|
|
2587
2590
|
reactData.isDragRowMove = false;
|
|
2588
2591
|
// 全量数据
|
|
2589
2592
|
internalData.tableFullData = fullData;
|
|
2590
2593
|
internalData.tableFullTreeData = treeData;
|
|
2591
2594
|
// 缓存数据
|
|
2592
|
-
|
|
2595
|
+
$xeTable.cacheRowMap(true, isReset);
|
|
2593
2596
|
// 原始数据
|
|
2594
2597
|
internalData.tableSynchData = datas;
|
|
2595
2598
|
if (isReset) {
|
|
@@ -2601,7 +2604,7 @@ export default defineComponent({
|
|
|
2601
2604
|
}
|
|
2602
2605
|
// 克隆原数据,用于显示编辑状态,与编辑值做对比
|
|
2603
2606
|
if (keepSource) {
|
|
2604
|
-
|
|
2607
|
+
$xeTable.cacheSourceMap(fullData);
|
|
2605
2608
|
}
|
|
2606
2609
|
if ($xeTable.clearCellAreas && props.mouseConfig) {
|
|
2607
2610
|
$xeTable.clearCellAreas();
|
|
@@ -2659,6 +2662,7 @@ export default defineComponent({
|
|
|
2659
2662
|
if (sYOpts.scrollToTopOnChange) {
|
|
2660
2663
|
targetScrollTop = 0;
|
|
2661
2664
|
}
|
|
2665
|
+
reactData.isRowLoading = false;
|
|
2662
2666
|
calcCellHeight();
|
|
2663
2667
|
// 是否变更虚拟滚动
|
|
2664
2668
|
if (oldScrollYLoad === sYLoad) {
|
|
@@ -2893,11 +2897,10 @@ export default defineComponent({
|
|
|
2893
2897
|
internalData.collectColumn = collectColumn;
|
|
2894
2898
|
const tableFullColumn = getColumnList(collectColumn);
|
|
2895
2899
|
internalData.tableFullColumn = tableFullColumn;
|
|
2896
|
-
reactData.
|
|
2900
|
+
reactData.isColLoading = true;
|
|
2897
2901
|
reactData.isDragColMove = false;
|
|
2898
2902
|
initColumnSort();
|
|
2899
2903
|
return Promise.resolve(restoreCustomStorage()).then(() => {
|
|
2900
|
-
reactData.isLoading = false;
|
|
2901
2904
|
cacheColumnMap();
|
|
2902
2905
|
parseColumns(true).then(() => {
|
|
2903
2906
|
if (reactData.scrollXLoad) {
|
|
@@ -2922,6 +2925,7 @@ export default defineComponent({
|
|
|
2922
2925
|
if ($xeTable.handleUpdateCustomColumn) {
|
|
2923
2926
|
$xeTable.handleUpdateCustomColumn();
|
|
2924
2927
|
}
|
|
2928
|
+
reactData.isColLoading = false;
|
|
2925
2929
|
return $xeTable.recalculate();
|
|
2926
2930
|
});
|
|
2927
2931
|
});
|
|
@@ -9272,7 +9276,7 @@ export default defineComponent({
|
|
|
9272
9276
|
const areaOpts = computeAreaOpts.value;
|
|
9273
9277
|
const loadingOpts = computeLoadingOpts.value;
|
|
9274
9278
|
const isMenu = computeIsMenu.value;
|
|
9275
|
-
const currLoading = reactData.
|
|
9279
|
+
const currLoading = reactData.isColLoading || reactData.isRowLoading || loading;
|
|
9276
9280
|
const resizableOpts = computeResizableOpts.value;
|
|
9277
9281
|
const isArea = mouseConfig && mouseOpts.area;
|
|
9278
9282
|
const columnDragOpts = computeColumnDragOpts.value;
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -3138,7 +3138,7 @@ function eqEmptyValue(cellValue) {
|
|
|
3138
3138
|
;// ./packages/ui/index.ts
|
|
3139
3139
|
|
|
3140
3140
|
|
|
3141
|
-
const version = "4.10.6-beta.
|
|
3141
|
+
const version = "4.10.6-beta.32";
|
|
3142
3142
|
core_.VxeUI.version = version;
|
|
3143
3143
|
core_.VxeUI.tableVersion = version;
|
|
3144
3144
|
core_.VxeUI.setConfig({
|
|
@@ -3583,7 +3583,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3583
3583
|
const {
|
|
3584
3584
|
log: log_log
|
|
3585
3585
|
} = core_.VxeUI;
|
|
3586
|
-
const log_version = `table v${"4.10.6-beta.
|
|
3586
|
+
const log_version = `table v${"4.10.6-beta.32"}`;
|
|
3587
3587
|
const warnLog = log_log.create('warn', log_version);
|
|
3588
3588
|
const errLog = log_log.create('error', log_version);
|
|
3589
3589
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -6622,6 +6622,7 @@ const renderType = 'body';
|
|
|
6622
6622
|
const {
|
|
6623
6623
|
hasFixedColumn,
|
|
6624
6624
|
treeExpandedMaps,
|
|
6625
|
+
isColLoading,
|
|
6625
6626
|
scrollXLoad,
|
|
6626
6627
|
scrollYLoad,
|
|
6627
6628
|
isAllOverflow,
|
|
@@ -6728,7 +6729,7 @@ const renderType = 'body';
|
|
|
6728
6729
|
const tdVNs = tableColumn.map((column, $columnIndex) => {
|
|
6729
6730
|
return renderTdColumn(seq, rowid, fixedType, isOptimizeMode, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, tableColumn, tableData);
|
|
6730
6731
|
});
|
|
6731
|
-
rows.push(columnOpts.drag && columnDragOpts.animation ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(external_commonjs_vue_commonjs2_vue_root_Vue_.TransitionGroup, {
|
|
6732
|
+
rows.push(!isColLoading && columnOpts.drag && columnDragOpts.animation ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(external_commonjs_vue_commonjs2_vue_root_Vue_.TransitionGroup, {
|
|
6732
6733
|
name: `vxe-header--col-list${isDragColMove ? '' : '-disabled'}`,
|
|
6733
6734
|
tag: 'tr',
|
|
6734
6735
|
class: trClass,
|
|
@@ -6857,6 +6858,8 @@ const renderType = 'body';
|
|
|
6857
6858
|
const {
|
|
6858
6859
|
isGroup,
|
|
6859
6860
|
tableData,
|
|
6861
|
+
isRowLoading,
|
|
6862
|
+
isColLoading,
|
|
6860
6863
|
scrollXLoad,
|
|
6861
6864
|
scrollYLoad,
|
|
6862
6865
|
isAllOverflow,
|
|
@@ -6999,9 +7002,9 @@ const renderType = 'body';
|
|
|
6999
7002
|
});
|
|
7000
7003
|
})),
|
|
7001
7004
|
/**
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
rowOpts.drag && rowDragOpts.animation ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(external_commonjs_vue_commonjs2_vue_root_Vue_.TransitionGroup, {
|
|
7005
|
+
* 内容
|
|
7006
|
+
*/
|
|
7007
|
+
!(isRowLoading || isColLoading) && rowOpts.drag && rowDragOpts.animation ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(external_commonjs_vue_commonjs2_vue_root_Vue_.TransitionGroup, {
|
|
7005
7008
|
ref: refBodyTBody,
|
|
7006
7009
|
name: `vxe-body--row-list${isDragRowMove ? '' : '-disabled'}`,
|
|
7007
7010
|
tag: 'tbody'
|
|
@@ -7279,6 +7282,7 @@ const header_renderType = 'header';
|
|
|
7279
7282
|
headerRowStyle
|
|
7280
7283
|
} = tableProps;
|
|
7281
7284
|
const {
|
|
7285
|
+
isColLoading,
|
|
7282
7286
|
isDragColMove
|
|
7283
7287
|
} = tableReactData;
|
|
7284
7288
|
const columnOpts = computeColumnOpts.value;
|
|
@@ -7290,7 +7294,7 @@ const header_renderType = 'header';
|
|
|
7290
7294
|
fixed: fixedType,
|
|
7291
7295
|
type: header_renderType
|
|
7292
7296
|
};
|
|
7293
|
-
if (columnOpts.drag && columnDragOpts.animation) {
|
|
7297
|
+
if (!isColLoading && columnOpts.drag && columnDragOpts.animation) {
|
|
7294
7298
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(external_commonjs_vue_commonjs2_vue_root_Vue_.TransitionGroup, {
|
|
7295
7299
|
key: $rowIndex,
|
|
7296
7300
|
name: `vxe-header--col-list${isDragColMove ? '' : '-disabled'}`,
|
|
@@ -7746,6 +7750,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7746
7750
|
footerRowStyle
|
|
7747
7751
|
} = tableProps;
|
|
7748
7752
|
const {
|
|
7753
|
+
isColLoading,
|
|
7749
7754
|
isDragColMove
|
|
7750
7755
|
} = tableReactData;
|
|
7751
7756
|
const columnOpts = computeColumnOpts.value;
|
|
@@ -7760,7 +7765,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7760
7765
|
fixed: fixedType,
|
|
7761
7766
|
type: footer_renderType
|
|
7762
7767
|
};
|
|
7763
|
-
if (columnOpts.drag && columnDragOpts.animation) {
|
|
7768
|
+
if (!isColLoading && columnOpts.drag && columnDragOpts.animation) {
|
|
7764
7769
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(external_commonjs_vue_commonjs2_vue_root_Vue_.TransitionGroup, {
|
|
7765
7770
|
key: $rowIndex,
|
|
7766
7771
|
name: `vxe-header--col-list${isDragColMove ? '' : '-disabled'}`,
|
|
@@ -10518,7 +10523,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
10518
10523
|
dragCol: null,
|
|
10519
10524
|
dragTipText: '',
|
|
10520
10525
|
isDragResize: false,
|
|
10521
|
-
|
|
10526
|
+
isRowLoading: false,
|
|
10527
|
+
isColLoading: false
|
|
10522
10528
|
});
|
|
10523
10529
|
const internalData = {
|
|
10524
10530
|
tZindex: 0,
|
|
@@ -13284,16 +13290,18 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13284
13290
|
scrollYStore.endIndex = 1;
|
|
13285
13291
|
scrollXStore.startIndex = 0;
|
|
13286
13292
|
scrollXStore.endIndex = 1;
|
|
13293
|
+
reactData.isRowLoading = true;
|
|
13287
13294
|
reactData.scrollVMLoading = false;
|
|
13288
13295
|
editStore.insertMaps = {};
|
|
13289
13296
|
editStore.removeMaps = {};
|
|
13290
13297
|
const sYLoad = updateScrollYStatus(fullData);
|
|
13298
|
+
reactData.isDragColMove = false;
|
|
13291
13299
|
reactData.isDragRowMove = false;
|
|
13292
13300
|
// 全量数据
|
|
13293
13301
|
internalData.tableFullData = fullData;
|
|
13294
13302
|
internalData.tableFullTreeData = treeData;
|
|
13295
13303
|
// 缓存数据
|
|
13296
|
-
|
|
13304
|
+
$xeTable.cacheRowMap(true, isReset);
|
|
13297
13305
|
// 原始数据
|
|
13298
13306
|
internalData.tableSynchData = datas;
|
|
13299
13307
|
if (isReset) {
|
|
@@ -13305,7 +13313,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13305
13313
|
}
|
|
13306
13314
|
// 克隆原数据,用于显示编辑状态,与编辑值做对比
|
|
13307
13315
|
if (keepSource) {
|
|
13308
|
-
|
|
13316
|
+
$xeTable.cacheSourceMap(fullData);
|
|
13309
13317
|
}
|
|
13310
13318
|
if ($xeTable.clearCellAreas && props.mouseConfig) {
|
|
13311
13319
|
$xeTable.clearCellAreas();
|
|
@@ -13361,6 +13369,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13361
13369
|
if (sYOpts.scrollToTopOnChange) {
|
|
13362
13370
|
targetScrollTop = 0;
|
|
13363
13371
|
}
|
|
13372
|
+
reactData.isRowLoading = false;
|
|
13364
13373
|
calcCellHeight();
|
|
13365
13374
|
// 是否变更虚拟滚动
|
|
13366
13375
|
if (oldScrollYLoad === sYLoad) {
|
|
@@ -13624,11 +13633,10 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13624
13633
|
internalData.collectColumn = collectColumn;
|
|
13625
13634
|
const tableFullColumn = getColumnList(collectColumn);
|
|
13626
13635
|
internalData.tableFullColumn = tableFullColumn;
|
|
13627
|
-
reactData.
|
|
13636
|
+
reactData.isColLoading = true;
|
|
13628
13637
|
reactData.isDragColMove = false;
|
|
13629
13638
|
initColumnSort();
|
|
13630
13639
|
return Promise.resolve(restoreCustomStorage()).then(() => {
|
|
13631
|
-
reactData.isLoading = false;
|
|
13632
13640
|
cacheColumnMap();
|
|
13633
13641
|
parseColumns(true).then(() => {
|
|
13634
13642
|
if (reactData.scrollXLoad) {
|
|
@@ -13653,6 +13661,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13653
13661
|
if ($xeTable.handleUpdateCustomColumn) {
|
|
13654
13662
|
$xeTable.handleUpdateCustomColumn();
|
|
13655
13663
|
}
|
|
13664
|
+
reactData.isColLoading = false;
|
|
13656
13665
|
return $xeTable.recalculate();
|
|
13657
13666
|
});
|
|
13658
13667
|
});
|
|
@@ -20970,7 +20979,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
20970
20979
|
const areaOpts = computeAreaOpts.value;
|
|
20971
20980
|
const loadingOpts = computeLoadingOpts.value;
|
|
20972
20981
|
const isMenu = computeIsMenu.value;
|
|
20973
|
-
const currLoading = reactData.
|
|
20982
|
+
const currLoading = reactData.isColLoading || reactData.isRowLoading || loading;
|
|
20974
20983
|
const resizableOpts = computeResizableOpts.value;
|
|
20975
20984
|
const isArea = mouseConfig && mouseOpts.area;
|
|
20976
20985
|
const columnDragOpts = computeColumnDragOpts.value;
|