vxe-table 4.11.5 → 4.11.7
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/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +2 -1
- package/es/locale/lang/de-DE.js +2 -1
- package/es/locale/lang/en-US.js +2 -1
- package/es/locale/lang/es-ES.js +2 -1
- package/es/locale/lang/fr-FR.js +2 -1
- package/es/locale/lang/hu-HU.js +2 -1
- package/es/locale/lang/hy-AM.js +2 -1
- package/es/locale/lang/id-ID.js +2 -1
- package/es/locale/lang/it-IT.js +2 -1
- package/es/locale/lang/ja-JP.js +2 -1
- package/es/locale/lang/ko-KR.js +2 -1
- package/es/locale/lang/nb-NO.js +2 -1
- package/es/locale/lang/pt-BR.js +2 -1
- package/es/locale/lang/ru-RU.js +2 -1
- package/es/locale/lang/th-TH.js +2 -1
- package/es/locale/lang/ug-CN.js +2 -1
- package/es/locale/lang/uk-UA.js +2 -1
- package/es/locale/lang/vi-VN.js +2 -1
- package/es/locale/lang/zh-CHT.js +2 -1
- package/es/locale/lang/zh-CN.js +2 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/export/export-panel.js +7 -4
- package/es/table/module/export/hook.js +3 -3
- package/es/table/src/table.js +36 -38
- 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 +51 -49
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +2 -1
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/de-DE.js +2 -1
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/en-US.js +2 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +2 -1
- package/lib/locale/lang/es-ES.js +2 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +2 -1
- package/lib/locale/lang/fr-FR.js +2 -1
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/hu-HU.js +2 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +2 -1
- package/lib/locale/lang/hy-AM.js +2 -1
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/id-ID.js +2 -1
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/it-IT.js +2 -1
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/ja-JP.js +2 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +2 -1
- package/lib/locale/lang/ko-KR.js +2 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +2 -1
- package/lib/locale/lang/nb-NO.js +2 -1
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/pt-BR.js +2 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +2 -1
- package/lib/locale/lang/ru-RU.js +2 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +2 -1
- package/lib/locale/lang/th-TH.js +2 -1
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/ug-CN.js +2 -1
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/uk-UA.js +2 -1
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +2 -1
- package/lib/locale/lang/vi-VN.js +2 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +2 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CN.js +2 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +2 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/export/export-panel.js +7 -4
- package/lib/table/module/export/export-panel.min.js +1 -1
- package/lib/table/module/export/hook.js +4 -3
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/src/table.js +34 -37
- 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/ar-EG.ts +2 -1
- package/packages/locale/lang/de-DE.ts +2 -1
- package/packages/locale/lang/en-US.ts +2 -1
- package/packages/locale/lang/es-ES.ts +2 -1
- package/packages/locale/lang/fr-FR.ts +2 -1
- package/packages/locale/lang/hu-HU.ts +2 -1
- package/packages/locale/lang/hy-AM.ts +2 -1
- package/packages/locale/lang/id-ID.ts +2 -1
- package/packages/locale/lang/it-IT.ts +2 -1
- package/packages/locale/lang/ja-JP.ts +2 -1
- package/packages/locale/lang/ko-KR.ts +2 -1
- package/packages/locale/lang/nb-NO.ts +2 -1
- package/packages/locale/lang/pt-BR.ts +2 -1
- package/packages/locale/lang/ru-RU.ts +2 -1
- package/packages/locale/lang/th-TH.ts +2 -1
- package/packages/locale/lang/ug-CN.ts +2 -1
- package/packages/locale/lang/uk-UA.ts +2 -1
- package/packages/locale/lang/vi-VN.ts +2 -1
- package/packages/locale/lang/zh-CHT.ts +2 -1
- package/packages/locale/lang/zh-CN.ts +2 -1
- package/packages/table/module/export/export-panel.ts +8 -4
- package/packages/table/module/export/hook.ts +3 -3
- package/packages/table/src/table.ts +35 -38
- package/styles/components/table.scss +1 -1
- package/styles/index.scss +1 -1
- package/styles/theme/base.scss +1 -1
- /package/es/{iconfont.1740013709563.ttf → iconfont.1740104016678.ttf} +0 -0
- /package/es/{iconfont.1740013709563.woff → iconfont.1740104016678.woff} +0 -0
- /package/es/{iconfont.1740013709563.woff2 → iconfont.1740104016678.woff2} +0 -0
- /package/lib/{iconfont.1740013709563.ttf → iconfont.1740104016678.ttf} +0 -0
- /package/lib/{iconfont.1740013709563.woff → iconfont.1740104016678.woff} +0 -0
- /package/lib/{iconfont.1740013709563.woff2 → iconfont.1740104016678.woff2} +0 -0
|
@@ -971,7 +971,7 @@ hooks.add('tableExportModule', {
|
|
|
971
971
|
isMerge: hasMerge,
|
|
972
972
|
useStyle: true,
|
|
973
973
|
current: 'current',
|
|
974
|
-
modes: ['current', 'selected'].concat(proxyOpts.ajax && proxyOpts.ajax.queryAll ? ['all'] : [])
|
|
974
|
+
modes: ['current', 'selected', 'empty'].concat(proxyOpts.ajax && proxyOpts.ajax.queryAll ? ['all'] : [])
|
|
975
975
|
}, options);
|
|
976
976
|
const types = defOpts.types || XEUtils.keys(exportOpts._typeMaps);
|
|
977
977
|
const modes = defOpts.modes || [];
|
|
@@ -1093,7 +1093,7 @@ hooks.add('tableExportModule', {
|
|
|
1093
1093
|
isMerge: hasMerge,
|
|
1094
1094
|
useStyle: true,
|
|
1095
1095
|
current: 'current',
|
|
1096
|
-
modes: ['current', 'selected'].concat(proxyOpts.ajax && proxyOpts.ajax.queryAll ? ['all'] : []),
|
|
1096
|
+
modes: ['current', 'selected', 'empty'].concat(proxyOpts.ajax && proxyOpts.ajax.queryAll ? ['all'] : []),
|
|
1097
1097
|
download: true,
|
|
1098
1098
|
type: 'csv'
|
|
1099
1099
|
// filename: '',
|
|
@@ -1309,7 +1309,7 @@ hooks.add('tableExportModule', {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
}
|
|
1311
1311
|
}
|
|
1312
|
-
|
|
1312
|
+
if (mode === 'current') {
|
|
1313
1313
|
handleOptions.data = afterFullData;
|
|
1314
1314
|
}
|
|
1315
1315
|
}
|
package/es/table/src/table.js
CHANGED
|
@@ -2305,7 +2305,7 @@ export default defineComponent({
|
|
|
2305
2305
|
reactData.isIndeterminate = false;
|
|
2306
2306
|
reactData.treeIndeterminateMaps = {};
|
|
2307
2307
|
internalData.treeIndeterminateRowMaps = {};
|
|
2308
|
-
|
|
2308
|
+
$xeTable.checkSelectionStatus();
|
|
2309
2309
|
return nextTick();
|
|
2310
2310
|
};
|
|
2311
2311
|
// 还原展开、选中等相关状态
|
|
@@ -2341,12 +2341,12 @@ export default defineComponent({
|
|
|
2341
2341
|
reactData.rowExpandedMaps = expandColumn ? getRecoverRowMaps(rowExpandedMaps) : {}; // 刷新行展开状态
|
|
2342
2342
|
// 还原保留状态
|
|
2343
2343
|
if (expandColumn && expandOpts.reserve) {
|
|
2344
|
-
|
|
2344
|
+
$xeTable.setRowExpand(handleReserveRow(internalData.rowExpandedReserveRowMap), true);
|
|
2345
2345
|
}
|
|
2346
2346
|
// 树展开
|
|
2347
2347
|
reactData.treeExpandedMaps = treeConfig ? getRecoverRowMaps(treeExpandedMaps) : {}; // 刷新树展开状态
|
|
2348
2348
|
if (treeConfig && treeOpts.reserve) {
|
|
2349
|
-
|
|
2349
|
+
$xeTable.setTreeExpand(handleReserveRow(internalData.treeExpandedReserveRowMap), true);
|
|
2350
2350
|
}
|
|
2351
2351
|
};
|
|
2352
2352
|
/**
|
|
@@ -2653,15 +2653,11 @@ export default defineComponent({
|
|
|
2653
2653
|
internalData.tableFullData = fullData;
|
|
2654
2654
|
internalData.tableFullTreeData = treeData;
|
|
2655
2655
|
// 缓存数据
|
|
2656
|
-
$xeTable.cacheRowMap(true
|
|
2656
|
+
$xeTable.cacheRowMap(true);
|
|
2657
2657
|
// 原始数据
|
|
2658
2658
|
internalData.tableSynchData = datas;
|
|
2659
2659
|
if (isReset) {
|
|
2660
2660
|
internalData.isResizeCellHeight = false;
|
|
2661
|
-
reactData.rowExpandedMaps = {};
|
|
2662
|
-
reactData.rowExpandLazyLoadedMaps = {};
|
|
2663
|
-
reactData.treeExpandedMaps = {};
|
|
2664
|
-
reactData.treeExpandLazyLoadedMaps = {};
|
|
2665
2661
|
}
|
|
2666
2662
|
// 克隆原数据,用于显示编辑状态,与编辑值做对比
|
|
2667
2663
|
if (keepSource) {
|
|
@@ -3093,9 +3089,9 @@ export default defineComponent({
|
|
|
3093
3089
|
handleCheckedAllCheckboxRow(value);
|
|
3094
3090
|
if (evnt) {
|
|
3095
3091
|
dispatchEvent('checkbox-all', {
|
|
3096
|
-
records:
|
|
3097
|
-
reserves:
|
|
3098
|
-
indeterminates:
|
|
3092
|
+
records: $xeTable.getCheckboxRecords(),
|
|
3093
|
+
reserves: $xeTable.getCheckboxReserveRecords(),
|
|
3094
|
+
indeterminates: $xeTable.getCheckboxIndeterminateRecords(),
|
|
3099
3095
|
checked: value
|
|
3100
3096
|
}, evnt);
|
|
3101
3097
|
}
|
|
@@ -3979,7 +3975,7 @@ export default defineComponent({
|
|
|
3979
3975
|
*/
|
|
3980
3976
|
getTreeRowChildren(rowOrRowid) {
|
|
3981
3977
|
const { treeConfig } = props;
|
|
3982
|
-
const {
|
|
3978
|
+
const { fullAllDataRowIdData } = internalData;
|
|
3983
3979
|
const treeOpts = computeTreeOpts.value;
|
|
3984
3980
|
const { transform, mapChildrenField } = treeOpts;
|
|
3985
3981
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
@@ -3992,7 +3988,7 @@ export default defineComponent({
|
|
|
3992
3988
|
rowid = getRowid($xeTable, rowOrRowid);
|
|
3993
3989
|
}
|
|
3994
3990
|
if (rowid) {
|
|
3995
|
-
const rest =
|
|
3991
|
+
const rest = fullAllDataRowIdData[rowid];
|
|
3996
3992
|
const row = rest ? rest.row : null;
|
|
3997
3993
|
if (row) {
|
|
3998
3994
|
return row[transform ? mapChildrenField : childrenField] || [];
|
|
@@ -4006,7 +4002,7 @@ export default defineComponent({
|
|
|
4006
4002
|
*/
|
|
4007
4003
|
getTreeParentRow(rowOrRowid) {
|
|
4008
4004
|
const { treeConfig } = props;
|
|
4009
|
-
const {
|
|
4005
|
+
const { fullAllDataRowIdData } = internalData;
|
|
4010
4006
|
if (rowOrRowid && treeConfig) {
|
|
4011
4007
|
let rowid;
|
|
4012
4008
|
if (XEUtils.isString(rowOrRowid)) {
|
|
@@ -4016,7 +4012,7 @@ export default defineComponent({
|
|
|
4016
4012
|
rowid = getRowid($xeTable, rowOrRowid);
|
|
4017
4013
|
}
|
|
4018
4014
|
if (rowid) {
|
|
4019
|
-
const rest =
|
|
4015
|
+
const rest = fullAllDataRowIdData[rowid];
|
|
4020
4016
|
return rest ? rest.parent : null;
|
|
4021
4017
|
}
|
|
4022
4018
|
}
|
|
@@ -4031,9 +4027,9 @@ export default defineComponent({
|
|
|
4031
4027
|
* @param {String/Number} rowid 行主键
|
|
4032
4028
|
*/
|
|
4033
4029
|
getRowById(cellValue) {
|
|
4034
|
-
const {
|
|
4030
|
+
const { fullAllDataRowIdData } = internalData;
|
|
4035
4031
|
const rowid = XEUtils.eqNull(cellValue) ? '' : encodeURIComponent(cellValue || '');
|
|
4036
|
-
return
|
|
4032
|
+
return fullAllDataRowIdData[rowid] ? fullAllDataRowIdData[rowid].row : null;
|
|
4037
4033
|
},
|
|
4038
4034
|
/**
|
|
4039
4035
|
* 根据行获取行的唯一主键
|
|
@@ -5216,11 +5212,12 @@ export default defineComponent({
|
|
|
5216
5212
|
return rowRest && !!rowRest.treeLoaded;
|
|
5217
5213
|
},
|
|
5218
5214
|
clearTreeExpandLoaded(rows) {
|
|
5219
|
-
const tExpandedMaps = Object.assign({}, reactData.treeExpandedMaps);
|
|
5220
5215
|
const { fullAllDataRowIdData } = internalData;
|
|
5221
5216
|
const treeOpts = computeTreeOpts.value;
|
|
5222
5217
|
const { transform } = treeOpts;
|
|
5218
|
+
let tExpandedMaps = {};
|
|
5223
5219
|
if (rows) {
|
|
5220
|
+
tExpandedMaps = Object.assign({}, reactData.treeExpandedMaps);
|
|
5224
5221
|
if (!XEUtils.isArray(rows)) {
|
|
5225
5222
|
rows = [rows];
|
|
5226
5223
|
}
|
|
@@ -5235,10 +5232,15 @@ export default defineComponent({
|
|
|
5235
5232
|
}
|
|
5236
5233
|
});
|
|
5237
5234
|
}
|
|
5238
|
-
|
|
5235
|
+
else {
|
|
5236
|
+
XEUtils.each(fullAllDataRowIdData, (rowRest) => {
|
|
5237
|
+
rowRest.treeLoaded = false;
|
|
5238
|
+
});
|
|
5239
|
+
}
|
|
5240
|
+
reactData.treeExpandedMaps = {};
|
|
5239
5241
|
if (transform) {
|
|
5240
5242
|
handleVirtualTreeToList();
|
|
5241
|
-
return
|
|
5243
|
+
return $xeTable.handleTableData();
|
|
5242
5244
|
}
|
|
5243
5245
|
return nextTick();
|
|
5244
5246
|
},
|
|
@@ -6631,7 +6633,7 @@ export default defineComponent({
|
|
|
6631
6633
|
/**
|
|
6632
6634
|
* 更新数据行的 Map
|
|
6633
6635
|
*/
|
|
6634
|
-
cacheRowMap(
|
|
6636
|
+
cacheRowMap() {
|
|
6635
6637
|
const { treeConfig } = props;
|
|
6636
6638
|
const treeOpts = computeTreeOpts.value;
|
|
6637
6639
|
const { fullAllDataRowIdData, tableFullData, tableFullTreeData } = internalData;
|
|
@@ -6652,23 +6654,19 @@ export default defineComponent({
|
|
|
6652
6654
|
if (isLazy && row[hasChildField] && XEUtils.isUndefined(row[childrenField])) {
|
|
6653
6655
|
row[childrenField] = null;
|
|
6654
6656
|
}
|
|
6655
|
-
let
|
|
6656
|
-
if (
|
|
6657
|
-
|
|
6658
|
-
}
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
}
|
|
6667
|
-
fullAllDataRowIdMaps[rowid] = cacheItem;
|
|
6657
|
+
let rowRest = fullAllDataRowIdData[rowid];
|
|
6658
|
+
if (!rowRest) {
|
|
6659
|
+
rowRest = { row, rowid, seq, index: -1, _index: -1, $index: -1, treeIndex: index, items, parent: parentRow, level, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 };
|
|
6660
|
+
}
|
|
6661
|
+
rowRest.row = row;
|
|
6662
|
+
rowRest.items = items;
|
|
6663
|
+
rowRest.parent = parentRow;
|
|
6664
|
+
rowRest.level = level;
|
|
6665
|
+
rowRest.index = treeConfig && parentRow ? -1 : index;
|
|
6666
|
+
fullDataRowIdMaps[rowid] = rowRest;
|
|
6667
|
+
fullAllDataRowIdMaps[rowid] = rowRest;
|
|
6668
6668
|
};
|
|
6669
|
-
|
|
6670
|
-
internalData.fullDataRowIdData = fullDataRowIdMaps;
|
|
6671
|
-
}
|
|
6669
|
+
internalData.fullDataRowIdData = fullDataRowIdMaps;
|
|
6672
6670
|
internalData.fullAllDataRowIdData = fullAllDataRowIdMaps;
|
|
6673
6671
|
if (treeConfig) {
|
|
6674
6672
|
XEUtils.eachTree(tableFullTreeData, handleRow, { children: childrenField });
|
|
@@ -9796,7 +9794,7 @@ export default defineComponent({
|
|
|
9796
9794
|
if (value && value.length >= 50000) {
|
|
9797
9795
|
warnLog('vxe.error.errLargeData', ['loadData(data), reloadData(data)']);
|
|
9798
9796
|
}
|
|
9799
|
-
loadTableData(value,
|
|
9797
|
+
loadTableData(value, false).then(() => {
|
|
9800
9798
|
const { scrollXLoad, scrollYLoad, expandColumn } = reactData;
|
|
9801
9799
|
const expandOpts = computeExpandOpts.value;
|
|
9802
9800
|
internalData.inited = true;
|
package/es/table/style.css
CHANGED
|
@@ -2383,7 +2383,7 @@
|
|
|
2383
2383
|
background-color: var(--vxe-ui-layout-background-color);
|
|
2384
2384
|
}
|
|
2385
2385
|
.vxe-table--render-default .vxe-table--footer-wrapper {
|
|
2386
|
-
margin-top: -
|
|
2386
|
+
margin-top: calc(var(--vxe-ui-table-border-width) * -1);
|
|
2387
2387
|
background-color: var(--vxe-ui-table-footer-background-color);
|
|
2388
2388
|
}
|
|
2389
2389
|
.vxe-table--render-default .vxe-table--header,
|