vxe-table 4.11.0-beta.11 → 4.11.0-beta.2
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/README.md +13 -18
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/edit/hook.js +7 -1
- package/es/table/render/index.js +0 -10
- package/es/table/src/body.js +2 -4
- package/es/table/src/cell.js +0 -3
- package/es/table/src/footer.js +2 -4
- package/es/table/src/header.js +4 -6
- package/es/table/src/table.js +27 -55
- package/es/table/style.css +1 -1
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +1 -1
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +43 -93
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/edit/hook.js +9 -1
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/render/index.js +0 -10
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/body.js +1 -4
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +0 -3
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/footer.js +1 -4
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +3 -6
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/table.js +27 -63
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +1 -1
- package/lib/table/style/style.min.css +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/lib/vxe-table/style/style.css +1 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/table/module/edit/hook.ts +7 -1
- package/packages/table/render/index.ts +0 -10
- package/packages/table/src/body.ts +2 -5
- package/packages/table/src/cell.ts +0 -3
- package/packages/table/src/footer.ts +2 -5
- package/packages/table/src/header.ts +4 -7
- package/packages/table/src/table.ts +28 -59
- package/styles/components/table.scss +1 -1
- package/es/locale/lang/id-ID.js +0 -695
- package/lib/locale/lang/id-ID.js +0 -701
- package/lib/locale/lang/id-ID.min.js +0 -1
- package/packages/locale/lang/id-ID.ts +0 -695
- /package/es/{iconfont.1739840929802.ttf → iconfont.1739506388714.ttf} +0 -0
- /package/es/{iconfont.1739840929802.woff → iconfont.1739506388714.woff} +0 -0
- /package/es/{iconfont.1739840929802.woff2 → iconfont.1739506388714.woff2} +0 -0
- /package/lib/{iconfont.1739840929802.ttf → iconfont.1739506388714.ttf} +0 -0
- /package/lib/{iconfont.1739840929802.woff → iconfont.1739506388714.woff} +0 -0
- /package/lib/{iconfont.1739840929802.woff2 → iconfont.1739506388714.woff2} +0 -0
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.11.0-beta.
|
|
3141
|
+
const version = "4.11.0-beta.2";
|
|
3142
3142
|
core_.VxeUI.version = version;
|
|
3143
3143
|
core_.VxeUI.tableVersion = version;
|
|
3144
3144
|
core_.VxeUI.setConfig({
|
|
@@ -3586,7 +3586,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3586
3586
|
const {
|
|
3587
3587
|
log: log_log
|
|
3588
3588
|
} = core_.VxeUI;
|
|
3589
|
-
const log_version = `table v${"4.11.0-beta.
|
|
3589
|
+
const log_version = `table v${"4.11.0-beta.2"}`;
|
|
3590
3590
|
const warnLog = log_log.create('warn', log_version);
|
|
3591
3591
|
const errLog = log_log.create('error', log_version);
|
|
3592
3592
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -5612,9 +5612,6 @@ const Cell = {
|
|
|
5612
5612
|
class: ['vxe-table--expanded', {
|
|
5613
5613
|
'is--active': isActive
|
|
5614
5614
|
}],
|
|
5615
|
-
onMousedown(evnt) {
|
|
5616
|
-
evnt.stopPropagation();
|
|
5617
|
-
},
|
|
5618
5615
|
onClick(evnt) {
|
|
5619
5616
|
$table.triggerRowExpandEvent(evnt, params);
|
|
5620
5617
|
}
|
|
@@ -6885,7 +6882,6 @@ const renderType = 'body';
|
|
|
6885
6882
|
tableData,
|
|
6886
6883
|
isRowLoading,
|
|
6887
6884
|
isColLoading,
|
|
6888
|
-
overflowX,
|
|
6889
6885
|
scrollXLoad,
|
|
6890
6886
|
scrollYLoad,
|
|
6891
6887
|
isAllOverflow,
|
|
@@ -6915,10 +6911,8 @@ const renderType = 'body';
|
|
|
6915
6911
|
isOptimizeMode = true;
|
|
6916
6912
|
}
|
|
6917
6913
|
}
|
|
6918
|
-
if (fixedType || !overflowX) {
|
|
6919
|
-
renderColumnList = visibleColumn;
|
|
6920
|
-
}
|
|
6921
6914
|
if (fixedType) {
|
|
6915
|
+
renderColumnList = visibleColumn;
|
|
6922
6916
|
if (isOptimizeMode) {
|
|
6923
6917
|
renderColumnList = fixedColumn || [];
|
|
6924
6918
|
}
|
|
@@ -7268,8 +7262,8 @@ const header_renderType = 'header';
|
|
|
7268
7262
|
'is--sortable': column.sortable,
|
|
7269
7263
|
'col--filter': !!filters,
|
|
7270
7264
|
'is--filter-active': hasFilter,
|
|
7271
|
-
'is--drag-active':
|
|
7272
|
-
'is--drag-disabled':
|
|
7265
|
+
'is--drag-active': !column.fixed && !isDisabledDrag && (isCrossDrag || isPeerDrag || !column.parentId),
|
|
7266
|
+
'is--drag-disabled': isDisabledDrag,
|
|
7273
7267
|
'col--current': currentColumn === column
|
|
7274
7268
|
}, headerClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerClassName) ? headerClassName(cellParams) : headerClassName : '', headerCellClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerCellClassName) ? headerCellClassName(cellParams) : headerCellClassName : ''],
|
|
7275
7269
|
style: headerCellStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerCellStyle) ? headerCellStyle(cellParams) : headerCellStyle : null,
|
|
@@ -7352,7 +7346,6 @@ const header_renderType = 'header';
|
|
|
7352
7346
|
} = tableProps;
|
|
7353
7347
|
const {
|
|
7354
7348
|
isGroup,
|
|
7355
|
-
overflowX,
|
|
7356
7349
|
scrollXLoad,
|
|
7357
7350
|
scrollYLoad,
|
|
7358
7351
|
dragCol
|
|
@@ -7376,10 +7369,8 @@ const header_renderType = 'header';
|
|
|
7376
7369
|
isOptimizeMode = true;
|
|
7377
7370
|
}
|
|
7378
7371
|
}
|
|
7379
|
-
if (fixedType || !overflowX) {
|
|
7380
|
-
renderColumnList = visibleColumn;
|
|
7381
|
-
}
|
|
7382
7372
|
if (fixedType) {
|
|
7373
|
+
renderColumnList = visibleColumn;
|
|
7383
7374
|
// 如果是使用优化模式
|
|
7384
7375
|
if (isOptimizeMode) {
|
|
7385
7376
|
renderColumnList = fixedColumn || [];
|
|
@@ -7847,7 +7838,6 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7847
7838
|
} = tableInternalData;
|
|
7848
7839
|
const {
|
|
7849
7840
|
isGroup,
|
|
7850
|
-
overflowX,
|
|
7851
7841
|
scrollXLoad,
|
|
7852
7842
|
scrollYLoad,
|
|
7853
7843
|
dragCol
|
|
@@ -7862,10 +7852,8 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7862
7852
|
isOptimizeMode = true;
|
|
7863
7853
|
}
|
|
7864
7854
|
}
|
|
7865
|
-
if (fixedType || !overflowX) {
|
|
7866
|
-
renderColumnList = visibleColumn;
|
|
7867
|
-
}
|
|
7868
7855
|
if (fixedType) {
|
|
7856
|
+
renderColumnList = visibleColumn;
|
|
7869
7857
|
if (isOptimizeMode) {
|
|
7870
7858
|
renderColumnList = fixedColumn || [];
|
|
7871
7859
|
}
|
|
@@ -11601,7 +11589,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
11601
11589
|
const fullColumnIdData = internalData.fullColumnIdData = {};
|
|
11602
11590
|
const fullColumnFieldData = internalData.fullColumnFieldData = {};
|
|
11603
11591
|
const mouseOpts = computeMouseOpts.value;
|
|
11604
|
-
const expandOpts = computeExpandOpts.value;
|
|
11605
11592
|
const columnOpts = computeColumnOpts.value;
|
|
11606
11593
|
const columnDragOpts = computeColumnDragOpts.value;
|
|
11607
11594
|
const {
|
|
@@ -11707,8 +11694,10 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
11707
11694
|
} else {
|
|
11708
11695
|
tableFullColumn.forEach(handleFunc);
|
|
11709
11696
|
}
|
|
11710
|
-
if (
|
|
11711
|
-
|
|
11697
|
+
if (true) {
|
|
11698
|
+
if (expandColumn && mouseOpts.area) {
|
|
11699
|
+
errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand']);
|
|
11700
|
+
}
|
|
11712
11701
|
}
|
|
11713
11702
|
if (true) {
|
|
11714
11703
|
if (htmlColumn) {
|
|
@@ -11975,9 +11964,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
11975
11964
|
};
|
|
11976
11965
|
};
|
|
11977
11966
|
const updateAfterListIndex = () => {
|
|
11978
|
-
const {
|
|
11979
|
-
treeConfig
|
|
11980
|
-
} = props;
|
|
11981
11967
|
const {
|
|
11982
11968
|
afterFullData,
|
|
11983
11969
|
fullDataRowIdData,
|
|
@@ -11989,9 +11975,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
11989
11975
|
const rowRest = fullAllDataRowIdData[rowid];
|
|
11990
11976
|
const seq = index + 1;
|
|
11991
11977
|
if (rowRest) {
|
|
11992
|
-
|
|
11993
|
-
rowRest.seq = seq;
|
|
11994
|
-
}
|
|
11978
|
+
rowRest.seq = seq;
|
|
11995
11979
|
rowRest._index = index;
|
|
11996
11980
|
} else {
|
|
11997
11981
|
const rest = {
|
|
@@ -13230,7 +13214,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13230
13214
|
delete rExpandLazyLoadedMaps[rowid];
|
|
13231
13215
|
}
|
|
13232
13216
|
reactData.rowExpandLazyLoadedMaps = rExpandLazyLoadedMaps;
|
|
13233
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() =>
|
|
13217
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => tableMethods.recalculate()).then(() => resolve());
|
|
13234
13218
|
});
|
|
13235
13219
|
} else {
|
|
13236
13220
|
resolve();
|
|
@@ -13761,7 +13745,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13761
13745
|
});
|
|
13762
13746
|
};
|
|
13763
13747
|
const handleColumn = collectColumn => {
|
|
13764
|
-
const expandOpts = computeExpandOpts.value;
|
|
13765
13748
|
internalData.collectColumn = collectColumn;
|
|
13766
13749
|
const tableFullColumn = getColumnList(collectColumn);
|
|
13767
13750
|
internalData.tableFullColumn = tableFullColumn;
|
|
@@ -13769,11 +13752,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13769
13752
|
reactData.isDragColMove = false;
|
|
13770
13753
|
initColumnSort();
|
|
13771
13754
|
return Promise.resolve(restoreCustomStorage()).then(() => {
|
|
13772
|
-
const {
|
|
13773
|
-
scrollXLoad,
|
|
13774
|
-
scrollYLoad,
|
|
13775
|
-
expandColumn
|
|
13776
|
-
} = reactData;
|
|
13777
13755
|
cacheColumnMap();
|
|
13778
13756
|
parseColumns(true).then(() => {
|
|
13779
13757
|
if (reactData.scrollXLoad) {
|
|
@@ -13783,9 +13761,11 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13783
13761
|
$xeTable.clearMergeCells();
|
|
13784
13762
|
$xeTable.clearMergeFooterItems();
|
|
13785
13763
|
$xeTable.handleTableData(true);
|
|
13786
|
-
if (
|
|
13787
|
-
|
|
13788
|
-
|
|
13764
|
+
// if (process.env.VUE_APP_VXE_ENV === 'development') {
|
|
13765
|
+
// if ((reactData.scrollXLoad || reactData.scrollYLoad) && reactData.expandColumn) {
|
|
13766
|
+
// warnLog('vxe.error.scrollErrProp', ['column.type=expand'])
|
|
13767
|
+
// }
|
|
13768
|
+
// }
|
|
13789
13769
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
13790
13770
|
if ($xeToolbar) {
|
|
13791
13771
|
$xeToolbar.syncUpdate({
|
|
@@ -14228,16 +14208,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
14228
14208
|
}
|
|
14229
14209
|
}
|
|
14230
14210
|
};
|
|
14231
|
-
const handleRowExpandScroll = () => {
|
|
14232
|
-
const {
|
|
14233
|
-
elemStore
|
|
14234
|
-
} = internalData;
|
|
14235
|
-
const rowExpandEl = refRowExpandElem.value;
|
|
14236
|
-
const bodyScrollElem = getRefElem(elemStore['main-body-scroll']);
|
|
14237
|
-
if (rowExpandEl && bodyScrollElem) {
|
|
14238
|
-
rowExpandEl.scrollTop = bodyScrollElem.scrollTop;
|
|
14239
|
-
}
|
|
14240
|
-
};
|
|
14241
14211
|
tableMethods = {
|
|
14242
14212
|
dispatchEvent,
|
|
14243
14213
|
/**
|
|
@@ -16225,7 +16195,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16225
16195
|
const {
|
|
16226
16196
|
rowExpandedMaps,
|
|
16227
16197
|
rowExpandLazyLoadedMaps,
|
|
16228
|
-
expandColumn
|
|
16198
|
+
expandColumn: column
|
|
16229
16199
|
} = reactData;
|
|
16230
16200
|
const {
|
|
16231
16201
|
fullAllDataRowIdData
|
|
@@ -16241,8 +16211,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16241
16211
|
toggleMethod
|
|
16242
16212
|
} = expandOpts;
|
|
16243
16213
|
const lazyRests = [];
|
|
16244
|
-
const columnIndex =
|
|
16245
|
-
const $columnIndex =
|
|
16214
|
+
const columnIndex = tableMethods.getColumnIndex(column);
|
|
16215
|
+
const $columnIndex = tableMethods.getVMColumnIndex(column);
|
|
16246
16216
|
if (rows) {
|
|
16247
16217
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(rows)) {
|
|
16248
16218
|
rows = [rows];
|
|
@@ -16255,7 +16225,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16255
16225
|
const validRows = toggleMethod ? rows.filter(row => toggleMethod({
|
|
16256
16226
|
$table: $xeTable,
|
|
16257
16227
|
expanded,
|
|
16258
|
-
column
|
|
16228
|
+
column,
|
|
16259
16229
|
columnIndex,
|
|
16260
16230
|
$columnIndex,
|
|
16261
16231
|
row,
|
|
@@ -16288,13 +16258,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16288
16258
|
}
|
|
16289
16259
|
}
|
|
16290
16260
|
reactData.rowExpandedMaps = rExpandedMaps;
|
|
16291
|
-
return Promise.all(lazyRests).then(() =>
|
|
16292
|
-
if (expandColumn) {
|
|
16293
|
-
updateRowExpandStyle();
|
|
16294
|
-
handleRowExpandScroll();
|
|
16295
|
-
}
|
|
16296
|
-
return $xeTable.updateCellAreas();
|
|
16297
|
-
});
|
|
16261
|
+
return Promise.all(lazyRests).then(() => tableMethods.recalculate());
|
|
16298
16262
|
},
|
|
16299
16263
|
/**
|
|
16300
16264
|
* 判断行是否为展开状态
|
|
@@ -16334,7 +16298,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16334
16298
|
if (expList.length) {
|
|
16335
16299
|
tableMethods.recalculate();
|
|
16336
16300
|
}
|
|
16337
|
-
})
|
|
16301
|
+
});
|
|
16338
16302
|
},
|
|
16339
16303
|
clearRowExpandReserve() {
|
|
16340
16304
|
internalData.rowExpandedReserveRowMap = {};
|
|
@@ -16815,8 +16779,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16815
16779
|
mouseConfig
|
|
16816
16780
|
} = props;
|
|
16817
16781
|
const mouseOpts = computeMouseOpts.value;
|
|
16818
|
-
if (mouseConfig && mouseOpts.area && $xeTable.
|
|
16819
|
-
return $xeTable.
|
|
16782
|
+
if (mouseConfig && mouseOpts.area && $xeTable.handleRecalculateCellAreas) {
|
|
16783
|
+
return $xeTable.handleRecalculateCellAreas();
|
|
16820
16784
|
}
|
|
16821
16785
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
16822
16786
|
},
|
|
@@ -18644,7 +18608,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
18644
18608
|
const isSelected = sLen >= vLen;
|
|
18645
18609
|
const halfSelect = !isSelected && (sLen >= 1 || hLen >= 1);
|
|
18646
18610
|
if (checkField) {
|
|
18647
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().
|
|
18611
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, checkField, isSelected);
|
|
18648
18612
|
}
|
|
18649
18613
|
if (isSelected) {
|
|
18650
18614
|
if (!checkField) {
|
|
@@ -18722,7 +18686,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
18722
18686
|
}
|
|
18723
18687
|
vLen++;
|
|
18724
18688
|
});
|
|
18725
|
-
const isSelected =
|
|
18689
|
+
const isSelected = vLen > 0 ? sLen >= vLen : sLen >= rootList.length;
|
|
18726
18690
|
const halfSelect = !isSelected && (sLen >= 1 || hLen >= 1);
|
|
18727
18691
|
reactData.isAllSelected = isSelected;
|
|
18728
18692
|
reactData.isIndeterminate = halfSelect;
|
|
@@ -20724,8 +20688,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
20724
20688
|
updateScrollXSpace() {
|
|
20725
20689
|
const {
|
|
20726
20690
|
isGroup,
|
|
20727
|
-
scrollXLoad
|
|
20728
|
-
overflowX
|
|
20691
|
+
scrollXLoad
|
|
20729
20692
|
} = reactData;
|
|
20730
20693
|
const {
|
|
20731
20694
|
visibleColumn,
|
|
@@ -20745,7 +20708,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
20745
20708
|
const footerElem = tableFooterElem ? tableFooterElem.querySelector('.vxe-table--footer') : null;
|
|
20746
20709
|
const leftSpaceWidth = visibleColumn.slice(0, scrollXStore.startIndex).reduce((previous, column) => previous + column.renderWidth, 0);
|
|
20747
20710
|
let marginLeft = '';
|
|
20748
|
-
if (scrollXLoad
|
|
20711
|
+
if (scrollXLoad) {
|
|
20749
20712
|
marginLeft = `${leftSpaceWidth}px`;
|
|
20750
20713
|
}
|
|
20751
20714
|
if (headerElem) {
|
|
@@ -21562,12 +21525,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
21562
21525
|
warnLog('vxe.error.errLargeData', ['loadData(data), reloadData(data)']);
|
|
21563
21526
|
}
|
|
21564
21527
|
loadTableData(value, true).then(() => {
|
|
21565
|
-
const {
|
|
21566
|
-
scrollXLoad,
|
|
21567
|
-
scrollYLoad,
|
|
21568
|
-
expandColumn
|
|
21569
|
-
} = reactData;
|
|
21570
|
-
const expandOpts = computeExpandOpts.value;
|
|
21528
|
+
// const { scrollXLoad, scrollYLoad, expandColumn } = reactData
|
|
21571
21529
|
internalData.inited = true;
|
|
21572
21530
|
internalData.initStatus = true;
|
|
21573
21531
|
if (!initStatus) {
|
|
@@ -21578,9 +21536,9 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
21578
21536
|
// if (checkboxColumn && internalData.tableFullData.length > 300 && !checkboxOpts.checkField) {
|
|
21579
21537
|
// warnLog('vxe.error.checkProp', ['checkbox-config.checkField'])
|
|
21580
21538
|
// }
|
|
21581
|
-
if ((scrollXLoad || scrollYLoad) && expandColumn
|
|
21582
|
-
|
|
21583
|
-
}
|
|
21539
|
+
// if ((scrollXLoad || scrollYLoad) && expandColumn) {
|
|
21540
|
+
// warnLog('vxe.error.scrollErrProp', ['column.type=expand'])
|
|
21541
|
+
// }
|
|
21584
21542
|
return tableMethods.recalculate();
|
|
21585
21543
|
});
|
|
21586
21544
|
});
|
|
@@ -21624,12 +21582,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
21624
21582
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.showFooter, () => {
|
|
21625
21583
|
reScrollFlag.value++;
|
|
21626
21584
|
});
|
|
21627
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => reactData.overflowX, () => {
|
|
21628
|
-
reScrollFlag.value++;
|
|
21629
|
-
});
|
|
21630
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => reactData.overflowY, () => {
|
|
21631
|
-
reScrollFlag.value++;
|
|
21632
|
-
});
|
|
21633
21585
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(reScrollFlag, () => {
|
|
21634
21586
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
21635
21587
|
tableMethods.recalculate(true).then(() => tableMethods.refreshScroll());
|
|
@@ -23310,6 +23262,9 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
23310
23262
|
});
|
|
23311
23263
|
};
|
|
23312
23264
|
const handleClearEdit = (evnt, targetRow) => {
|
|
23265
|
+
const {
|
|
23266
|
+
mouseConfig
|
|
23267
|
+
} = props;
|
|
23313
23268
|
const {
|
|
23314
23269
|
editStore
|
|
23315
23270
|
} = reactData;
|
|
@@ -23322,6 +23277,7 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
23322
23277
|
column
|
|
23323
23278
|
} = actived;
|
|
23324
23279
|
const validOpts = computeValidOpts.value;
|
|
23280
|
+
const mouseOpts = computeMouseOpts.value;
|
|
23325
23281
|
if (row || column) {
|
|
23326
23282
|
if (targetRow && getRowid($xeTable, targetRow) !== getRowid($xeTable, row)) {
|
|
23327
23283
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
@@ -23349,7 +23305,11 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
23349
23305
|
}
|
|
23350
23306
|
}
|
|
23351
23307
|
}
|
|
23352
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() =>
|
|
23308
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
23309
|
+
if (mouseConfig && mouseOpts.area && $xeTable.handleRecalculateCellAreas) {
|
|
23310
|
+
return $xeTable.handleRecalculateCellAreas();
|
|
23311
|
+
}
|
|
23312
|
+
});
|
|
23353
23313
|
};
|
|
23354
23314
|
const handleEditActive = (params, evnt, isFocus) => {
|
|
23355
23315
|
const {
|
|
@@ -28315,11 +28275,6 @@ render_renderer.mixin({
|
|
|
28315
28275
|
tableFilterDefaultMethod: handleFilterMethod,
|
|
28316
28276
|
tableExportMethod: handleExportSelectMethod
|
|
28317
28277
|
},
|
|
28318
|
-
formatOption: {
|
|
28319
|
-
renderTableDefault(renderOpts, params) {
|
|
28320
|
-
return getCellLabelVNs(renderOpts, params, getSelectCellValue(renderOpts, params));
|
|
28321
|
-
}
|
|
28322
|
-
},
|
|
28323
28278
|
VxeTreeSelect: {
|
|
28324
28279
|
tableAutoFocus: 'input',
|
|
28325
28280
|
renderTableEdit: defaultTableOrTreeSelectEditRender,
|
|
@@ -28328,11 +28283,6 @@ render_renderer.mixin({
|
|
|
28328
28283
|
},
|
|
28329
28284
|
tableExportMethod: handleExportTreeSelectMethod
|
|
28330
28285
|
},
|
|
28331
|
-
formatTree: {
|
|
28332
|
-
renderTableDefault(renderOpts, params) {
|
|
28333
|
-
return getCellLabelVNs(renderOpts, params, getTreeSelectCellValue(renderOpts, params));
|
|
28334
|
-
}
|
|
28335
|
-
},
|
|
28336
28286
|
VxeTableSelect: {
|
|
28337
28287
|
tableAutoFocus: 'input',
|
|
28338
28288
|
renderTableEdit: defaultTableOrTreeSelectEditRender,
|