vxe-table 3.15.39 → 3.15.41
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/grid/src/grid.js +73 -49
- package/es/{iconfont.1749800510225.ttf → iconfont.1750153781820.ttf} +0 -0
- package/es/iconfont.1750153781820.woff +0 -0
- package/es/iconfont.1750153781820.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/mixin.js +29 -3
- package/es/table/module/custom/panel.js +118 -105
- package/es/table/src/body.js +8 -5
- package/es/table/src/cell.js +12 -12
- package/es/table/src/methods.js +34 -26
- package/es/table/src/props.js +32 -8
- package/es/table/src/table.js +57 -38
- package/es/table/style.css +22 -3
- package/es/table/style.min.css +1 -1
- package/es/toolbar/src/toolbar.js +163 -63
- package/es/ui/index.js +12 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +22 -3
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +81 -82
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/{iconfont.1749800510225.ttf → iconfont.1750153781820.ttf} +0 -0
- package/lib/iconfont.1750153781820.woff +0 -0
- package/lib/iconfont.1750153781820.woff2 +0 -0
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +495 -288
- 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/mixin.js +32 -5
- package/lib/table/module/custom/mixin.min.js +1 -1
- package/lib/table/module/custom/panel.js +14 -2
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/src/body.js +11 -11
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +14 -14
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/methods.js +38 -25
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/props.js +32 -8
- package/lib/table/src/table.js +64 -50
- 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 +189 -88
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/ui/index.js +12 -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 +22 -3
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/grid/src/grid.ts +93 -54
- 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/mixin.ts +27 -3
- package/packages/table/module/custom/panel.ts +119 -106
- package/packages/table/src/body.ts +13 -10
- package/packages/table/src/cell.ts +12 -12
- package/packages/table/src/methods.ts +35 -26
- package/packages/table/src/props.ts +32 -8
- package/packages/table/src/table.ts +76 -49
- package/packages/toolbar/src/toolbar.ts +167 -62
- package/packages/ui/index.ts +11 -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.1749800510225.woff +0 -0
- package/es/iconfont.1749800510225.woff2 +0 -0
- package/lib/iconfont.1749800510225.woff +0 -0
- package/lib/iconfont.1749800510225.woff2 +0 -0
package/lib/table/src/methods.js
CHANGED
|
@@ -37,6 +37,9 @@ function eqCellValue(row1, row2, field) {
|
|
|
37
37
|
}
|
|
38
38
|
return _xeUtils.default.isEqual(val1, val2);
|
|
39
39
|
}
|
|
40
|
+
function hangleStorageDefaultValue(value, isAll) {
|
|
41
|
+
return _xeUtils.default.isBoolean(value) ? value : isAll;
|
|
42
|
+
}
|
|
40
43
|
function getNextSortOrder($xeTable, column) {
|
|
41
44
|
const sortOpts = $xeTable.computeSortOpts;
|
|
42
45
|
const {
|
|
@@ -201,14 +204,15 @@ function restoreCustomStorage($xeTable) {
|
|
|
201
204
|
const customOpts = $xeTable.computeCustomOpts;
|
|
202
205
|
const {
|
|
203
206
|
storage,
|
|
204
|
-
restoreStore
|
|
207
|
+
restoreStore,
|
|
208
|
+
storeOptions
|
|
205
209
|
} = customOpts;
|
|
206
210
|
const isAllCustom = storage === true;
|
|
207
|
-
const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {});
|
|
208
|
-
const isCustomResizable =
|
|
209
|
-
const isCustomVisible =
|
|
210
|
-
const isCustomFixed =
|
|
211
|
-
const isCustomSort =
|
|
211
|
+
const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {}, storeOptions);
|
|
212
|
+
const isCustomResizable = hangleStorageDefaultValue(storageOpts.resizable, isAllCustom);
|
|
213
|
+
const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom);
|
|
214
|
+
const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom);
|
|
215
|
+
const isCustomSort = hangleStorageDefaultValue(storageOpts.sort, isAllCustom);
|
|
212
216
|
if ((customConfig ? (0, _utils.isEnableConf)(customOpts) : customOpts.enabled) && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
|
|
213
217
|
if (!tableId) {
|
|
214
218
|
(0, _log.errLog)('vxe.error.reqProp', ['id']);
|
|
@@ -3136,11 +3140,18 @@ function handleRecalculateLayout($xeTable, reFull) {
|
|
|
3136
3140
|
}
|
|
3137
3141
|
const handleUpdateRowGroup = ($xeTable, groupFields) => {
|
|
3138
3142
|
const reactData = $xeTable;
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3143
|
+
const aggFields = [];
|
|
3144
|
+
const aggConfs = [];
|
|
3145
|
+
if (groupFields) {
|
|
3146
|
+
(_xeUtils.default.isArray(groupFields) ? groupFields : [groupFields]).forEach(field => {
|
|
3147
|
+
aggFields.push(field);
|
|
3148
|
+
aggConfs.push({
|
|
3149
|
+
field
|
|
3150
|
+
});
|
|
3151
|
+
});
|
|
3152
|
+
}
|
|
3153
|
+
reactData.rowGroupList = aggConfs;
|
|
3154
|
+
reactData.aggHandleFields = aggFields;
|
|
3144
3155
|
};
|
|
3145
3156
|
function handleeGroupSummary($xeTable, aggList) {
|
|
3146
3157
|
const aggregateOpts = $xeTable.computeAggregateOpts;
|
|
@@ -3362,9 +3373,9 @@ function loadTableData($xeTable, datas, isReset) {
|
|
|
3362
3373
|
internalData.cvCacheMaps = {};
|
|
3363
3374
|
reactData.isRowLoading = true;
|
|
3364
3375
|
reactData.scrollVMLoading = false;
|
|
3365
|
-
internalData.treeExpandedMaps = {}
|
|
3376
|
+
// internalData.treeExpandedMaps = {}
|
|
3366
3377
|
reactData.treeExpandedFlag++;
|
|
3367
|
-
internalData.rowExpandedMaps = {}
|
|
3378
|
+
// internalData.rowExpandedMaps = {}
|
|
3368
3379
|
reactData.rowExpandedFlag++;
|
|
3369
3380
|
internalData.insertRowMaps = {};
|
|
3370
3381
|
reactData.insertRowFlag++;
|
|
@@ -5760,14 +5771,15 @@ const Methods = {
|
|
|
5760
5771
|
const customOpts = $xeTable.computeCustomOpts;
|
|
5761
5772
|
const {
|
|
5762
5773
|
storage,
|
|
5763
|
-
restoreStore
|
|
5774
|
+
restoreStore,
|
|
5775
|
+
storeOptions
|
|
5764
5776
|
} = customOpts;
|
|
5765
5777
|
const isAllCustom = storage === true;
|
|
5766
|
-
const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {});
|
|
5767
|
-
const isCustomResizable =
|
|
5768
|
-
const isCustomVisible =
|
|
5769
|
-
const isCustomFixed =
|
|
5770
|
-
const isCustomSort =
|
|
5778
|
+
const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {}, storeOptions);
|
|
5779
|
+
const isCustomResizable = hangleStorageDefaultValue(storageOpts.resizable, isAllCustom);
|
|
5780
|
+
const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom);
|
|
5781
|
+
const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom);
|
|
5782
|
+
const isCustomSort = hangleStorageDefaultValue(storageOpts.sort, isAllCustom);
|
|
5771
5783
|
if ((customConfig ? (0, _utils.isEnableConf)(customOpts) : customOpts.enabled) && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
|
|
5772
5784
|
if (!tableId) {
|
|
5773
5785
|
(0, _log.errLog)('vxe.error.reqProp', ['id']);
|
|
@@ -5804,14 +5816,15 @@ const Methods = {
|
|
|
5804
5816
|
} = internalData;
|
|
5805
5817
|
const {
|
|
5806
5818
|
storage,
|
|
5807
|
-
checkMethod
|
|
5819
|
+
checkMethod,
|
|
5820
|
+
storeOptions
|
|
5808
5821
|
} = customOpts;
|
|
5809
5822
|
const isAllCustom = storage === true;
|
|
5810
|
-
const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {});
|
|
5811
|
-
const isCustomResizable =
|
|
5812
|
-
const isCustomVisible =
|
|
5813
|
-
const isCustomFixed =
|
|
5814
|
-
const isCustomSort =
|
|
5823
|
+
const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {}, storeOptions);
|
|
5824
|
+
const isCustomResizable = hangleStorageDefaultValue(storageOpts.resizable, isAllCustom);
|
|
5825
|
+
const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom);
|
|
5826
|
+
const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom);
|
|
5827
|
+
const isCustomSort = hangleStorageDefaultValue(storageOpts.sort, isAllCustom);
|
|
5815
5828
|
const resizableData = {};
|
|
5816
5829
|
const sortData = {};
|
|
5817
5830
|
const visibleData = {};
|