vxe-table 4.11.0-beta.1 → 4.11.0-beta.10
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 +18 -13
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/id-ID.js +695 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/edit/hook.js +1 -7
- package/es/table/module/export/export-panel.js +8 -0
- package/es/table/module/export/hook.js +30 -11
- package/es/table/render/index.js +10 -0
- package/es/table/src/body.js +4 -2
- package/es/table/src/cell.js +3 -0
- package/es/table/src/footer.js +4 -2
- package/es/table/src/header.js +6 -4
- package/es/table/src/table.js +50 -25
- 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 +127 -51
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/id-ID.js +701 -0
- package/lib/locale/lang/id-ID.min.js +1 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/edit/hook.js +1 -9
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/module/export/export-panel.js +8 -0
- package/lib/table/module/export/hook.js +33 -10
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/render/index.js +10 -0
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/body.js +4 -1
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +3 -0
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/footer.js +4 -1
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +6 -3
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/table.js +56 -25
- 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/locale/lang/id-ID.ts +695 -0
- package/packages/table/module/edit/hook.ts +1 -7
- package/packages/table/module/export/export-panel.ts +9 -0
- package/packages/table/module/export/hook.ts +37 -20
- package/packages/table/render/index.ts +10 -0
- package/packages/table/src/body.ts +5 -2
- package/packages/table/src/cell.ts +3 -0
- package/packages/table/src/footer.ts +5 -2
- package/packages/table/src/header.ts +7 -4
- package/packages/table/src/table.ts +54 -26
- package/styles/components/table.scss +1 -1
- /package/es/{iconfont.1739435040353.ttf → iconfont.1739790215610.ttf} +0 -0
- /package/es/{iconfont.1739435040353.woff → iconfont.1739790215610.woff} +0 -0
- /package/es/{iconfont.1739435040353.woff2 → iconfont.1739790215610.woff2} +0 -0
- /package/lib/{iconfont.1739435040353.ttf → iconfont.1739790215610.ttf} +0 -0
- /package/lib/{iconfont.1739435040353.woff → iconfont.1739790215610.woff} +0 -0
- /package/lib/{iconfont.1739435040353.woff2 → iconfont.1739790215610.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.10";
|
|
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.10"}`;
|
|
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,6 +5612,9 @@ const Cell = {
|
|
|
5612
5612
|
class: ['vxe-table--expanded', {
|
|
5613
5613
|
'is--active': isActive
|
|
5614
5614
|
}],
|
|
5615
|
+
onMousedown(evnt) {
|
|
5616
|
+
evnt.stopPropagation();
|
|
5617
|
+
},
|
|
5615
5618
|
onClick(evnt) {
|
|
5616
5619
|
$table.triggerRowExpandEvent(evnt, params);
|
|
5617
5620
|
}
|
|
@@ -6882,6 +6885,7 @@ const renderType = 'body';
|
|
|
6882
6885
|
tableData,
|
|
6883
6886
|
isRowLoading,
|
|
6884
6887
|
isColLoading,
|
|
6888
|
+
overflowX,
|
|
6885
6889
|
scrollXLoad,
|
|
6886
6890
|
scrollYLoad,
|
|
6887
6891
|
isAllOverflow,
|
|
@@ -6911,8 +6915,10 @@ const renderType = 'body';
|
|
|
6911
6915
|
isOptimizeMode = true;
|
|
6912
6916
|
}
|
|
6913
6917
|
}
|
|
6914
|
-
if (fixedType) {
|
|
6918
|
+
if (fixedType || !overflowX) {
|
|
6915
6919
|
renderColumnList = visibleColumn;
|
|
6920
|
+
}
|
|
6921
|
+
if (fixedType) {
|
|
6916
6922
|
if (isOptimizeMode) {
|
|
6917
6923
|
renderColumnList = fixedColumn || [];
|
|
6918
6924
|
}
|
|
@@ -7262,8 +7268,8 @@ const header_renderType = 'header';
|
|
|
7262
7268
|
'is--sortable': column.sortable,
|
|
7263
7269
|
'col--filter': !!filters,
|
|
7264
7270
|
'is--filter-active': hasFilter,
|
|
7265
|
-
'is--drag-active': !column.fixed && !isDisabledDrag && (isCrossDrag || isPeerDrag || !column.parentId),
|
|
7266
|
-
'is--drag-disabled': isDisabledDrag,
|
|
7271
|
+
'is--drag-active': columnOpts.drag && !column.fixed && !isDisabledDrag && (isCrossDrag || isPeerDrag || !column.parentId),
|
|
7272
|
+
'is--drag-disabled': columnOpts.drag && isDisabledDrag,
|
|
7267
7273
|
'col--current': currentColumn === column
|
|
7268
7274
|
}, 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 : ''],
|
|
7269
7275
|
style: headerCellStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerCellStyle) ? headerCellStyle(cellParams) : headerCellStyle : null,
|
|
@@ -7346,6 +7352,7 @@ const header_renderType = 'header';
|
|
|
7346
7352
|
} = tableProps;
|
|
7347
7353
|
const {
|
|
7348
7354
|
isGroup,
|
|
7355
|
+
overflowX,
|
|
7349
7356
|
scrollXLoad,
|
|
7350
7357
|
scrollYLoad,
|
|
7351
7358
|
dragCol
|
|
@@ -7369,8 +7376,10 @@ const header_renderType = 'header';
|
|
|
7369
7376
|
isOptimizeMode = true;
|
|
7370
7377
|
}
|
|
7371
7378
|
}
|
|
7372
|
-
if (fixedType) {
|
|
7379
|
+
if (fixedType || !overflowX) {
|
|
7373
7380
|
renderColumnList = visibleColumn;
|
|
7381
|
+
}
|
|
7382
|
+
if (fixedType) {
|
|
7374
7383
|
// 如果是使用优化模式
|
|
7375
7384
|
if (isOptimizeMode) {
|
|
7376
7385
|
renderColumnList = fixedColumn || [];
|
|
@@ -7838,6 +7847,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7838
7847
|
} = tableInternalData;
|
|
7839
7848
|
const {
|
|
7840
7849
|
isGroup,
|
|
7850
|
+
overflowX,
|
|
7841
7851
|
scrollXLoad,
|
|
7842
7852
|
scrollYLoad,
|
|
7843
7853
|
dragCol
|
|
@@ -7852,8 +7862,10 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
7852
7862
|
isOptimizeMode = true;
|
|
7853
7863
|
}
|
|
7854
7864
|
}
|
|
7855
|
-
if (fixedType) {
|
|
7865
|
+
if (fixedType || !overflowX) {
|
|
7856
7866
|
renderColumnList = visibleColumn;
|
|
7867
|
+
}
|
|
7868
|
+
if (fixedType) {
|
|
7857
7869
|
if (isOptimizeMode) {
|
|
7858
7870
|
renderColumnList = fixedColumn || [];
|
|
7859
7871
|
}
|
|
@@ -9762,6 +9774,10 @@ const {
|
|
|
9762
9774
|
} = props;
|
|
9763
9775
|
return !defaultOptions.original && defaultOptions.mode === 'current' && (storeData.isPrint || ['html', 'xlsx'].indexOf(defaultOptions.type) > -1);
|
|
9764
9776
|
});
|
|
9777
|
+
// const computeSupportGroup = computed(() => {
|
|
9778
|
+
// const { defaultOptions } = props
|
|
9779
|
+
// return ['html', 'xlsx', 'csv', 'txt'].indexOf(defaultOptions.type) > -1
|
|
9780
|
+
// })
|
|
9765
9781
|
const computeSupportStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
9766
9782
|
const {
|
|
9767
9783
|
defaultOptions
|
|
@@ -9909,6 +9925,7 @@ const {
|
|
|
9909
9925
|
const showSheet = computeShowSheet.value;
|
|
9910
9926
|
const supportMerge = computeSupportMerge.value;
|
|
9911
9927
|
const supportStyle = computeSupportStyle.value;
|
|
9928
|
+
// const supportGroup = computeSupportGroup.value
|
|
9912
9929
|
const slots = defaultOptions.slots || {};
|
|
9913
9930
|
const topSlot = slots.top;
|
|
9914
9931
|
const bottomSlot = slots.bottom;
|
|
@@ -10067,6 +10084,9 @@ const {
|
|
|
10067
10084
|
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10068
10085
|
class: 'vxe-table-export--panel-option-row'
|
|
10069
10086
|
}, [VxeUICheckboxComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUICheckboxComponent, {
|
|
10087
|
+
// modelValue: supportGroup || (isHeader && hasColgroup && supportMerge) ? defaultOptions.isColgroup : false,
|
|
10088
|
+
// title: getI18n('vxe.export.expColgroupTitle'),
|
|
10089
|
+
// disabled: !supportGroup && (!isHeader || !hasColgroup || !supportMerge),
|
|
10070
10090
|
modelValue: isHeader && hasColgroup && supportMerge ? defaultOptions.isColgroup : false,
|
|
10071
10091
|
title: export_panel_getI18n('vxe.export.expColgroupTitle'),
|
|
10072
10092
|
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
@@ -11581,6 +11601,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
11581
11601
|
const fullColumnIdData = internalData.fullColumnIdData = {};
|
|
11582
11602
|
const fullColumnFieldData = internalData.fullColumnFieldData = {};
|
|
11583
11603
|
const mouseOpts = computeMouseOpts.value;
|
|
11604
|
+
const expandOpts = computeExpandOpts.value;
|
|
11584
11605
|
const columnOpts = computeColumnOpts.value;
|
|
11585
11606
|
const columnDragOpts = computeColumnDragOpts.value;
|
|
11586
11607
|
const {
|
|
@@ -11686,10 +11707,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
11686
11707
|
} else {
|
|
11687
11708
|
tableFullColumn.forEach(handleFunc);
|
|
11688
11709
|
}
|
|
11689
|
-
if (
|
|
11690
|
-
|
|
11691
|
-
errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand']);
|
|
11692
|
-
}
|
|
11710
|
+
if (expandColumn && expandOpts.mode !== 'fixed' && mouseOpts.area) {
|
|
11711
|
+
errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand']);
|
|
11693
11712
|
}
|
|
11694
11713
|
if (true) {
|
|
11695
11714
|
if (htmlColumn) {
|
|
@@ -13206,7 +13225,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13206
13225
|
delete rExpandLazyLoadedMaps[rowid];
|
|
13207
13226
|
}
|
|
13208
13227
|
reactData.rowExpandLazyLoadedMaps = rExpandLazyLoadedMaps;
|
|
13209
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() =>
|
|
13228
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => $xeTable.recalculate()).then(() => $xeTable.updateCellAreas()).then(() => resolve());
|
|
13210
13229
|
});
|
|
13211
13230
|
} else {
|
|
13212
13231
|
resolve();
|
|
@@ -13737,6 +13756,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13737
13756
|
});
|
|
13738
13757
|
};
|
|
13739
13758
|
const handleColumn = collectColumn => {
|
|
13759
|
+
const expandOpts = computeExpandOpts.value;
|
|
13740
13760
|
internalData.collectColumn = collectColumn;
|
|
13741
13761
|
const tableFullColumn = getColumnList(collectColumn);
|
|
13742
13762
|
internalData.tableFullColumn = tableFullColumn;
|
|
@@ -13744,6 +13764,11 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13744
13764
|
reactData.isDragColMove = false;
|
|
13745
13765
|
initColumnSort();
|
|
13746
13766
|
return Promise.resolve(restoreCustomStorage()).then(() => {
|
|
13767
|
+
const {
|
|
13768
|
+
scrollXLoad,
|
|
13769
|
+
scrollYLoad,
|
|
13770
|
+
expandColumn
|
|
13771
|
+
} = reactData;
|
|
13747
13772
|
cacheColumnMap();
|
|
13748
13773
|
parseColumns(true).then(() => {
|
|
13749
13774
|
if (reactData.scrollXLoad) {
|
|
@@ -13753,11 +13778,9 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13753
13778
|
$xeTable.clearMergeCells();
|
|
13754
13779
|
$xeTable.clearMergeFooterItems();
|
|
13755
13780
|
$xeTable.handleTableData(true);
|
|
13756
|
-
|
|
13757
|
-
|
|
13758
|
-
|
|
13759
|
-
// }
|
|
13760
|
-
// }
|
|
13781
|
+
if ((scrollXLoad || scrollYLoad) && expandColumn && expandOpts.mode !== 'fixed') {
|
|
13782
|
+
warnLog('vxe.error.scrollErrProp', ['column.type=expand']);
|
|
13783
|
+
}
|
|
13761
13784
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
13762
13785
|
if ($xeToolbar) {
|
|
13763
13786
|
$xeToolbar.syncUpdate({
|
|
@@ -14200,6 +14223,16 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
14200
14223
|
}
|
|
14201
14224
|
}
|
|
14202
14225
|
};
|
|
14226
|
+
const handleRowExpandScroll = () => {
|
|
14227
|
+
const {
|
|
14228
|
+
elemStore
|
|
14229
|
+
} = internalData;
|
|
14230
|
+
const rowExpandEl = refRowExpandElem.value;
|
|
14231
|
+
const bodyScrollElem = getRefElem(elemStore['main-body-scroll']);
|
|
14232
|
+
if (rowExpandEl && bodyScrollElem) {
|
|
14233
|
+
rowExpandEl.scrollTop = bodyScrollElem.scrollTop;
|
|
14234
|
+
}
|
|
14235
|
+
};
|
|
14203
14236
|
tableMethods = {
|
|
14204
14237
|
dispatchEvent,
|
|
14205
14238
|
/**
|
|
@@ -16187,7 +16220,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16187
16220
|
const {
|
|
16188
16221
|
rowExpandedMaps,
|
|
16189
16222
|
rowExpandLazyLoadedMaps,
|
|
16190
|
-
expandColumn
|
|
16223
|
+
expandColumn
|
|
16191
16224
|
} = reactData;
|
|
16192
16225
|
const {
|
|
16193
16226
|
fullAllDataRowIdData
|
|
@@ -16203,8 +16236,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16203
16236
|
toggleMethod
|
|
16204
16237
|
} = expandOpts;
|
|
16205
16238
|
const lazyRests = [];
|
|
16206
|
-
const columnIndex = tableMethods.getColumnIndex(
|
|
16207
|
-
const $columnIndex = tableMethods.getVMColumnIndex(
|
|
16239
|
+
const columnIndex = tableMethods.getColumnIndex(expandColumn);
|
|
16240
|
+
const $columnIndex = tableMethods.getVMColumnIndex(expandColumn);
|
|
16208
16241
|
if (rows) {
|
|
16209
16242
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(rows)) {
|
|
16210
16243
|
rows = [rows];
|
|
@@ -16217,7 +16250,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16217
16250
|
const validRows = toggleMethod ? rows.filter(row => toggleMethod({
|
|
16218
16251
|
$table: $xeTable,
|
|
16219
16252
|
expanded,
|
|
16220
|
-
column,
|
|
16253
|
+
column: expandColumn,
|
|
16221
16254
|
columnIndex,
|
|
16222
16255
|
$columnIndex,
|
|
16223
16256
|
row,
|
|
@@ -16250,7 +16283,13 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16250
16283
|
}
|
|
16251
16284
|
}
|
|
16252
16285
|
reactData.rowExpandedMaps = rExpandedMaps;
|
|
16253
|
-
return Promise.all(lazyRests).then(() =>
|
|
16286
|
+
return Promise.all(lazyRests).then(() => $xeTable.recalculate()).then(() => {
|
|
16287
|
+
if (expandColumn) {
|
|
16288
|
+
updateRowExpandStyle();
|
|
16289
|
+
handleRowExpandScroll();
|
|
16290
|
+
}
|
|
16291
|
+
return $xeTable.updateCellAreas();
|
|
16292
|
+
});
|
|
16254
16293
|
},
|
|
16255
16294
|
/**
|
|
16256
16295
|
* 判断行是否为展开状态
|
|
@@ -16290,7 +16329,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16290
16329
|
if (expList.length) {
|
|
16291
16330
|
tableMethods.recalculate();
|
|
16292
16331
|
}
|
|
16293
|
-
});
|
|
16332
|
+
}).then(() => $xeTable.updateCellAreas());
|
|
16294
16333
|
},
|
|
16295
16334
|
clearRowExpandReserve() {
|
|
16296
16335
|
internalData.rowExpandedReserveRowMap = {};
|
|
@@ -16771,8 +16810,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16771
16810
|
mouseConfig
|
|
16772
16811
|
} = props;
|
|
16773
16812
|
const mouseOpts = computeMouseOpts.value;
|
|
16774
|
-
if (mouseConfig && mouseOpts.area && $xeTable.
|
|
16775
|
-
return $xeTable.
|
|
16813
|
+
if (mouseConfig && mouseOpts.area && $xeTable.handleRecalculateCellAreaEvent) {
|
|
16814
|
+
return $xeTable.handleRecalculateCellAreaEvent();
|
|
16776
16815
|
}
|
|
16777
16816
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
16778
16817
|
},
|
|
@@ -18678,7 +18717,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
18678
18717
|
}
|
|
18679
18718
|
vLen++;
|
|
18680
18719
|
});
|
|
18681
|
-
const isSelected = vLen > 0 ? sLen >= vLen : sLen >= rootList.length;
|
|
18720
|
+
const isSelected = rootList.length > 0 ? vLen > 0 ? sLen >= vLen : sLen >= rootList.length : false;
|
|
18682
18721
|
const halfSelect = !isSelected && (sLen >= 1 || hLen >= 1);
|
|
18683
18722
|
reactData.isAllSelected = isSelected;
|
|
18684
18723
|
reactData.isIndeterminate = halfSelect;
|
|
@@ -20680,7 +20719,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
20680
20719
|
updateScrollXSpace() {
|
|
20681
20720
|
const {
|
|
20682
20721
|
isGroup,
|
|
20683
|
-
scrollXLoad
|
|
20722
|
+
scrollXLoad,
|
|
20723
|
+
overflowX
|
|
20684
20724
|
} = reactData;
|
|
20685
20725
|
const {
|
|
20686
20726
|
visibleColumn,
|
|
@@ -20700,7 +20740,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
20700
20740
|
const footerElem = tableFooterElem ? tableFooterElem.querySelector('.vxe-table--footer') : null;
|
|
20701
20741
|
const leftSpaceWidth = visibleColumn.slice(0, scrollXStore.startIndex).reduce((previous, column) => previous + column.renderWidth, 0);
|
|
20702
20742
|
let marginLeft = '';
|
|
20703
|
-
if (scrollXLoad) {
|
|
20743
|
+
if (scrollXLoad && overflowX) {
|
|
20704
20744
|
marginLeft = `${leftSpaceWidth}px`;
|
|
20705
20745
|
}
|
|
20706
20746
|
if (headerElem) {
|
|
@@ -21517,7 +21557,12 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
21517
21557
|
warnLog('vxe.error.errLargeData', ['loadData(data), reloadData(data)']);
|
|
21518
21558
|
}
|
|
21519
21559
|
loadTableData(value, true).then(() => {
|
|
21520
|
-
|
|
21560
|
+
const {
|
|
21561
|
+
scrollXLoad,
|
|
21562
|
+
scrollYLoad,
|
|
21563
|
+
expandColumn
|
|
21564
|
+
} = reactData;
|
|
21565
|
+
const expandOpts = computeExpandOpts.value;
|
|
21521
21566
|
internalData.inited = true;
|
|
21522
21567
|
internalData.initStatus = true;
|
|
21523
21568
|
if (!initStatus) {
|
|
@@ -21528,9 +21573,9 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
21528
21573
|
// if (checkboxColumn && internalData.tableFullData.length > 300 && !checkboxOpts.checkField) {
|
|
21529
21574
|
// warnLog('vxe.error.checkProp', ['checkbox-config.checkField'])
|
|
21530
21575
|
// }
|
|
21531
|
-
|
|
21532
|
-
|
|
21533
|
-
|
|
21576
|
+
if ((scrollXLoad || scrollYLoad) && expandColumn && expandOpts.mode !== 'fixed') {
|
|
21577
|
+
warnLog('vxe.error.scrollErrProp', ['column.type=expand']);
|
|
21578
|
+
}
|
|
21534
21579
|
return tableMethods.recalculate();
|
|
21535
21580
|
});
|
|
21536
21581
|
});
|
|
@@ -21574,6 +21619,12 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
21574
21619
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.showFooter, () => {
|
|
21575
21620
|
reScrollFlag.value++;
|
|
21576
21621
|
});
|
|
21622
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => reactData.overflowX, () => {
|
|
21623
|
+
reScrollFlag.value++;
|
|
21624
|
+
});
|
|
21625
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => reactData.overflowY, () => {
|
|
21626
|
+
reScrollFlag.value++;
|
|
21627
|
+
});
|
|
21577
21628
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(reScrollFlag, () => {
|
|
21578
21629
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
21579
21630
|
tableMethods.recalculate(true).then(() => tableMethods.refreshScroll());
|
|
@@ -23254,9 +23305,6 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
23254
23305
|
});
|
|
23255
23306
|
};
|
|
23256
23307
|
const handleClearEdit = (evnt, targetRow) => {
|
|
23257
|
-
const {
|
|
23258
|
-
mouseConfig
|
|
23259
|
-
} = props;
|
|
23260
23308
|
const {
|
|
23261
23309
|
editStore
|
|
23262
23310
|
} = reactData;
|
|
@@ -23269,7 +23317,6 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
23269
23317
|
column
|
|
23270
23318
|
} = actived;
|
|
23271
23319
|
const validOpts = computeValidOpts.value;
|
|
23272
|
-
const mouseOpts = computeMouseOpts.value;
|
|
23273
23320
|
if (row || column) {
|
|
23274
23321
|
if (targetRow && getRowid($xeTable, targetRow) !== getRowid($xeTable, row)) {
|
|
23275
23322
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
@@ -23297,11 +23344,7 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
23297
23344
|
}
|
|
23298
23345
|
}
|
|
23299
23346
|
}
|
|
23300
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() =>
|
|
23301
|
-
if (mouseConfig && mouseOpts.area && $xeTable.handleRecalculateCellAreas) {
|
|
23302
|
-
return $xeTable.handleRecalculateCellAreas();
|
|
23303
|
-
}
|
|
23304
|
-
});
|
|
23347
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => $xeTable.updateCellAreas());
|
|
23305
23348
|
};
|
|
23306
23349
|
const handleEditActive = (params, evnt, isFocus) => {
|
|
23307
23350
|
const {
|
|
@@ -25347,9 +25390,13 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
25347
25390
|
*/
|
|
25348
25391
|
exportData(options) {
|
|
25349
25392
|
const {
|
|
25350
|
-
treeConfig
|
|
25393
|
+
treeConfig,
|
|
25394
|
+
showHeader,
|
|
25395
|
+
showFooter
|
|
25351
25396
|
} = props;
|
|
25352
25397
|
const {
|
|
25398
|
+
mergeList,
|
|
25399
|
+
mergeFooterList,
|
|
25353
25400
|
isGroup,
|
|
25354
25401
|
tableGroupColumn
|
|
25355
25402
|
} = reactData;
|
|
@@ -25359,19 +25406,23 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
25359
25406
|
} = internalData;
|
|
25360
25407
|
const exportOpts = computeExportOpts.value;
|
|
25361
25408
|
const treeOpts = computeTreeOpts.value;
|
|
25409
|
+
const proxyOpts = $xeGrid ? $xeGrid.getComputeMaps().computeProxyOpts.value : {};
|
|
25410
|
+
const hasMerge = !!(mergeList.length || mergeFooterList.length);
|
|
25362
25411
|
const opts = Object.assign({
|
|
25412
|
+
message: true,
|
|
25413
|
+
isHeader: showHeader,
|
|
25414
|
+
isFooter: showFooter,
|
|
25415
|
+
isColgroup: isGroup,
|
|
25416
|
+
isMerge: hasMerge,
|
|
25417
|
+
useStyle: true,
|
|
25418
|
+
current: 'current',
|
|
25419
|
+
modes: ['current', 'selected'].concat(proxyOpts.ajax && proxyOpts.ajax.queryAll ? ['all'] : []),
|
|
25420
|
+
download: true,
|
|
25421
|
+
type: 'csv'
|
|
25363
25422
|
// filename: '',
|
|
25364
25423
|
// sheetName: '',
|
|
25365
25424
|
// original: false,
|
|
25366
|
-
// message: false,
|
|
25367
|
-
isHeader: true,
|
|
25368
|
-
isFooter: true,
|
|
25369
|
-
isColgroup: true,
|
|
25370
|
-
// isMerge: false,
|
|
25371
25425
|
// isAllExpand: false,
|
|
25372
|
-
download: true,
|
|
25373
|
-
type: 'csv',
|
|
25374
|
-
mode: 'current'
|
|
25375
25426
|
// data: null,
|
|
25376
25427
|
// remote: false,
|
|
25377
25428
|
// dataFilterMethod: null,
|
|
@@ -25394,7 +25445,22 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
25394
25445
|
excludeFields
|
|
25395
25446
|
} = opts;
|
|
25396
25447
|
let groups = [];
|
|
25397
|
-
const customCols = columns && columns.length ? columns :
|
|
25448
|
+
const customCols = columns && columns.length ? columns : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().searchTree(tableGroupColumn, column => {
|
|
25449
|
+
const isColGroup = column.children && column.children.length;
|
|
25450
|
+
let isChecked = false;
|
|
25451
|
+
if (columns && columns.length) {
|
|
25452
|
+
isChecked = handleFilterColumns(opts, column, columns);
|
|
25453
|
+
} else if (excludeFields || includeFields) {
|
|
25454
|
+
isChecked = handleFilterFields(opts, column, includeFields, excludeFields);
|
|
25455
|
+
} else {
|
|
25456
|
+
isChecked = column.visible && (isColGroup || defaultFilterExportColumn(column));
|
|
25457
|
+
}
|
|
25458
|
+
return isChecked;
|
|
25459
|
+
}, {
|
|
25460
|
+
children: 'children',
|
|
25461
|
+
mapChildren: 'childNodes',
|
|
25462
|
+
original: true
|
|
25463
|
+
});
|
|
25398
25464
|
const handleOptions = Object.assign({}, opts, {
|
|
25399
25465
|
filename: '',
|
|
25400
25466
|
sheetName: ''
|
|
@@ -28244,6 +28310,11 @@ render_renderer.mixin({
|
|
|
28244
28310
|
tableFilterDefaultMethod: handleFilterMethod,
|
|
28245
28311
|
tableExportMethod: handleExportSelectMethod
|
|
28246
28312
|
},
|
|
28313
|
+
formatOption: {
|
|
28314
|
+
renderTableDefault(renderOpts, params) {
|
|
28315
|
+
return getCellLabelVNs(renderOpts, params, getSelectCellValue(renderOpts, params));
|
|
28316
|
+
}
|
|
28317
|
+
},
|
|
28247
28318
|
VxeTreeSelect: {
|
|
28248
28319
|
tableAutoFocus: 'input',
|
|
28249
28320
|
renderTableEdit: defaultTableOrTreeSelectEditRender,
|
|
@@ -28252,6 +28323,11 @@ render_renderer.mixin({
|
|
|
28252
28323
|
},
|
|
28253
28324
|
tableExportMethod: handleExportTreeSelectMethod
|
|
28254
28325
|
},
|
|
28326
|
+
formatTree: {
|
|
28327
|
+
renderTableDefault(renderOpts, params) {
|
|
28328
|
+
return getCellLabelVNs(renderOpts, params, getTreeSelectCellValue(renderOpts, params));
|
|
28329
|
+
}
|
|
28330
|
+
},
|
|
28255
28331
|
VxeTableSelect: {
|
|
28256
28332
|
tableAutoFocus: 'input',
|
|
28257
28333
|
renderTableEdit: defaultTableOrTreeSelectEditRender,
|