vxe-table 4.7.85 → 4.7.87
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 +63 -21
- package/es/grid/src/grid.js +4 -4
- package/es/locale/lang/en-US.js +4 -1
- package/es/style.css +1 -1
- package/es/table/module/export/import-panel.js +1 -1
- package/es/table/src/table.js +43 -37
- package/es/ui/index.js +2 -2
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +4 -4
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +66 -56
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +4 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +4 -1
- package/lib/style.css +1 -1
- package/lib/table/module/export/import-panel.js +1 -1
- package/lib/table/module/export/import-panel.min.js +1 -1
- package/lib/table/src/table.js +53 -48
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +2 -2
- 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/grid/src/grid.ts +4 -4
- package/packages/locale/lang/en-US.ts +4 -1
- package/packages/table/module/export/import-panel.ts +1 -1
- package/packages/table/src/table.ts +43 -37
- package/types/all.d.ts +1 -0
- /package/es/{iconfont.1727599604340.ttf → iconfont.1728483552005.ttf} +0 -0
- /package/es/{iconfont.1727599604340.woff → iconfont.1728483552005.woff} +0 -0
- /package/es/{iconfont.1727599604340.woff2 → iconfont.1728483552005.woff2} +0 -0
- /package/lib/{iconfont.1727599604340.ttf → iconfont.1728483552005.ttf} +0 -0
- /package/lib/{iconfont.1727599604340.woff → iconfont.1728483552005.woff} +0 -0
- /package/lib/{iconfont.1727599604340.woff2 → iconfont.1728483552005.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -1998,9 +1998,9 @@ function eqEmptyValue(cellValue) {
|
|
|
1998
1998
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
1999
1999
|
|
|
2000
2000
|
|
|
2001
|
-
const version = "4.7.
|
|
2001
|
+
const version = "4.7.87";
|
|
2002
2002
|
core_.VxeUI.version = version;
|
|
2003
|
-
core_.VxeUI.tableVersion = "4.7.
|
|
2003
|
+
core_.VxeUI.tableVersion = "4.7.87";
|
|
2004
2004
|
core_.VxeUI.setConfig({
|
|
2005
2005
|
emptyCell: ' ',
|
|
2006
2006
|
table: {
|
|
@@ -2384,7 +2384,7 @@ var es_array_push = __webpack_require__(4114);
|
|
|
2384
2384
|
const {
|
|
2385
2385
|
log: log_log
|
|
2386
2386
|
} = core_.VxeUI;
|
|
2387
|
-
const log_version = `table v${"4.7.
|
|
2387
|
+
const log_version = `table v${"4.7.87"}`;
|
|
2388
2388
|
const warnLog = log_log.create('warn', log_version);
|
|
2389
2389
|
const errLog = log_log.create('error', log_version);
|
|
2390
2390
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -7814,7 +7814,7 @@ const {
|
|
|
7814
7814
|
modelValue: storeData.visible,
|
|
7815
7815
|
title: import_panel_getI18n('vxe.import.impTitle'),
|
|
7816
7816
|
className: 'vxe-table-import-popup-wrapper',
|
|
7817
|
-
width:
|
|
7817
|
+
width: 540,
|
|
7818
7818
|
mask: true,
|
|
7819
7819
|
lockView: true,
|
|
7820
7820
|
showFooter: false,
|
|
@@ -8792,13 +8792,13 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
8792
8792
|
return '';
|
|
8793
8793
|
});
|
|
8794
8794
|
const computeValidOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8795
|
-
return Object.assign({},
|
|
8795
|
+
return Object.assign({}, table_getConfig().table.validConfig, props.validConfig);
|
|
8796
8796
|
});
|
|
8797
8797
|
const computeSXOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8798
|
-
return Object.assign({},
|
|
8798
|
+
return Object.assign({}, table_getConfig().table.scrollX, props.scrollX);
|
|
8799
8799
|
});
|
|
8800
8800
|
const computeSYOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8801
|
-
return Object.assign({},
|
|
8801
|
+
return Object.assign({}, table_getConfig().table.scrollY, props.scrollY);
|
|
8802
8802
|
});
|
|
8803
8803
|
const computeRowHeightMaps = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8804
8804
|
return {
|
|
@@ -8809,31 +8809,31 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
8809
8809
|
};
|
|
8810
8810
|
});
|
|
8811
8811
|
const computeColumnOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8812
|
-
return Object.assign({},
|
|
8812
|
+
return Object.assign({}, table_getConfig().table.columnConfig, props.columnConfig);
|
|
8813
8813
|
});
|
|
8814
8814
|
const computeRowOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8815
|
-
return Object.assign({},
|
|
8815
|
+
return Object.assign({}, table_getConfig().table.rowConfig, props.rowConfig);
|
|
8816
8816
|
});
|
|
8817
8817
|
const computeResizeOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8818
|
-
return Object.assign({},
|
|
8818
|
+
return Object.assign({}, table_getConfig().table.resizeConfig, props.resizeConfig);
|
|
8819
8819
|
});
|
|
8820
8820
|
const computeResizableOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8821
|
-
return Object.assign({},
|
|
8821
|
+
return Object.assign({}, table_getConfig().table.resizableConfig, props.resizableConfig);
|
|
8822
8822
|
});
|
|
8823
8823
|
const computeSeqOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8824
8824
|
return Object.assign({
|
|
8825
8825
|
startIndex: 0
|
|
8826
|
-
},
|
|
8826
|
+
}, table_getConfig().table.seqConfig, props.seqConfig);
|
|
8827
8827
|
});
|
|
8828
8828
|
const computeRadioOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8829
|
-
return Object.assign({},
|
|
8829
|
+
return Object.assign({}, table_getConfig().table.radioConfig, props.radioConfig);
|
|
8830
8830
|
});
|
|
8831
8831
|
const computeCheckboxOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8832
|
-
return Object.assign({},
|
|
8832
|
+
return Object.assign({}, table_getConfig().table.checkboxConfig, props.checkboxConfig);
|
|
8833
8833
|
});
|
|
8834
8834
|
let computeTooltipOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
8835
8835
|
computeTooltipOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8836
|
-
return Object.assign({},
|
|
8836
|
+
return Object.assign({}, table_getConfig().tooltip, table_getConfig().table.tooltipConfig, props.tooltipConfig);
|
|
8837
8837
|
});
|
|
8838
8838
|
const computeTipConfig = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8839
8839
|
const tooltipOpts = computeTooltipOpts.value;
|
|
@@ -8848,33 +8848,33 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
8848
8848
|
}, tooltipOpts);
|
|
8849
8849
|
});
|
|
8850
8850
|
const computeEditOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8851
|
-
return Object.assign({},
|
|
8851
|
+
return Object.assign({}, table_getConfig().table.editConfig, props.editConfig);
|
|
8852
8852
|
});
|
|
8853
8853
|
const computeSortOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8854
8854
|
return Object.assign({
|
|
8855
8855
|
orders: ['asc', 'desc', null]
|
|
8856
|
-
},
|
|
8856
|
+
}, table_getConfig().table.sortConfig, props.sortConfig);
|
|
8857
8857
|
});
|
|
8858
8858
|
const computeFilterOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8859
|
-
return Object.assign({},
|
|
8859
|
+
return Object.assign({}, table_getConfig().table.filterConfig, props.filterConfig);
|
|
8860
8860
|
});
|
|
8861
8861
|
const computeMouseOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8862
|
-
return Object.assign({},
|
|
8862
|
+
return Object.assign({}, table_getConfig().table.mouseConfig, props.mouseConfig);
|
|
8863
8863
|
});
|
|
8864
8864
|
const computeAreaOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8865
|
-
return Object.assign({},
|
|
8865
|
+
return Object.assign({}, table_getConfig().table.areaConfig, props.areaConfig);
|
|
8866
8866
|
});
|
|
8867
8867
|
const computeKeyboardOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8868
|
-
return Object.assign({},
|
|
8868
|
+
return Object.assign({}, table_getConfig().table.keyboardConfig, props.keyboardConfig);
|
|
8869
8869
|
});
|
|
8870
8870
|
const computeClipOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8871
|
-
return Object.assign({},
|
|
8871
|
+
return Object.assign({}, table_getConfig().table.clipConfig, props.clipConfig);
|
|
8872
8872
|
});
|
|
8873
8873
|
const computeFNROpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8874
|
-
return Object.assign({},
|
|
8874
|
+
return Object.assign({}, table_getConfig().table.fnrConfig, props.fnrConfig);
|
|
8875
8875
|
});
|
|
8876
8876
|
const computeMenuOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8877
|
-
return Object.assign({},
|
|
8877
|
+
return Object.assign({}, table_getConfig().table.menuConfig, props.menuConfig);
|
|
8878
8878
|
});
|
|
8879
8879
|
const computeHeaderMenu = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8880
8880
|
const menuOpts = computeMenuOpts.value;
|
|
@@ -8911,31 +8911,31 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
8911
8911
|
return rest;
|
|
8912
8912
|
});
|
|
8913
8913
|
const computeExportOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8914
|
-
return Object.assign({},
|
|
8914
|
+
return Object.assign({}, table_getConfig().table.exportConfig, props.exportConfig);
|
|
8915
8915
|
});
|
|
8916
8916
|
const computeImportOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8917
|
-
return Object.assign({},
|
|
8917
|
+
return Object.assign({}, table_getConfig().table.importConfig, props.importConfig);
|
|
8918
8918
|
});
|
|
8919
8919
|
const computePrintOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8920
|
-
return Object.assign({},
|
|
8920
|
+
return Object.assign({}, table_getConfig().table.printConfig, props.printConfig);
|
|
8921
8921
|
});
|
|
8922
8922
|
const computeExpandOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8923
|
-
return Object.assign({},
|
|
8923
|
+
return Object.assign({}, table_getConfig().table.expandConfig, props.expandConfig);
|
|
8924
8924
|
});
|
|
8925
8925
|
const computeTreeOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8926
|
-
return Object.assign({},
|
|
8926
|
+
return Object.assign({}, table_getConfig().table.treeConfig, props.treeConfig);
|
|
8927
8927
|
});
|
|
8928
8928
|
const computeEmptyOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8929
|
-
return Object.assign({},
|
|
8929
|
+
return Object.assign({}, table_getConfig().table.emptyRender, props.emptyRender);
|
|
8930
8930
|
});
|
|
8931
8931
|
const computeLoadingOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8932
|
-
return Object.assign({},
|
|
8932
|
+
return Object.assign({}, table_getConfig().table.loadingConfig, props.loadingConfig);
|
|
8933
8933
|
});
|
|
8934
8934
|
const computeCellOffsetWidth = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8935
8935
|
return props.border ? Math.max(2, Math.ceil(reactData.scrollbarWidth / reactData.tableColumn.length)) : 1;
|
|
8936
8936
|
});
|
|
8937
8937
|
const computeCustomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8938
|
-
return Object.assign({},
|
|
8938
|
+
return Object.assign({}, table_getConfig().table.customConfig, props.customConfig);
|
|
8939
8939
|
});
|
|
8940
8940
|
const computeAutoWidthColumnList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
8941
8941
|
const {
|
|
@@ -9171,12 +9171,12 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
9171
9171
|
}
|
|
9172
9172
|
return {
|
|
9173
9173
|
toVisibleIndex: Math.max(0, toVisibleIndex),
|
|
9174
|
-
visibleSize: Math.max(
|
|
9174
|
+
visibleSize: Math.max(6, visibleSize)
|
|
9175
9175
|
};
|
|
9176
9176
|
}
|
|
9177
9177
|
return {
|
|
9178
9178
|
toVisibleIndex: 0,
|
|
9179
|
-
visibleSize:
|
|
9179
|
+
visibleSize: 6
|
|
9180
9180
|
};
|
|
9181
9181
|
};
|
|
9182
9182
|
const computeVirtualY = () => {
|
|
@@ -14664,8 +14664,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
14664
14664
|
treeConfig
|
|
14665
14665
|
} = props;
|
|
14666
14666
|
const treeOpts = computeTreeOpts.value;
|
|
14667
|
-
|
|
14668
|
-
fullDataRowIdData,
|
|
14667
|
+
const {
|
|
14669
14668
|
fullAllDataRowIdData,
|
|
14670
14669
|
tableFullData,
|
|
14671
14670
|
tableFullTreeData
|
|
@@ -14674,6 +14673,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
14674
14673
|
const hasChildField = treeOpts.hasChild || treeOpts.hasChildField;
|
|
14675
14674
|
const rowkey = getRowkey($xeTable);
|
|
14676
14675
|
const isLazy = treeConfig && treeOpts.lazy;
|
|
14676
|
+
const fullAllDataRowIdMaps = {};
|
|
14677
|
+
const fullDataRowIdMaps = {};
|
|
14677
14678
|
const handleRow = (row, index, items, path, parent, nodes) => {
|
|
14678
14679
|
let rowid = getRowid($xeTable, row);
|
|
14679
14680
|
const seq = treeConfig && path ? toTreePathSeq(path) : index + 1;
|
|
@@ -14685,26 +14686,30 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
14685
14686
|
if (isLazy && row[hasChildField] && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(row[childrenField])) {
|
|
14686
14687
|
row[childrenField] = null;
|
|
14687
14688
|
}
|
|
14688
|
-
|
|
14689
|
-
|
|
14690
|
-
|
|
14691
|
-
|
|
14692
|
-
|
|
14693
|
-
|
|
14694
|
-
|
|
14695
|
-
|
|
14696
|
-
|
|
14697
|
-
|
|
14698
|
-
|
|
14689
|
+
let cacheItem = fullAllDataRowIdData[rowid];
|
|
14690
|
+
if (!cacheItem) {
|
|
14691
|
+
cacheItem = {
|
|
14692
|
+
row,
|
|
14693
|
+
rowid,
|
|
14694
|
+
seq,
|
|
14695
|
+
index: -1,
|
|
14696
|
+
_index: -1,
|
|
14697
|
+
$index: -1,
|
|
14698
|
+
items,
|
|
14699
|
+
parent,
|
|
14700
|
+
level
|
|
14701
|
+
};
|
|
14702
|
+
}
|
|
14699
14703
|
if (isSource) {
|
|
14700
|
-
|
|
14704
|
+
cacheItem.index = treeConfig && parent ? -1 : index;
|
|
14705
|
+
fullDataRowIdMaps[rowid] = cacheItem;
|
|
14701
14706
|
}
|
|
14702
|
-
|
|
14707
|
+
fullAllDataRowIdMaps[rowid] = cacheItem;
|
|
14703
14708
|
};
|
|
14704
14709
|
if (isSource) {
|
|
14705
|
-
|
|
14710
|
+
internalData.fullDataRowIdData = fullDataRowIdMaps;
|
|
14706
14711
|
}
|
|
14707
|
-
|
|
14712
|
+
internalData.fullAllDataRowIdData = fullAllDataRowIdMaps;
|
|
14708
14713
|
if (treeConfig) {
|
|
14709
14714
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(tableFullTreeData, handleRow, {
|
|
14710
14715
|
children: childrenField
|
|
@@ -16676,7 +16681,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16676
16681
|
}) : null;
|
|
16677
16682
|
resizeObserver = table_globalResize.create(handleOptimizeResize ? () => {
|
|
16678
16683
|
if (props.autoResize) {
|
|
16679
|
-
|
|
16684
|
+
handleOptimizeResize();
|
|
16680
16685
|
}
|
|
16681
16686
|
} : () => {
|
|
16682
16687
|
if (props.autoResize) {
|
|
@@ -23325,16 +23330,16 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
23325
23330
|
return proxyOpts.showActiveMsg;
|
|
23326
23331
|
});
|
|
23327
23332
|
const computePagerOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
23328
|
-
return Object.assign({},
|
|
23333
|
+
return Object.assign({}, grid_getConfig().grid.pagerConfig, props.pagerConfig);
|
|
23329
23334
|
});
|
|
23330
23335
|
const computeFormOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
23331
|
-
return Object.assign({},
|
|
23336
|
+
return Object.assign({}, grid_getConfig().grid.formConfig, props.formConfig);
|
|
23332
23337
|
});
|
|
23333
23338
|
const computeToolbarOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
23334
|
-
return Object.assign({},
|
|
23339
|
+
return Object.assign({}, grid_getConfig().grid.toolbarConfig, props.toolbarConfig);
|
|
23335
23340
|
});
|
|
23336
23341
|
const computeZoomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
23337
|
-
return Object.assign({},
|
|
23342
|
+
return Object.assign({}, grid_getConfig().grid.zoomConfig, props.zoomConfig);
|
|
23338
23343
|
});
|
|
23339
23344
|
const computeStyles = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
23340
23345
|
return reactData.isZMax ? {
|
|
@@ -25425,6 +25430,11 @@ core_.VxeUI.setTheme('light');
|
|
|
25425
25430
|
;// CONCATENATED MODULE: ./index.ts
|
|
25426
25431
|
|
|
25427
25432
|
|
|
25433
|
+
if (typeof window !== 'undefined' && window.VXETable) {
|
|
25434
|
+
if (!window.VxeUITable) {
|
|
25435
|
+
window.VxeUITable = components_namespaceObject;
|
|
25436
|
+
}
|
|
25437
|
+
}
|
|
25428
25438
|
|
|
25429
25439
|
/* harmony default export */ var index = (components_namespaceObject);
|
|
25430
25440
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|