vxe-table 4.13.39 → 4.13.40
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.en.md +2 -0
- package/README.ja-JP.md +2 -0
- package/README.md +3 -0
- package/README.zh-TW.md +3 -1
- package/es/grid/src/grid.js +21 -6
- package/es/{iconfont.1749800539928.ttf → iconfont.1750082858834.ttf} +0 -0
- package/es/iconfont.1750082858834.woff +0 -0
- package/es/iconfont.1750082858834.woff2 +0 -0
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +6 -0
- package/es/locale/lang/de-DE.js +6 -0
- package/es/locale/lang/en-US.js +6 -0
- package/es/locale/lang/es-ES.js +6 -0
- package/es/locale/lang/fr-FR.js +6 -0
- package/es/locale/lang/hu-HU.js +6 -0
- package/es/locale/lang/hy-AM.js +6 -0
- package/es/locale/lang/id-ID.js +6 -0
- package/es/locale/lang/it-IT.js +6 -0
- package/es/locale/lang/ja-JP.js +6 -0
- package/es/locale/lang/ko-KR.js +6 -0
- package/es/locale/lang/ms-MY.js +6 -0
- package/es/locale/lang/nb-NO.js +6 -0
- package/es/locale/lang/pt-BR.js +6 -0
- package/es/locale/lang/ru-RU.js +6 -0
- package/es/locale/lang/th-TH.js +6 -0
- package/es/locale/lang/ug-CN.js +6 -0
- package/es/locale/lang/uk-UA.js +6 -0
- package/es/locale/lang/uz-UZ.js +6 -0
- package/es/locale/lang/vi-VN.js +6 -0
- package/es/locale/lang/zh-CHT.js +6 -0
- package/es/locale/lang/zh-CN.js +6 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/hook.js +29 -4
- package/es/table/module/custom/panel.js +105 -93
- package/es/table/module/export/export-panel.js +3 -2
- package/es/table/module/export/import-panel.js +3 -2
- package/es/table/module/filter/panel.js +3 -2
- package/es/table/module/menu/panel.js +3 -2
- package/es/table/src/body.js +7 -5
- package/es/table/src/column.js +3 -2
- package/es/table/src/footer.js +3 -2
- package/es/table/src/group.js +3 -2
- package/es/table/src/header.js +3 -2
- package/es/table/src/props.js +28 -7
- package/es/table/src/table.js +64 -47
- package/es/table/style.css +22 -3
- package/es/table/style.min.css +1 -1
- package/es/toolbar/src/toolbar.js +3 -2
- package/es/ui/index.js +3 -0
- package/es/ui/src/comp.js +2 -0
- package/es/vxe-table/style.css +22 -3
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +20 -5
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/{iconfont.1749800539928.ttf → iconfont.1750082858834.ttf} +0 -0
- package/lib/iconfont.1750082858834.woff +0 -0
- package/lib/iconfont.1750082858834.woff2 +0 -0
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +146 -48
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +6 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +6 -0
- package/lib/locale/lang/de-DE.js +6 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +6 -0
- package/lib/locale/lang/en-US.js +6 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +6 -0
- package/lib/locale/lang/es-ES.js +6 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +6 -0
- package/lib/locale/lang/fr-FR.js +6 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +6 -0
- package/lib/locale/lang/hu-HU.js +6 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +6 -0
- package/lib/locale/lang/hy-AM.js +6 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +6 -0
- package/lib/locale/lang/id-ID.js +6 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +6 -0
- package/lib/locale/lang/it-IT.js +6 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +6 -0
- package/lib/locale/lang/ja-JP.js +6 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +6 -0
- package/lib/locale/lang/ko-KR.js +6 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +6 -0
- package/lib/locale/lang/ms-MY.js +6 -0
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +6 -0
- package/lib/locale/lang/nb-NO.js +6 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +6 -0
- package/lib/locale/lang/pt-BR.js +6 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +6 -0
- package/lib/locale/lang/ru-RU.js +6 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +6 -0
- package/lib/locale/lang/th-TH.js +6 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +6 -0
- package/lib/locale/lang/ug-CN.js +6 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +6 -0
- package/lib/locale/lang/uk-UA.js +6 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +6 -0
- package/lib/locale/lang/uz-UZ.js +6 -0
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +6 -0
- package/lib/locale/lang/vi-VN.js +6 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +6 -0
- package/lib/locale/lang/zh-CHT.js +6 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +6 -0
- package/lib/locale/lang/zh-CN.js +6 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +6 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/hook.js +32 -4
- package/lib/table/module/custom/hook.min.js +1 -1
- package/lib/table/module/custom/panel.js +14 -3
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/export/export-panel.js +2 -1
- package/lib/table/module/export/export-panel.min.js +1 -1
- package/lib/table/module/export/import-panel.js +2 -1
- package/lib/table/module/export/import-panel.min.js +1 -1
- package/lib/table/module/filter/panel.js +2 -1
- package/lib/table/module/filter/panel.min.js +1 -1
- package/lib/table/module/menu/panel.js +2 -1
- package/lib/table/module/menu/panel.min.js +1 -1
- package/lib/table/src/body.js +9 -9
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/column.js +2 -1
- package/lib/table/src/column.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/group.js +2 -1
- package/lib/table/src/group.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/props.js +28 -7
- package/lib/table/src/table.js +13 -11
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +22 -3
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/src/toolbar.js +2 -1
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/ui/index.js +3 -0
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/comp.js +8 -0
- package/lib/ui/src/comp.min.js +1 -0
- package/lib/vxe-table/style/style.css +22 -3
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/grid/src/grid.ts +29 -7
- package/packages/locale/lang/ar-EG.ts +6 -0
- package/packages/locale/lang/de-DE.ts +6 -0
- package/packages/locale/lang/en-US.ts +6 -0
- package/packages/locale/lang/es-ES.ts +6 -0
- package/packages/locale/lang/fr-FR.ts +6 -0
- package/packages/locale/lang/hu-HU.ts +6 -0
- package/packages/locale/lang/hy-AM.ts +6 -0
- package/packages/locale/lang/id-ID.ts +6 -0
- package/packages/locale/lang/it-IT.ts +6 -0
- package/packages/locale/lang/ja-JP.ts +6 -0
- package/packages/locale/lang/ko-KR.ts +6 -0
- package/packages/locale/lang/ms-MY.ts +6 -0
- package/packages/locale/lang/nb-NO.ts +6 -0
- package/packages/locale/lang/pt-BR.ts +6 -0
- package/packages/locale/lang/ru-RU.ts +6 -0
- package/packages/locale/lang/th-TH.ts +6 -0
- package/packages/locale/lang/ug-CN.ts +6 -0
- package/packages/locale/lang/uk-UA.ts +6 -0
- package/packages/locale/lang/uz-UZ.ts +6 -0
- package/packages/locale/lang/vi-VN.ts +6 -0
- package/packages/locale/lang/zh-CHT.ts +6 -0
- package/packages/locale/lang/zh-CN.ts +6 -0
- package/packages/table/module/custom/hook.ts +27 -4
- package/packages/table/module/custom/panel.ts +114 -102
- package/packages/table/module/export/export-panel.ts +3 -2
- package/packages/table/module/export/import-panel.ts +3 -2
- package/packages/table/module/filter/panel.ts +3 -2
- package/packages/table/module/menu/panel.ts +3 -2
- package/packages/table/src/body.ts +10 -8
- package/packages/table/src/cell.ts +14 -14
- package/packages/table/src/column.ts +3 -2
- package/packages/table/src/footer.ts +3 -2
- package/packages/table/src/group.ts +3 -2
- package/packages/table/src/header.ts +3 -2
- package/packages/table/src/props.ts +28 -7
- package/packages/table/src/table.ts +66 -46
- package/packages/toolbar/src/toolbar.ts +3 -2
- package/packages/ui/index.ts +11 -0
- package/packages/ui/src/comp.ts +3 -0
- package/styles/components/icon.scss +13 -1
- package/styles/components/table-module/custom.scss +9 -2
- package/styles/icon/iconfont.ttf +0 -0
- package/styles/icon/iconfont.woff +0 -0
- package/styles/icon/iconfont.woff2 +0 -0
- package/es/iconfont.1749800539928.woff +0 -0
- package/es/iconfont.1749800539928.woff2 +0 -0
- package/lib/iconfont.1749800539928.woff +0 -0
- package/lib/iconfont.1749800539928.woff2 +0 -0
package/es/table/src/table.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h, reactive, ref, provide, inject, nextTick, onActivated, onDeactivated, onBeforeUnmount, onUnmounted, watch, computed, onMounted } from 'vue';
|
|
2
|
+
import { defineVxeComponent } from '../../ui/src/comp';
|
|
2
3
|
import XEUtils from 'xe-utils';
|
|
3
4
|
import { initTpImg, getTpImg, isPx, isScale, hasClass, addClass, removeClass, getEventTargetNode, getPaddingTopBottomSize, setScrollTop, setScrollLeft, toCssUnit, hasControlKey } from '../../ui/src/dom';
|
|
4
5
|
import { getLastZIndex, nextZIndex, hasChildrenList, getFuncText, isEnableConf, formatText, eqEmptyValue } from '../../ui/src/utils';
|
|
@@ -22,7 +23,7 @@ const supportMaxRow = 5e6;
|
|
|
22
23
|
const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
23
24
|
const maxYHeight = 5e6;
|
|
24
25
|
const maxXWidth = 5e6;
|
|
25
|
-
export default
|
|
26
|
+
export default defineVxeComponent({
|
|
26
27
|
name: 'VxeTable',
|
|
27
28
|
props: tableProps,
|
|
28
29
|
emits: tableEmits,
|
|
@@ -233,6 +234,7 @@ export default defineComponent({
|
|
|
233
234
|
visiblwRowsFlag: 1,
|
|
234
235
|
isRowGroupStatus: false,
|
|
235
236
|
rowGroupList: [],
|
|
237
|
+
aggHandleFields: [],
|
|
236
238
|
rowGroupExpandedFlag: 1,
|
|
237
239
|
rowExpandedFlag: 1,
|
|
238
240
|
treeExpandedFlag: 1,
|
|
@@ -677,23 +679,15 @@ export default defineComponent({
|
|
|
677
679
|
return Object.assign({}, getConfig().table.customConfig, props.customConfig);
|
|
678
680
|
});
|
|
679
681
|
const computeTableRowExpandedList = computed(() => {
|
|
680
|
-
const {
|
|
681
|
-
const { rowExpandedFlag, expandColumn, rowGroupExpandedFlag, treeExpandedFlag, isRowGroupStatus } = reactData;
|
|
682
|
+
const { rowExpandedFlag, expandColumn, rowGroupExpandedFlag, treeExpandedFlag } = reactData;
|
|
682
683
|
const { visibleDataRowIdData, rowExpandedMaps } = internalData;
|
|
683
|
-
const treeOpts = computeTreeOpts.value;
|
|
684
|
-
const { transform } = treeOpts;
|
|
685
684
|
const expandList = [];
|
|
686
685
|
if (expandColumn && rowExpandedFlag && rowGroupExpandedFlag && treeExpandedFlag) {
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
});
|
|
693
|
-
}
|
|
694
|
-
else {
|
|
695
|
-
return XEUtils.values(rowExpandedMaps);
|
|
696
|
-
}
|
|
686
|
+
XEUtils.each(rowExpandedMaps, (row, rowid) => {
|
|
687
|
+
if (visibleDataRowIdData[rowid]) {
|
|
688
|
+
expandList.push(row);
|
|
689
|
+
}
|
|
690
|
+
});
|
|
697
691
|
}
|
|
698
692
|
return expandList;
|
|
699
693
|
});
|
|
@@ -767,6 +761,18 @@ export default defineComponent({
|
|
|
767
761
|
const rowGroupOpts = computeRowGroupOpts.value;
|
|
768
762
|
return rowGroupOpts.groupFields;
|
|
769
763
|
});
|
|
764
|
+
const computeRowGroupColumns = computed(() => {
|
|
765
|
+
const { rowGroupList } = reactData;
|
|
766
|
+
const { fullColumnFieldData } = internalData;
|
|
767
|
+
const rgColumns = [];
|
|
768
|
+
rowGroupList.forEach(aggConf => {
|
|
769
|
+
const colRest = fullColumnFieldData[aggConf.field];
|
|
770
|
+
if (colRest) {
|
|
771
|
+
rgColumns.push(colRest.column);
|
|
772
|
+
}
|
|
773
|
+
});
|
|
774
|
+
return rgColumns;
|
|
775
|
+
});
|
|
770
776
|
const refMaps = {
|
|
771
777
|
refElem,
|
|
772
778
|
refTooltip,
|
|
@@ -854,6 +860,8 @@ export default defineComponent({
|
|
|
854
860
|
computeIsMaxFixedColumn,
|
|
855
861
|
computeIsAllCheckboxDisabled,
|
|
856
862
|
computeVirtualScrollBars,
|
|
863
|
+
computeRowGroupFields,
|
|
864
|
+
computeRowGroupColumns,
|
|
857
865
|
computeSXOpts,
|
|
858
866
|
computeSYOpts
|
|
859
867
|
};
|
|
@@ -884,6 +892,9 @@ export default defineComponent({
|
|
|
884
892
|
internalData.currKeyField = keyField;
|
|
885
893
|
internalData.isCurrDeepKey = hasDeepKey(keyField);
|
|
886
894
|
};
|
|
895
|
+
const hangleStorageDefaultValue = (value, isAll) => {
|
|
896
|
+
return XEUtils.isBoolean(value) ? value : isAll;
|
|
897
|
+
};
|
|
887
898
|
const getNextSortOrder = (column) => {
|
|
888
899
|
const sortOpts = computeSortOpts.value;
|
|
889
900
|
const { orders = [] } = sortOpts;
|
|
@@ -1413,13 +1424,13 @@ export default defineComponent({
|
|
|
1413
1424
|
const { customConfig } = props;
|
|
1414
1425
|
const tableId = computeTableId.value;
|
|
1415
1426
|
const customOpts = computeCustomOpts.value;
|
|
1416
|
-
const { storage, restoreStore } = customOpts;
|
|
1427
|
+
const { storage, restoreStore, storeOptions } = customOpts;
|
|
1417
1428
|
const isAllCustom = storage === true;
|
|
1418
|
-
const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {});
|
|
1419
|
-
const isCustomResizable =
|
|
1420
|
-
const isCustomVisible =
|
|
1421
|
-
const isCustomFixed =
|
|
1422
|
-
const isCustomSort =
|
|
1429
|
+
const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {}, storeOptions);
|
|
1430
|
+
const isCustomResizable = hangleStorageDefaultValue(storageOpts.resizable, isAllCustom);
|
|
1431
|
+
const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom);
|
|
1432
|
+
const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom);
|
|
1433
|
+
const isCustomSort = hangleStorageDefaultValue(storageOpts.sort, isAllCustom);
|
|
1423
1434
|
if ((customConfig ? isEnableConf(customOpts) : customOpts.enabled) && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
|
|
1424
1435
|
if (!tableId) {
|
|
1425
1436
|
errLog('vxe.error.reqProp', ['id']);
|
|
@@ -2992,13 +3003,18 @@ export default defineComponent({
|
|
|
2992
3003
|
});
|
|
2993
3004
|
};
|
|
2994
3005
|
const handleUpdateRowGroup = (groupFields) => {
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
3006
|
+
const aggFields = [];
|
|
3007
|
+
const aggConfs = [];
|
|
3008
|
+
if (groupFields) {
|
|
3009
|
+
(XEUtils.isArray(groupFields) ? groupFields : [groupFields]).forEach(field => {
|
|
3010
|
+
aggFields.push(field);
|
|
3011
|
+
aggConfs.push({
|
|
2998
3012
|
field
|
|
2999
|
-
};
|
|
3000
|
-
})
|
|
3001
|
-
|
|
3013
|
+
});
|
|
3014
|
+
});
|
|
3015
|
+
}
|
|
3016
|
+
reactData.rowGroupList = aggConfs;
|
|
3017
|
+
reactData.aggHandleFields = aggFields;
|
|
3002
3018
|
};
|
|
3003
3019
|
const handleeGroupSummary = (aggList) => {
|
|
3004
3020
|
const aggregateOpts = computeAggregateOpts.value;
|
|
@@ -3179,9 +3195,9 @@ export default defineComponent({
|
|
|
3179
3195
|
internalData.cvCacheMaps = {};
|
|
3180
3196
|
reactData.isRowLoading = true;
|
|
3181
3197
|
reactData.scrollVMLoading = false;
|
|
3182
|
-
internalData.treeExpandedMaps = {}
|
|
3198
|
+
// internalData.treeExpandedMaps = {}
|
|
3183
3199
|
reactData.treeExpandedFlag++;
|
|
3184
|
-
internalData.rowExpandedMaps = {}
|
|
3200
|
+
// internalData.rowExpandedMaps = {}
|
|
3185
3201
|
reactData.rowExpandedFlag++;
|
|
3186
3202
|
internalData.insertRowMaps = {};
|
|
3187
3203
|
reactData.insertRowFlag++;
|
|
@@ -3909,7 +3925,7 @@ export default defineComponent({
|
|
|
3909
3925
|
const handleUpdateResize = () => {
|
|
3910
3926
|
const el = refElem.value;
|
|
3911
3927
|
if (el && el.clientWidth && el.clientHeight) {
|
|
3912
|
-
|
|
3928
|
+
$xeTable.recalculate();
|
|
3913
3929
|
}
|
|
3914
3930
|
};
|
|
3915
3931
|
const handleUpdateColResize = (evnt, params) => {
|
|
@@ -6569,13 +6585,13 @@ export default defineComponent({
|
|
|
6569
6585
|
const { id } = props;
|
|
6570
6586
|
const customOpts = computeCustomOpts.value;
|
|
6571
6587
|
const { collectColumn } = internalData;
|
|
6572
|
-
const { storage, checkMethod } = customOpts;
|
|
6588
|
+
const { storage, checkMethod, storeOptions } = customOpts;
|
|
6573
6589
|
const isAllCustom = storage === true;
|
|
6574
|
-
const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {});
|
|
6575
|
-
const isCustomResizable =
|
|
6576
|
-
const isCustomVisible =
|
|
6577
|
-
const isCustomFixed =
|
|
6578
|
-
const isCustomSort =
|
|
6590
|
+
const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {}, storeOptions);
|
|
6591
|
+
const isCustomResizable = hangleStorageDefaultValue(storageOpts.resizable, isAllCustom);
|
|
6592
|
+
const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom);
|
|
6593
|
+
const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom);
|
|
6594
|
+
const isCustomSort = hangleStorageDefaultValue(storageOpts.sort, isAllCustom);
|
|
6579
6595
|
const resizableData = {};
|
|
6580
6596
|
const sortData = {};
|
|
6581
6597
|
const visibleData = {};
|
|
@@ -8074,13 +8090,13 @@ export default defineComponent({
|
|
|
8074
8090
|
const { customConfig } = props;
|
|
8075
8091
|
const tableId = computeTableId.value;
|
|
8076
8092
|
const customOpts = computeCustomOpts.value;
|
|
8077
|
-
const { updateStore, storage } = customOpts;
|
|
8093
|
+
const { updateStore, storage, storeOptions } = customOpts;
|
|
8078
8094
|
const isAllCustom = storage === true;
|
|
8079
|
-
const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {});
|
|
8080
|
-
const isCustomResizable =
|
|
8081
|
-
const isCustomVisible =
|
|
8082
|
-
const isCustomFixed =
|
|
8083
|
-
const isCustomSort =
|
|
8095
|
+
const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {}, storeOptions);
|
|
8096
|
+
const isCustomResizable = hangleStorageDefaultValue(storageOpts.resizable, isAllCustom);
|
|
8097
|
+
const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom);
|
|
8098
|
+
const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom);
|
|
8099
|
+
const isCustomSort = hangleStorageDefaultValue(storageOpts.sort, isAllCustom);
|
|
8084
8100
|
if (type !== 'reset') {
|
|
8085
8101
|
// fix:修复拖动列宽,重置按钮无法点击的问题
|
|
8086
8102
|
reactData.isCustomStatus = true;
|
|
@@ -10539,15 +10555,16 @@ export default defineComponent({
|
|
|
10539
10555
|
};
|
|
10540
10556
|
const renderEmptyBody = () => {
|
|
10541
10557
|
const emptyOpts = computeEmptyOpts.value;
|
|
10542
|
-
const
|
|
10543
|
-
|
|
10544
|
-
|
|
10558
|
+
const emptySlot = slots.empty;
|
|
10559
|
+
const emptyParams = { $table: $xeTable, $grid: $xeGrid };
|
|
10560
|
+
if (emptySlot) {
|
|
10561
|
+
return emptySlot(emptyParams);
|
|
10545
10562
|
}
|
|
10546
10563
|
else {
|
|
10547
10564
|
const compConf = emptyOpts.name ? renderer.get(emptyOpts.name) : null;
|
|
10548
10565
|
const rtEmptyView = compConf ? (compConf.renderTableEmpty || compConf.renderTableEmptyView || compConf.renderEmpty) : null;
|
|
10549
10566
|
if (rtEmptyView) {
|
|
10550
|
-
return getSlotVNs(rtEmptyView(emptyOpts,
|
|
10567
|
+
return getSlotVNs(rtEmptyView(emptyOpts, emptyParams));
|
|
10551
10568
|
}
|
|
10552
10569
|
}
|
|
10553
10570
|
return getFuncText(props.emptyText) || getI18n('vxe.table.emptyText');
|
package/es/table/style.css
CHANGED
|
@@ -543,7 +543,7 @@
|
|
|
543
543
|
|
|
544
544
|
@font-face {
|
|
545
545
|
font-family: "vxetableiconfont";
|
|
546
|
-
src: url("data:application/x-font-woff2;charset=utf-8;base64,
|
|
546
|
+
src: url("data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAA84AAsAAAAAIDgAAA7oAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACIDgqpLKFiATYCJAOBDAtIAAQgBYVHB4N0G2QbM6P2krSyT/ZfH/BAhj5eBapat02oRr6GVbwUDPTpF7NF+KxYgQAQitcIb+DUdqgiVcSR1nUCDb3z3kXuFn6R4Pk9NpSSB2o/2tv9e2qKeldJNEIiQUgmJVIJnSG5xRuWM6HnUJkkzUzktedeC+FMIlPPB77wjVTOpDITqQxP2/yHB/a7484+2sQoQJ0HRgRlFVYtGucPdJUsA1fJdFGsui2AgDY/d1wPgdvidvzqZskVEG3Rgoxcpmal1O9Mv+FLMmb9ttddBmGTlyVeiGtTU5VKWVvpZtXl1PndAGUQUMALyP9LTvz6z/hs2VlL2bK7HHeNdXxMKGdNuWMfLyygi5CWFqACVowLIK1eZuO3H0Gqbvbs3XY8q9lsBBYRfumnCCg0blXcvnP/caVXT924rlFyujzw2jxcvXThlPxlieQgBfkFuV4nTcIddcRb8TTg9u37h89EoZEoJ3N6rcPnd5z14mn4Ve2WFshe0Ua3CwaPyEGG4YyVxvPOjeGk7EGGb7RQ96dMYRrz2iX172jvGt/5v8uk0qjFWN3vpr3rf/fifen7vvdxpVRYZSfe//5w5MOPj5EfjZ9Sv/TXf5BAOW8Wv0TuiXDgT5cH8+ecL4qbkdv/Ix4N6pVqlifKlynRqkASVKvVqEahImVytKhTrkKlKrnatGtSrEMnIRc2LYbwnDo7eUfjgAbekYB63vkDSnmXCWjmnYrL27FGcBGsGVw+WAu4DGwsuBKwbnCtYNPAFYD1g0tgLwAIvEcB1bz3AtTyPg7QyPsUQA3vC7lCsEpwRWAnwJWBfQIghw9HAC18eA2o48MbQDkf3gIq+PCOqwR7D0AVHyO53BvbA64NzAhAO59SAU18Xgoo5heuAyyCdIIuK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vWJ5cjvjd5wINIrHzIfUikfNorSLp82QOIX4fJTkTiRTqHZMpHnI7YkQNBxGjYl+5Hokg+4W0kzLvPQ1HKxzQi1NdddCMSAABZtVk+1ouXzZ4gRB7IBYYGaQfCJj+jouFRRx6WT4ohoRnnFJndqf7frMFJjOu4ZT/CFOmRouXeyKGsFcZD+8s6GKhZtre9FJOF/j3AP2NveTN0KtawNZBA8Zvli387qD+oTe2pn0V72DfRlXT7wI816P82qBnL6HILNiMKz6fw/7S20uvs51d5xhYpF7SFEuXpUjLlBsUUvajkKLJXyVXuhFJoyLmpi1S5o0ZIBej1yFCCdi+VqNRHJdPuv5CSg6bkqF38MLKni85Qjvw9OTv2+eFtimAYXb9yOQgn7mjzJRr0hOLD/sShEahqj/iWf1FrFnZP3aO6+wcyahxj1PnwbJZcUpnc9+PrIZG4ovKKwbrRrLzMZkkXdhdk2vhCIWBQ5PRW1rpZIFiymrklvJmgR489OpGfC2PQFtcH1ON+EflLHarK4pNznnQeA4g/KAfaY0FI3UuDZ9MkjhOlronznRmIzh3CKfqBXqHAdMYAZvFixo6UvNIu+fypZ1Lteq+nl+9qhkQSmUKl0Tk4uX69jHnHE+3ad+jY6dfxMyazsnNy8/ILunbrbvcMScWDQaWVzMPeHKhh3YcYfW39Tl1AqTBEbZ/FR5WygzHbzX/nn21Z2IesgdCnTHSqELP4MGL4h/FKUA/L7xbNbLeX97LUT3YaWjWZfBBqE5/7LGu8HPQogKL5KAs+eFa1cnzv0jyM5uSIMNlRakQ1KCIfTJlz1q7xKr68yPrspcaMdDC3kEDcrwXfllGPQVUWx7faUywIdhwVBj8CR8J3kVgzRzTU8EvBiu7Za4XVn6e8zBHOhqo65EhkF081ZFV/6PFH8cYGAAA=") format("woff2");
|
|
547
547
|
}
|
|
548
548
|
@keyframes rollCircle {
|
|
549
549
|
0% {
|
|
@@ -599,6 +599,18 @@
|
|
|
599
599
|
color: var(--vxe-ui-status-error-color);
|
|
600
600
|
}
|
|
601
601
|
|
|
602
|
+
.vxe-table-icon-close:before {
|
|
603
|
+
content: "\e6e9";
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.vxe-table-icon-grouping:before {
|
|
607
|
+
content: "\e66c";
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.vxe-table-icon-values:before {
|
|
611
|
+
content: "\e66f";
|
|
612
|
+
}
|
|
613
|
+
|
|
602
614
|
.vxe-table-icon-add-sub:before {
|
|
603
615
|
content: "\e6bc";
|
|
604
616
|
}
|
|
@@ -759,9 +771,14 @@
|
|
|
759
771
|
width: 100%;
|
|
760
772
|
}
|
|
761
773
|
|
|
774
|
+
.vxe-table-custom--handle-wrapper {
|
|
775
|
+
display: flex;
|
|
776
|
+
flex-direction: column;
|
|
777
|
+
}
|
|
778
|
+
|
|
762
779
|
.vxe-table-custom-wrapper {
|
|
763
780
|
display: none;
|
|
764
|
-
flex-direction:
|
|
781
|
+
flex-direction: row;
|
|
765
782
|
position: absolute;
|
|
766
783
|
text-align: left;
|
|
767
784
|
background-color: var(--vxe-ui-layout-background-color);
|
|
@@ -841,8 +858,10 @@
|
|
|
841
858
|
}
|
|
842
859
|
|
|
843
860
|
.vxe-table-custom--header {
|
|
861
|
+
display: flex;
|
|
862
|
+
align-items: center;
|
|
844
863
|
flex-shrink: 0;
|
|
845
|
-
|
|
864
|
+
height: 2.4em;
|
|
846
865
|
font-weight: 700;
|
|
847
866
|
border-bottom: 1px solid var(--vxe-ui-base-popup-border-color);
|
|
848
867
|
-webkit-user-select: none;
|