vxe-table 3.15.38 → 3.15.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/es/grid/src/grid.js +73 -49
- package/es/{iconfont.1749796837661.ttf → iconfont.1750082820248.ttf} +0 -0
- package/es/iconfont.1750082820248.woff +0 -0
- package/es/iconfont.1750082820248.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 +9 -6
- 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/ui/index.js +4 -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.1749796837661.ttf → iconfont.1750082820248.ttf} +0 -0
- package/lib/iconfont.1750082820248.woff +0 -0
- package/lib/iconfont.1750082820248.woff2 +0 -0
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +285 -187
- 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 +12 -12
- package/lib/table/src/body.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/ui/index.js +4 -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 +14 -11
- 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/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.1749796837661.woff +0 -0
- package/es/iconfont.1749796837661.woff2 +0 -0
- package/lib/iconfont.1749796837661.woff +0 -0
- package/lib/iconfont.1749796837661.woff2 +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2002,7 +2002,7 @@ function getClass(property, params) {
|
|
|
2002
2002
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2003
2003
|
|
|
2004
2004
|
|
|
2005
|
-
const version = "3.15.
|
|
2005
|
+
const version = "3.15.39";
|
|
2006
2006
|
core_.VxeUI.version = version;
|
|
2007
2007
|
core_.VxeUI.tableVersion = version;
|
|
2008
2008
|
core_.VxeUI.setConfig({
|
|
@@ -2302,6 +2302,9 @@ core_.VxeUI.setIcon({
|
|
|
2302
2302
|
TABLE_DRAG_DISABLED: iconPrefix + 'no-drop',
|
|
2303
2303
|
TABLE_ROW_GROUP_OPEN: iconPrefix + 'arrow-right rotate90',
|
|
2304
2304
|
TABLE_ROW_GROUP_CLOSE: iconPrefix + 'arrow-right',
|
|
2305
|
+
TABLE_AGGREGATION_GROUPING: iconPrefix + 'grouping',
|
|
2306
|
+
TABLE_AGGREGATION_VALUES: iconPrefix + 'values',
|
|
2307
|
+
TABLE_AGGREGATION_DELETE: iconPrefix + 'close',
|
|
2305
2308
|
// toolbar
|
|
2306
2309
|
TOOLBAR_TOOLS_REFRESH: iconPrefix + 'repeat',
|
|
2307
2310
|
TOOLBAR_TOOLS_REFRESH_LOADING: iconPrefix + 'repeat roll',
|
|
@@ -2647,7 +2650,7 @@ function isNodeElement(elem) {
|
|
|
2647
2650
|
const {
|
|
2648
2651
|
log: log_log
|
|
2649
2652
|
} = core_.VxeUI;
|
|
2650
|
-
const log_version = `table v${"3.15.
|
|
2653
|
+
const log_version = `table v${"3.15.39"}`;
|
|
2651
2654
|
const warnLog = log_log.create('warn', log_version);
|
|
2652
2655
|
const errLog = log_log.create('error', log_version);
|
|
2653
2656
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -5159,6 +5162,9 @@ function eqCellValue(row1, row2, field) {
|
|
|
5159
5162
|
}
|
|
5160
5163
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(val1, val2);
|
|
5161
5164
|
}
|
|
5165
|
+
function hangleStorageDefaultValue(value, isAll) {
|
|
5166
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(value) ? value : isAll;
|
|
5167
|
+
}
|
|
5162
5168
|
function getNextSortOrder($xeTable, column) {
|
|
5163
5169
|
const sortOpts = $xeTable.computeSortOpts;
|
|
5164
5170
|
const {
|
|
@@ -5323,14 +5329,15 @@ function restoreCustomStorage($xeTable) {
|
|
|
5323
5329
|
const customOpts = $xeTable.computeCustomOpts;
|
|
5324
5330
|
const {
|
|
5325
5331
|
storage,
|
|
5326
|
-
restoreStore
|
|
5332
|
+
restoreStore,
|
|
5333
|
+
storeOptions
|
|
5327
5334
|
} = customOpts;
|
|
5328
5335
|
const isAllCustom = storage === true;
|
|
5329
|
-
const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {});
|
|
5330
|
-
const isCustomResizable =
|
|
5331
|
-
const isCustomVisible =
|
|
5332
|
-
const isCustomFixed =
|
|
5333
|
-
const isCustomSort =
|
|
5336
|
+
const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {}, storeOptions);
|
|
5337
|
+
const isCustomResizable = hangleStorageDefaultValue(storageOpts.resizable, isAllCustom);
|
|
5338
|
+
const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom);
|
|
5339
|
+
const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom);
|
|
5340
|
+
const isCustomSort = hangleStorageDefaultValue(storageOpts.sort, isAllCustom);
|
|
5334
5341
|
if ((customConfig ? isEnableConf(customOpts) : customOpts.enabled) && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
|
|
5335
5342
|
if (!tableId) {
|
|
5336
5343
|
errLog('vxe.error.reqProp', ['id']);
|
|
@@ -8258,11 +8265,18 @@ function handleRecalculateLayout($xeTable, reFull) {
|
|
|
8258
8265
|
}
|
|
8259
8266
|
const handleUpdateRowGroup = ($xeTable, groupFields) => {
|
|
8260
8267
|
const reactData = $xeTable;
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8268
|
+
const aggFields = [];
|
|
8269
|
+
const aggConfs = [];
|
|
8270
|
+
if (groupFields) {
|
|
8271
|
+
(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(groupFields) ? groupFields : [groupFields]).forEach(field => {
|
|
8272
|
+
aggFields.push(field);
|
|
8273
|
+
aggConfs.push({
|
|
8274
|
+
field
|
|
8275
|
+
});
|
|
8276
|
+
});
|
|
8277
|
+
}
|
|
8278
|
+
reactData.rowGroupList = aggConfs;
|
|
8279
|
+
reactData.aggHandleFields = aggFields;
|
|
8266
8280
|
};
|
|
8267
8281
|
function handleeGroupSummary($xeTable, aggList) {
|
|
8268
8282
|
const aggregateOpts = $xeTable.computeAggregateOpts;
|
|
@@ -8484,9 +8498,9 @@ function loadTableData($xeTable, datas, isReset) {
|
|
|
8484
8498
|
internalData.cvCacheMaps = {};
|
|
8485
8499
|
reactData.isRowLoading = true;
|
|
8486
8500
|
reactData.scrollVMLoading = false;
|
|
8487
|
-
internalData.treeExpandedMaps = {}
|
|
8501
|
+
// internalData.treeExpandedMaps = {}
|
|
8488
8502
|
reactData.treeExpandedFlag++;
|
|
8489
|
-
internalData.rowExpandedMaps = {}
|
|
8503
|
+
// internalData.rowExpandedMaps = {}
|
|
8490
8504
|
reactData.rowExpandedFlag++;
|
|
8491
8505
|
internalData.insertRowMaps = {};
|
|
8492
8506
|
reactData.insertRowFlag++;
|
|
@@ -10884,14 +10898,15 @@ const Methods = {
|
|
|
10884
10898
|
const customOpts = $xeTable.computeCustomOpts;
|
|
10885
10899
|
const {
|
|
10886
10900
|
storage,
|
|
10887
|
-
restoreStore
|
|
10901
|
+
restoreStore,
|
|
10902
|
+
storeOptions
|
|
10888
10903
|
} = customOpts;
|
|
10889
10904
|
const isAllCustom = storage === true;
|
|
10890
|
-
const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {});
|
|
10891
|
-
const isCustomResizable =
|
|
10892
|
-
const isCustomVisible =
|
|
10893
|
-
const isCustomFixed =
|
|
10894
|
-
const isCustomSort =
|
|
10905
|
+
const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {}, storeOptions);
|
|
10906
|
+
const isCustomResizable = hangleStorageDefaultValue(storageOpts.resizable, isAllCustom);
|
|
10907
|
+
const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom);
|
|
10908
|
+
const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom);
|
|
10909
|
+
const isCustomSort = hangleStorageDefaultValue(storageOpts.sort, isAllCustom);
|
|
10895
10910
|
if ((customConfig ? isEnableConf(customOpts) : customOpts.enabled) && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
|
|
10896
10911
|
if (!tableId) {
|
|
10897
10912
|
errLog('vxe.error.reqProp', ['id']);
|
|
@@ -10928,14 +10943,15 @@ const Methods = {
|
|
|
10928
10943
|
} = internalData;
|
|
10929
10944
|
const {
|
|
10930
10945
|
storage,
|
|
10931
|
-
checkMethod
|
|
10946
|
+
checkMethod,
|
|
10947
|
+
storeOptions
|
|
10932
10948
|
} = customOpts;
|
|
10933
10949
|
const isAllCustom = storage === true;
|
|
10934
|
-
const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {});
|
|
10935
|
-
const isCustomResizable =
|
|
10936
|
-
const isCustomVisible =
|
|
10937
|
-
const isCustomFixed =
|
|
10938
|
-
const isCustomSort =
|
|
10950
|
+
const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {}, storeOptions);
|
|
10951
|
+
const isCustomResizable = hangleStorageDefaultValue(storageOpts.resizable, isAllCustom);
|
|
10952
|
+
const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom);
|
|
10953
|
+
const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom);
|
|
10954
|
+
const isCustomSort = hangleStorageDefaultValue(storageOpts.sort, isAllCustom);
|
|
10939
10955
|
const resizableData = {};
|
|
10940
10956
|
const sortData = {};
|
|
10941
10957
|
const visibleData = {};
|
|
@@ -17514,7 +17530,7 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
|
|
|
17514
17530
|
if (mEndRow) {
|
|
17515
17531
|
const meRowRest = fullAllDataRowIdData[getRowid($xeTable, mEndRow)];
|
|
17516
17532
|
if (meRowRest) {
|
|
17517
|
-
cellHeight += meRowRest.oTop - rowRest.oTop
|
|
17533
|
+
cellHeight += meRowRest.oTop + getCellRestHeight(meRowRest, cellOpts, rowOpts, defaultRowHeight) - rowRest.oTop - getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
|
|
17518
17534
|
}
|
|
17519
17535
|
}
|
|
17520
17536
|
}
|
|
@@ -17841,7 +17857,7 @@ function renderRows(h, _vm, fixedType, isOptimizeMode, tableData, tableColumn) {
|
|
|
17841
17857
|
} = expandColumn || {};
|
|
17842
17858
|
const colid = expandColumn.id;
|
|
17843
17859
|
const colRest = fullColumnIdData[colid] || {};
|
|
17844
|
-
const hasEllipsis = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().
|
|
17860
|
+
const hasEllipsis = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(showOverflow) ? isAllOverflow : showOverflow;
|
|
17845
17861
|
let columnIndex = -1;
|
|
17846
17862
|
let $columnIndex = -1;
|
|
17847
17863
|
let _columnIndex = -1;
|
|
@@ -17959,9 +17975,9 @@ function renderRows(h, _vm, fixedType, isOptimizeMode, tableData, tableColumn) {
|
|
|
17959
17975
|
const tableReactData = $xeTable;
|
|
17960
17976
|
const tableInternalData = $xeTable;
|
|
17961
17977
|
const $xeGrid = $xeTable.$xeGrid;
|
|
17978
|
+
const slots = $xeTable.$scopedSlots;
|
|
17962
17979
|
const {
|
|
17963
|
-
xID
|
|
17964
|
-
$scopedSlots
|
|
17980
|
+
xID
|
|
17965
17981
|
} = $xeTable;
|
|
17966
17982
|
const {
|
|
17967
17983
|
fixedColumn,
|
|
@@ -18063,18 +18079,18 @@ function renderRows(h, _vm, fixedType, isOptimizeMode, tableData, tableColumn) {
|
|
|
18063
18079
|
}
|
|
18064
18080
|
}
|
|
18065
18081
|
let emptyContent;
|
|
18066
|
-
|
|
18067
|
-
|
|
18068
|
-
|
|
18069
|
-
|
|
18070
|
-
|
|
18082
|
+
const emptySlot = slots ? slots.empty : null;
|
|
18083
|
+
const emptyParams = {
|
|
18084
|
+
$table: $xeTable,
|
|
18085
|
+
$grid: $xeGrid
|
|
18086
|
+
};
|
|
18087
|
+
if (emptySlot) {
|
|
18088
|
+
emptyContent = emptySlot.call($xeTable, emptyParams);
|
|
18071
18089
|
} else {
|
|
18072
18090
|
const compConf = emptyOpts.name ? body_renderer.get(emptyOpts.name) : null;
|
|
18073
18091
|
const rtEmptyView = compConf ? compConf.renderTableEmpty || compConf.renderTableEmptyView || compConf.renderEmpty : null;
|
|
18074
18092
|
if (rtEmptyView) {
|
|
18075
|
-
emptyContent = getSlotVNs(rtEmptyView.call(
|
|
18076
|
-
$table: $xeTable
|
|
18077
|
-
}));
|
|
18093
|
+
emptyContent = getSlotVNs(rtEmptyView.call($xeTable, h, emptyOpts, emptyParams));
|
|
18078
18094
|
} else {
|
|
18079
18095
|
emptyContent = tableProps.emptyText || body_getI18n('vxe.table.emptyText');
|
|
18080
18096
|
}
|
|
@@ -19244,11 +19260,20 @@ const {
|
|
|
19244
19260
|
default: () => props_getConfig().table.showFooterOverflow
|
|
19245
19261
|
},
|
|
19246
19262
|
/** 高级属性 */
|
|
19247
|
-
|
|
19263
|
+
/**
|
|
19264
|
+
* (即将废弃)columnKey 已废弃,被 column-config.useKey 替换
|
|
19265
|
+
* @deprecated
|
|
19266
|
+
*/
|
|
19248
19267
|
columnKey: Boolean,
|
|
19249
|
-
|
|
19268
|
+
/**
|
|
19269
|
+
* (即将废弃)rowKey 已废弃,被 row-config.useKey 替换
|
|
19270
|
+
* @deprecated
|
|
19271
|
+
*/
|
|
19250
19272
|
rowKey: Boolean,
|
|
19251
|
-
|
|
19273
|
+
/**
|
|
19274
|
+
* (即将废弃)rowId 已废弃,被 row-config.keyField 替换
|
|
19275
|
+
* @deprecated
|
|
19276
|
+
*/
|
|
19252
19277
|
rowId: {
|
|
19253
19278
|
type: String,
|
|
19254
19279
|
default: () => props_getConfig().table.rowId
|
|
@@ -19285,11 +19310,17 @@ const {
|
|
|
19285
19310
|
rowConfig: Object,
|
|
19286
19311
|
// 数据聚合配置项
|
|
19287
19312
|
aggregateConfig: Object,
|
|
19288
|
-
|
|
19313
|
+
/**
|
|
19314
|
+
* 已废弃,被 aggregateConfig 替换
|
|
19315
|
+
* @deprecated
|
|
19316
|
+
*/
|
|
19289
19317
|
rowGroupConfig: Object,
|
|
19290
19318
|
// 当前行配置项
|
|
19291
19319
|
currentRowConfig: Object,
|
|
19292
|
-
|
|
19320
|
+
/**
|
|
19321
|
+
* 已废弃,被 rowDragConfig 替换
|
|
19322
|
+
* @deprecated
|
|
19323
|
+
*/
|
|
19293
19324
|
dragConfig: Object,
|
|
19294
19325
|
// 行拖拽排序配置项
|
|
19295
19326
|
rowDragConfig: Object,
|
|
@@ -19321,7 +19352,10 @@ const {
|
|
|
19321
19352
|
treeConfig: [Boolean, Object],
|
|
19322
19353
|
// 快捷菜单配置项
|
|
19323
19354
|
menuConfig: [Boolean, Object],
|
|
19324
|
-
|
|
19355
|
+
/**
|
|
19356
|
+
* 在 v4 中废弃 contextMenu
|
|
19357
|
+
* @deprecated
|
|
19358
|
+
*/
|
|
19325
19359
|
contextMenu: [Boolean, Object],
|
|
19326
19360
|
// 鼠标配置项
|
|
19327
19361
|
mouseConfig: Object,
|
|
@@ -19345,9 +19379,15 @@ const {
|
|
|
19345
19379
|
emptyRender: [Boolean, Object],
|
|
19346
19380
|
// 自定义列配置项
|
|
19347
19381
|
customConfig: Object,
|
|
19348
|
-
|
|
19382
|
+
/**
|
|
19383
|
+
* (即将废弃)横向虚拟滚动配置项
|
|
19384
|
+
* @deprecated
|
|
19385
|
+
*/
|
|
19349
19386
|
scrollX: Object,
|
|
19350
|
-
|
|
19387
|
+
/**
|
|
19388
|
+
* (即将废弃)纵向虚拟滚动配置项
|
|
19389
|
+
* @deprecated
|
|
19390
|
+
*/
|
|
19351
19391
|
scrollY: Object,
|
|
19352
19392
|
// 横向虚拟滚动配置项
|
|
19353
19393
|
virtualXConfig: Object,
|
|
@@ -19453,11 +19493,17 @@ const renderSimplePanel = (h, _vm) => {
|
|
|
19453
19493
|
const VxeUIButtonComponent = core_.VxeUI.getComponent('VxeButton');
|
|
19454
19494
|
const props = _vm;
|
|
19455
19495
|
const $xeTable = _vm.$xeTable;
|
|
19496
|
+
const tableProps = $xeTable;
|
|
19456
19497
|
const reactData = $xeTable;
|
|
19457
19498
|
const $xeGrid = $xeTable.$xeGrid;
|
|
19458
19499
|
const {
|
|
19459
19500
|
customStore
|
|
19460
19501
|
} = props;
|
|
19502
|
+
const {
|
|
19503
|
+
treeConfig,
|
|
19504
|
+
rowGroupConfig,
|
|
19505
|
+
aggregateConfig
|
|
19506
|
+
} = tableProps;
|
|
19461
19507
|
const {
|
|
19462
19508
|
isCustomStatus,
|
|
19463
19509
|
customColumnList
|
|
@@ -19621,7 +19667,13 @@ const renderSimplePanel = (h, _vm) => {
|
|
|
19621
19667
|
style: maxHeight && !['left', 'right'].includes(placement || '') ? {
|
|
19622
19668
|
maxHeight: `${maxHeight}px`
|
|
19623
19669
|
} : {}
|
|
19624
|
-
}, customStore.visible ? [h(
|
|
19670
|
+
}, customStore.visible ? [!treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregateSimplePanel ? h($xeTable.getPivotTableAggregateSimplePanel(), {
|
|
19671
|
+
props: {
|
|
19672
|
+
customStore
|
|
19673
|
+
}
|
|
19674
|
+
}) : panel_renderEmptyElement($xeTable), h('div', {
|
|
19675
|
+
class: 'vxe-table-custom--handle-wrapper'
|
|
19676
|
+
}, [h('div', {
|
|
19625
19677
|
class: 'vxe-table-custom--header'
|
|
19626
19678
|
}, headerSlot ? $xeTable.callSlot(headerSlot, params, h) : [h('ul', {
|
|
19627
19679
|
class: 'vxe-table-custom--panel-list'
|
|
@@ -19698,7 +19750,7 @@ const renderSimplePanel = (h, _vm) => {
|
|
|
19698
19750
|
on: {
|
|
19699
19751
|
click: _vm.confirmCustomEvent
|
|
19700
19752
|
}
|
|
19701
|
-
})])]) : null] : []);
|
|
19753
|
+
})])]) : null])] : []);
|
|
19702
19754
|
};
|
|
19703
19755
|
const renderPopupPanel = (h, _vm) => {
|
|
19704
19756
|
const VxeUIModalComponent = core_.VxeUI.getComponent('VxeModal');
|
|
@@ -26868,9 +26920,11 @@ function emitCustomEvent($xeTable, type, evnt) {
|
|
|
26868
26920
|
const $xeTable = this;
|
|
26869
26921
|
const reactData = $xeTable;
|
|
26870
26922
|
const {
|
|
26871
|
-
|
|
26872
|
-
|
|
26873
|
-
|
|
26923
|
+
customColumnList,
|
|
26924
|
+
aggHandleFields,
|
|
26925
|
+
rowGroupList
|
|
26926
|
+
} = reactData;
|
|
26927
|
+
const customOpts = $xeTable.computeCustomOpts;
|
|
26874
26928
|
const {
|
|
26875
26929
|
allowVisible,
|
|
26876
26930
|
allowSort,
|
|
@@ -26907,7 +26961,18 @@ function emitCustomEvent($xeTable, type, evnt) {
|
|
|
26907
26961
|
setTimeout(() => {
|
|
26908
26962
|
reactData.isDragColMove = false;
|
|
26909
26963
|
}, 1000);
|
|
26910
|
-
return $xeTable.saveCustomStore('confirm')
|
|
26964
|
+
return $xeTable.saveCustomStore('confirm').then(() => {
|
|
26965
|
+
if ($xeTable.handlePivotTableAggregateData) {
|
|
26966
|
+
if (rowGroupList.length !== aggHandleFields.length || rowGroupList.some((conf, i) => conf.field !== aggHandleFields[i])) {
|
|
26967
|
+
// 改动聚合分组
|
|
26968
|
+
if (aggHandleFields.length) {
|
|
26969
|
+
$xeTable.setRowGroups(aggHandleFields);
|
|
26970
|
+
} else {
|
|
26971
|
+
$xeTable.clearRowGroups();
|
|
26972
|
+
}
|
|
26973
|
+
}
|
|
26974
|
+
}
|
|
26975
|
+
});
|
|
26911
26976
|
},
|
|
26912
26977
|
_cancelCustom() {
|
|
26913
26978
|
const $xeTable = this;
|
|
@@ -26955,6 +27020,9 @@ function emitCustomEvent($xeTable, type, evnt) {
|
|
|
26955
27020
|
const $xeTable = this;
|
|
26956
27021
|
const reactData = $xeTable;
|
|
26957
27022
|
const internalData = $xeTable;
|
|
27023
|
+
const {
|
|
27024
|
+
rowGroupList
|
|
27025
|
+
} = reactData;
|
|
26958
27026
|
const {
|
|
26959
27027
|
collectColumn
|
|
26960
27028
|
} = internalData;
|
|
@@ -26988,7 +27056,18 @@ function emitCustomEvent($xeTable, type, evnt) {
|
|
|
26988
27056
|
});
|
|
26989
27057
|
reactData.isCustomStatus = false;
|
|
26990
27058
|
$xeTable.saveCustomStore('reset');
|
|
26991
|
-
return $xeTable.handleCustom()
|
|
27059
|
+
return $xeTable.handleCustom().then(() => {
|
|
27060
|
+
if ($xeTable.handlePivotTableAggregateData) {
|
|
27061
|
+
const rowGroupFields = $xeTable.computeRowGroupFields;
|
|
27062
|
+
if (rowGroupFields ? rowGroupFields.length : rowGroupList.length) {
|
|
27063
|
+
if (rowGroupFields && rowGroupFields.length) {
|
|
27064
|
+
$xeTable.setRowGroups(rowGroupFields);
|
|
27065
|
+
} else {
|
|
27066
|
+
$xeTable.clearRowGroups();
|
|
27067
|
+
}
|
|
27068
|
+
}
|
|
27069
|
+
}
|
|
27070
|
+
});
|
|
26992
27071
|
},
|
|
26993
27072
|
_toggleCustomAllCheckbox() {
|
|
26994
27073
|
const {
|
|
@@ -27250,24 +27329,25 @@ function renderFixed(h, $xeTable, fixedType) {
|
|
|
27250
27329
|
ref: `${fixedType}Footer`
|
|
27251
27330
|
}) : table_renderEmptyElement($xeTable)]);
|
|
27252
27331
|
}
|
|
27253
|
-
function renderEmptyBody(h,
|
|
27254
|
-
const
|
|
27255
|
-
|
|
27256
|
-
|
|
27257
|
-
|
|
27332
|
+
function renderEmptyBody(h, $xeTable) {
|
|
27333
|
+
const slots = $xeTable.$scopedSlots;
|
|
27334
|
+
const $xeGrid = $xeTable.$xeGrid;
|
|
27335
|
+
const emptyOpts = $xeTable.computeEmptyOpts;
|
|
27336
|
+
const emptySlot = slots.empty;
|
|
27258
27337
|
let emptyContent = '';
|
|
27259
|
-
const
|
|
27260
|
-
$table:
|
|
27338
|
+
const emptyParams = {
|
|
27339
|
+
$table: $xeTable,
|
|
27340
|
+
$grid: $xeGrid
|
|
27261
27341
|
};
|
|
27262
|
-
if (
|
|
27263
|
-
emptyContent =
|
|
27342
|
+
if (emptySlot) {
|
|
27343
|
+
emptyContent = emptySlot.call($xeTable, emptyParams);
|
|
27264
27344
|
} else {
|
|
27265
27345
|
const compConf = emptyOpts.name ? table_renderer.get(emptyOpts.name) : null;
|
|
27266
27346
|
const rtEmptyView = compConf ? compConf.renderTableEmpty || compConf.renderTableEmptyView || compConf.renderEmpty : null;
|
|
27267
27347
|
if (rtEmptyView) {
|
|
27268
|
-
emptyContent = getSlotVNs(rtEmptyView.call(
|
|
27348
|
+
emptyContent = getSlotVNs(rtEmptyView.call($xeTable, h, emptyOpts, emptyParams));
|
|
27269
27349
|
} else {
|
|
27270
|
-
emptyContent = getFuncText(
|
|
27350
|
+
emptyContent = getFuncText($xeTable.emptyText) || table_getI18n('vxe.table.emptyText');
|
|
27271
27351
|
}
|
|
27272
27352
|
}
|
|
27273
27353
|
return emptyContent;
|
|
@@ -27343,12 +27423,10 @@ const table_renderDragTip = (h, $xeTable) => {
|
|
|
27343
27423
|
}
|
|
27344
27424
|
return table_renderEmptyElement($xeTable);
|
|
27345
27425
|
};
|
|
27346
|
-
function handleUpdateResize(
|
|
27347
|
-
const
|
|
27348
|
-
|
|
27349
|
-
|
|
27350
|
-
if ($el && $el.clientWidth && $el.clientHeight) {
|
|
27351
|
-
_vm.recalculate();
|
|
27426
|
+
function handleUpdateResize($xeTable) {
|
|
27427
|
+
const el = $xeTable.$refs.refElem;
|
|
27428
|
+
if (el && el.clientWidth && el.clientHeight) {
|
|
27429
|
+
$xeTable.recalculate();
|
|
27352
27430
|
}
|
|
27353
27431
|
}
|
|
27354
27432
|
function renderRowExpandedVNs(h, $xeTable) {
|
|
@@ -27800,6 +27878,8 @@ function renderBody(h, $xeTable) {
|
|
|
27800
27878
|
},
|
|
27801
27879
|
visiblwRowsFlag: 1,
|
|
27802
27880
|
isRowGroupStatus: false,
|
|
27881
|
+
rowGroupList: [],
|
|
27882
|
+
aggHandleFields: [],
|
|
27803
27883
|
rowGroupExpandedFlag: 1,
|
|
27804
27884
|
rowExpandedFlag: 1,
|
|
27805
27885
|
treeExpandedFlag: 1,
|
|
@@ -27847,13 +27927,17 @@ function renderBody(h, $xeTable) {
|
|
|
27847
27927
|
return this.computeTableId;
|
|
27848
27928
|
},
|
|
27849
27929
|
computeTableId() {
|
|
27930
|
+
const $xeTable = this;
|
|
27931
|
+
const props = $xeTable;
|
|
27932
|
+
const $xeGrid = $xeTable.$xeGrid;
|
|
27850
27933
|
const {
|
|
27851
27934
|
id
|
|
27852
|
-
} =
|
|
27935
|
+
} = props;
|
|
27853
27936
|
if (id) {
|
|
27854
27937
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(id)) {
|
|
27855
27938
|
return `${id({
|
|
27856
|
-
$table:
|
|
27939
|
+
$table: $xeTable,
|
|
27940
|
+
$grid: $xeGrid
|
|
27857
27941
|
}) || ''}`;
|
|
27858
27942
|
}
|
|
27859
27943
|
return `${id}`;
|
|
@@ -27870,9 +27954,9 @@ function renderBody(h, $xeTable) {
|
|
|
27870
27954
|
return this.computeValidOpts;
|
|
27871
27955
|
},
|
|
27872
27956
|
computeValidOpts() {
|
|
27873
|
-
|
|
27874
|
-
|
|
27875
|
-
}, table_getConfig().table.validConfig,
|
|
27957
|
+
const $xeTable = this;
|
|
27958
|
+
const props = $xeTable;
|
|
27959
|
+
return Object.assign({}, table_getConfig().table.validConfig, props.validConfig);
|
|
27876
27960
|
},
|
|
27877
27961
|
sXOpts() {
|
|
27878
27962
|
return this.computeVirtualXOpts;
|
|
@@ -28288,38 +28372,25 @@ function renderBody(h, $xeTable) {
|
|
|
28288
28372
|
},
|
|
28289
28373
|
computeTableRowExpandedList() {
|
|
28290
28374
|
const $xeTable = this;
|
|
28291
|
-
const props = $xeTable;
|
|
28292
28375
|
const reactData = $xeTable;
|
|
28293
28376
|
const internalData = $xeTable;
|
|
28294
|
-
const {
|
|
28295
|
-
treeConfig
|
|
28296
|
-
} = props;
|
|
28297
28377
|
const {
|
|
28298
28378
|
rowExpandedFlag,
|
|
28299
28379
|
expandColumn,
|
|
28300
28380
|
rowGroupExpandedFlag,
|
|
28301
|
-
treeExpandedFlag
|
|
28302
|
-
isRowGroupStatus
|
|
28381
|
+
treeExpandedFlag
|
|
28303
28382
|
} = reactData;
|
|
28304
28383
|
const {
|
|
28305
28384
|
visibleDataRowIdData,
|
|
28306
28385
|
rowExpandedMaps
|
|
28307
28386
|
} = internalData;
|
|
28308
|
-
const treeOpts = $xeTable.computeTreeOpts;
|
|
28309
|
-
const {
|
|
28310
|
-
transform
|
|
28311
|
-
} = treeOpts;
|
|
28312
28387
|
const expandList = [];
|
|
28313
28388
|
if (expandColumn && rowExpandedFlag && rowGroupExpandedFlag && treeExpandedFlag) {
|
|
28314
|
-
|
|
28315
|
-
|
|
28316
|
-
|
|
28317
|
-
|
|
28318
|
-
|
|
28319
|
-
});
|
|
28320
|
-
} else {
|
|
28321
|
-
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().values(rowExpandedMaps);
|
|
28322
|
-
}
|
|
28389
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(rowExpandedMaps, (row, rowid) => {
|
|
28390
|
+
if (visibleDataRowIdData[rowid]) {
|
|
28391
|
+
expandList.push(row);
|
|
28392
|
+
}
|
|
28393
|
+
});
|
|
28323
28394
|
}
|
|
28324
28395
|
return expandList;
|
|
28325
28396
|
},
|
|
@@ -28431,6 +28502,25 @@ function renderBody(h, $xeTable) {
|
|
|
28431
28502
|
const aggregateOpts = $xeTable.computeAggregateOpts;
|
|
28432
28503
|
return aggregateOpts.groupFields;
|
|
28433
28504
|
},
|
|
28505
|
+
computeRowGroupColumns() {
|
|
28506
|
+
const $xeTable = this;
|
|
28507
|
+
const reactData = $xeTable;
|
|
28508
|
+
const internalData = $xeTable;
|
|
28509
|
+
const {
|
|
28510
|
+
rowGroupList
|
|
28511
|
+
} = reactData;
|
|
28512
|
+
const {
|
|
28513
|
+
fullColumnFieldData
|
|
28514
|
+
} = internalData;
|
|
28515
|
+
const rgColumns = [];
|
|
28516
|
+
rowGroupList.forEach(aggConf => {
|
|
28517
|
+
const colRest = fullColumnFieldData[aggConf.field];
|
|
28518
|
+
if (colRest) {
|
|
28519
|
+
rgColumns.push(colRest.column);
|
|
28520
|
+
}
|
|
28521
|
+
});
|
|
28522
|
+
return rgColumns;
|
|
28523
|
+
},
|
|
28434
28524
|
tabsResizeFlag() {
|
|
28435
28525
|
const $xeTable = this;
|
|
28436
28526
|
const $xeTabs = $xeTable.$xeTabs;
|
|
@@ -28532,11 +28622,12 @@ function renderBody(h, $xeTable) {
|
|
|
28532
28622
|
$xeTable.updateFooter();
|
|
28533
28623
|
},
|
|
28534
28624
|
syncResize(value) {
|
|
28625
|
+
const $xeTable = this;
|
|
28535
28626
|
if (value) {
|
|
28536
|
-
handleUpdateResize(
|
|
28537
|
-
|
|
28538
|
-
handleUpdateResize(
|
|
28539
|
-
setTimeout(() => handleUpdateResize(
|
|
28627
|
+
handleUpdateResize($xeTable);
|
|
28628
|
+
$xeTable.$nextTick(() => {
|
|
28629
|
+
handleUpdateResize($xeTable);
|
|
28630
|
+
setTimeout(() => handleUpdateResize($xeTable));
|
|
28540
28631
|
});
|
|
28541
28632
|
}
|
|
28542
28633
|
},
|
|
@@ -28544,12 +28635,14 @@ function renderBody(h, $xeTable) {
|
|
|
28544
28635
|
this.handleGlobalResizeEvent();
|
|
28545
28636
|
},
|
|
28546
28637
|
mergeCells(value) {
|
|
28547
|
-
this
|
|
28548
|
-
|
|
28638
|
+
const $xeTable = this;
|
|
28639
|
+
$xeTable.clearMergeCells();
|
|
28640
|
+
$xeTable.$nextTick(() => $xeTable.setMergeCells(value));
|
|
28549
28641
|
},
|
|
28550
28642
|
mergeFooterItems(value) {
|
|
28551
|
-
this
|
|
28552
|
-
|
|
28643
|
+
const $xeTable = this;
|
|
28644
|
+
$xeTable.clearMergeFooterItems();
|
|
28645
|
+
$xeTable.$nextTick(() => $xeTable.setMergeFooterItems(value));
|
|
28553
28646
|
},
|
|
28554
28647
|
computeRowGroupFields(val) {
|
|
28555
28648
|
const $xeTable = this;
|
|
@@ -29164,7 +29257,7 @@ function renderBody(h, $xeTable) {
|
|
|
29164
29257
|
class: 'vxe-table--empty-placeholder'
|
|
29165
29258
|
}, [h('div', {
|
|
29166
29259
|
class: 'vxe-table--empty-content'
|
|
29167
|
-
}, renderEmptyBody(h,
|
|
29260
|
+
}, renderEmptyBody(h, $xeTable))]),
|
|
29168
29261
|
/**
|
|
29169
29262
|
* 边框线
|
|
29170
29263
|
*/
|
|
@@ -30168,15 +30261,16 @@ function renderDefaultForm(h, $xeGrid) {
|
|
|
30168
30261
|
const VxeUIFormComponent = core_.VxeUI.getComponent('VxeForm');
|
|
30169
30262
|
const props = $xeGrid;
|
|
30170
30263
|
const slots = $xeGrid.$scopedSlots;
|
|
30264
|
+
const reactData = $xeGrid;
|
|
30171
30265
|
const {
|
|
30172
30266
|
proxyConfig,
|
|
30173
30267
|
formConfig
|
|
30174
30268
|
} = props;
|
|
30175
30269
|
const {
|
|
30176
|
-
|
|
30177
|
-
|
|
30178
|
-
|
|
30179
|
-
|
|
30270
|
+
formData
|
|
30271
|
+
} = reactData;
|
|
30272
|
+
const proxyOpts = $xeGrid.computeProxyOpts;
|
|
30273
|
+
const formOpts = $xeGrid.computeFormOpts;
|
|
30180
30274
|
if (isEnableConf(formConfig) && formOpts.items && formOpts.items.length) {
|
|
30181
30275
|
const formSlots = {};
|
|
30182
30276
|
if (!formOpts.inited) {
|
|
@@ -30250,32 +30344,44 @@ const getConfigSlot = ($xeGrid, slotConfigs) => {
|
|
|
30250
30344
|
});
|
|
30251
30345
|
return slotConf;
|
|
30252
30346
|
};
|
|
30253
|
-
function getToolbarSlots(
|
|
30254
|
-
const
|
|
30255
|
-
|
|
30256
|
-
toolbarOpts
|
|
30257
|
-
} = _vm;
|
|
30347
|
+
function getToolbarSlots($xeGrid) {
|
|
30348
|
+
const slots = $xeGrid.$scopedSlots;
|
|
30349
|
+
const toolbarOpts = $xeGrid.computeToolbarOpts;
|
|
30258
30350
|
const toolbarOptSlots = toolbarOpts.slots;
|
|
30259
|
-
|
|
30260
|
-
|
|
30261
|
-
const slots = {};
|
|
30262
|
-
if ($scopedSlots.buttons && (!toolbarOptSlots || toolbarOptSlots.buttons !== 'buttons')) {
|
|
30351
|
+
const toolbarSlots = {};
|
|
30352
|
+
if (slots.buttons && (!toolbarOptSlots || toolbarOptSlots.buttons !== 'buttons')) {
|
|
30263
30353
|
warnLog('vxe.error.reqProp', ['toolbar-config.slots.buttons']);
|
|
30264
30354
|
}
|
|
30265
|
-
if (
|
|
30355
|
+
if (slots.tools && (!toolbarOptSlots || toolbarOptSlots.tools !== 'tools')) {
|
|
30266
30356
|
warnLog('vxe.error.reqProp', ['toolbar-config.slots.tools']);
|
|
30267
30357
|
}
|
|
30268
30358
|
if (toolbarOptSlots) {
|
|
30269
|
-
buttonsSlot = getFuncSlot(
|
|
30270
|
-
|
|
30359
|
+
const buttonsSlot = getFuncSlot($xeGrid, toolbarOptSlots, 'buttons');
|
|
30360
|
+
const buttonPrefixSlot = getFuncSlot($xeGrid, toolbarOptSlots, 'buttonPrefix');
|
|
30361
|
+
const buttonSuffixSlot = getFuncSlot($xeGrid, toolbarOptSlots, 'buttonSuffix');
|
|
30362
|
+
const toolsSlot = getFuncSlot($xeGrid, toolbarOptSlots, 'tools');
|
|
30363
|
+
const toolPrefixSlot = getFuncSlot($xeGrid, toolbarOptSlots, 'toolPrefix');
|
|
30364
|
+
const toolSuffixSlot = getFuncSlot($xeGrid, toolbarOptSlots, 'toolSuffix');
|
|
30271
30365
|
if (buttonsSlot) {
|
|
30272
|
-
|
|
30366
|
+
toolbarSlots.buttons = buttonsSlot;
|
|
30367
|
+
}
|
|
30368
|
+
if (buttonPrefixSlot) {
|
|
30369
|
+
toolbarSlots.buttonPrefix = buttonPrefixSlot;
|
|
30370
|
+
}
|
|
30371
|
+
if (buttonSuffixSlot) {
|
|
30372
|
+
toolbarSlots.buttonSuffix = buttonSuffixSlot;
|
|
30273
30373
|
}
|
|
30274
30374
|
if (toolsSlot) {
|
|
30275
|
-
|
|
30375
|
+
toolbarSlots.tools = toolsSlot;
|
|
30376
|
+
}
|
|
30377
|
+
if (toolPrefixSlot) {
|
|
30378
|
+
toolbarSlots.toolPrefix = toolPrefixSlot;
|
|
30379
|
+
}
|
|
30380
|
+
if (toolSuffixSlot) {
|
|
30381
|
+
toolbarSlots.toolSuffix = toolSuffixSlot;
|
|
30276
30382
|
}
|
|
30277
30383
|
}
|
|
30278
|
-
return
|
|
30384
|
+
return toolbarSlots;
|
|
30279
30385
|
}
|
|
30280
30386
|
function getTableOns(_vm) {
|
|
30281
30387
|
const {
|
|
@@ -30326,135 +30432,121 @@ function pageChangeEvent($xeGrid, params) {
|
|
|
30326
30432
|
/**
|
|
30327
30433
|
* 渲染表单
|
|
30328
30434
|
*/
|
|
30329
|
-
function renderForm(h,
|
|
30435
|
+
function renderForm(h, $xeGrid) {
|
|
30436
|
+
const slots = $xeGrid.$scopedSlots;
|
|
30437
|
+
const props = $xeGrid;
|
|
30330
30438
|
const {
|
|
30331
|
-
_e,
|
|
30332
|
-
$scopedSlots,
|
|
30333
30439
|
formConfig
|
|
30334
|
-
} =
|
|
30335
|
-
const formSlot =
|
|
30440
|
+
} = props;
|
|
30441
|
+
const formSlot = slots.form;
|
|
30336
30442
|
const hasForm = !!(formSlot || isEnableConf(formConfig));
|
|
30337
30443
|
if (hasForm) {
|
|
30338
30444
|
return h('div', {
|
|
30339
30445
|
key: 'form',
|
|
30340
30446
|
ref: 'refFormWrapper',
|
|
30341
30447
|
class: 'vxe-grid--form-wrapper'
|
|
30342
|
-
}, formSlot ? formSlot.call(
|
|
30343
|
-
$grid:
|
|
30344
|
-
}
|
|
30448
|
+
}, formSlot ? formSlot.call($xeGrid, {
|
|
30449
|
+
$grid: $xeGrid
|
|
30450
|
+
}) : renderDefaultForm(h, $xeGrid));
|
|
30345
30451
|
}
|
|
30346
|
-
return
|
|
30452
|
+
return grid_renderEmptyElement($xeGrid);
|
|
30347
30453
|
}
|
|
30348
30454
|
/**
|
|
30349
30455
|
* 渲染工具栏
|
|
30350
30456
|
*/
|
|
30351
|
-
function renderToolbar(h,
|
|
30457
|
+
function renderToolbar(h, $xeGrid) {
|
|
30458
|
+
const slots = $xeGrid.$scopedSlots;
|
|
30459
|
+
const props = $xeGrid;
|
|
30352
30460
|
const {
|
|
30353
|
-
|
|
30354
|
-
|
|
30355
|
-
|
|
30356
|
-
toolbar
|
|
30357
|
-
} = _vm;
|
|
30358
|
-
const toolbarSlot = $scopedSlots.toolbar;
|
|
30461
|
+
toolbarConfig
|
|
30462
|
+
} = props;
|
|
30463
|
+
const toolbarSlot = slots.toolbar;
|
|
30359
30464
|
const hasToolbar = !!(toolbarSlot || isEnableConf(toolbarConfig) || toolbar);
|
|
30465
|
+
const toolbarOpts = $xeGrid.computeToolbarOpts;
|
|
30360
30466
|
if (hasToolbar) {
|
|
30361
30467
|
return h('div', {
|
|
30362
30468
|
key: 'toolbar',
|
|
30363
30469
|
ref: 'refToolbarWrapper',
|
|
30364
30470
|
class: 'vxe-grid--toolbar-wrapper'
|
|
30365
|
-
}, toolbarSlot ? toolbarSlot.call(
|
|
30366
|
-
$grid:
|
|
30367
|
-
}
|
|
30368
|
-
props: Object.assign({},
|
|
30471
|
+
}, toolbarSlot ? toolbarSlot.call($xeGrid, {
|
|
30472
|
+
$grid: $xeGrid
|
|
30473
|
+
}) : [h(src_toolbar, {
|
|
30474
|
+
props: Object.assign({}, toolbarOpts, {
|
|
30369
30475
|
slots: undefined
|
|
30370
30476
|
}),
|
|
30371
30477
|
ref: 'xToolbar',
|
|
30372
|
-
scopedSlots: getToolbarSlots(
|
|
30478
|
+
scopedSlots: getToolbarSlots($xeGrid)
|
|
30373
30479
|
})]);
|
|
30374
30480
|
}
|
|
30375
|
-
return
|
|
30481
|
+
return grid_renderEmptyElement($xeGrid);
|
|
30376
30482
|
}
|
|
30377
30483
|
/**
|
|
30378
30484
|
* 渲染表格顶部区域
|
|
30379
30485
|
*/
|
|
30380
|
-
function renderTop(h,
|
|
30381
|
-
const
|
|
30382
|
-
|
|
30383
|
-
$scopedSlots
|
|
30384
|
-
} = _vm;
|
|
30385
|
-
const topSlot = $scopedSlots.top;
|
|
30486
|
+
function renderTop(h, $xeGrid) {
|
|
30487
|
+
const slots = $xeGrid.$scopedSlots;
|
|
30488
|
+
const topSlot = slots.top;
|
|
30386
30489
|
return topSlot ? h('div', {
|
|
30387
30490
|
key: 'top',
|
|
30388
30491
|
ref: 'refTopWrapper',
|
|
30389
30492
|
class: 'vxe-grid--top-wrapper'
|
|
30390
|
-
}, topSlot.call(
|
|
30391
|
-
$grid:
|
|
30392
|
-
}
|
|
30493
|
+
}, topSlot.call($xeGrid, {
|
|
30494
|
+
$grid: $xeGrid
|
|
30495
|
+
})) : grid_renderEmptyElement($xeGrid);
|
|
30393
30496
|
}
|
|
30394
|
-
function renderTableLeft(h,
|
|
30395
|
-
const
|
|
30396
|
-
|
|
30397
|
-
$scopedSlots
|
|
30398
|
-
} = _vm;
|
|
30399
|
-
const leftSlot = $scopedSlots.left;
|
|
30497
|
+
function renderTableLeft(h, $xeGrid) {
|
|
30498
|
+
const slots = $xeGrid.$scopedSlots;
|
|
30499
|
+
const leftSlot = slots.left;
|
|
30400
30500
|
if (leftSlot) {
|
|
30401
30501
|
return h('div', {
|
|
30402
30502
|
class: 'vxe-grid--left-wrapper'
|
|
30403
30503
|
}, leftSlot({
|
|
30404
|
-
$grid:
|
|
30504
|
+
$grid: $xeGrid
|
|
30405
30505
|
}));
|
|
30406
30506
|
}
|
|
30407
|
-
return
|
|
30507
|
+
return grid_renderEmptyElement($xeGrid);
|
|
30408
30508
|
}
|
|
30409
|
-
function renderTableRight(h,
|
|
30410
|
-
const
|
|
30411
|
-
|
|
30412
|
-
$scopedSlots
|
|
30413
|
-
} = _vm;
|
|
30414
|
-
const rightSlot = $scopedSlots.right;
|
|
30509
|
+
function renderTableRight(h, $xeGrid) {
|
|
30510
|
+
const slots = $xeGrid.$scopedSlots;
|
|
30511
|
+
const rightSlot = slots.right;
|
|
30415
30512
|
if (rightSlot) {
|
|
30416
30513
|
return h('div', {
|
|
30417
30514
|
class: 'vxe-grid--right-wrapper'
|
|
30418
30515
|
}, rightSlot({
|
|
30419
|
-
$grid:
|
|
30516
|
+
$grid: $xeGrid
|
|
30420
30517
|
}));
|
|
30421
30518
|
}
|
|
30422
|
-
return
|
|
30519
|
+
return grid_renderEmptyElement($xeGrid);
|
|
30423
30520
|
}
|
|
30424
30521
|
/**
|
|
30425
30522
|
* 渲染表格
|
|
30426
30523
|
*/
|
|
30427
|
-
function renderTable(h,
|
|
30428
|
-
const
|
|
30429
|
-
|
|
30430
|
-
tableProps
|
|
30431
|
-
} = _vm;
|
|
30524
|
+
function renderTable(h, $xeGrid) {
|
|
30525
|
+
const slots = $xeGrid.$scopedSlots;
|
|
30526
|
+
const tableProps = $xeGrid.computeTableProps;
|
|
30432
30527
|
return h('div', {
|
|
30433
30528
|
class: 'vxe-grid--table-wrapper'
|
|
30434
30529
|
}, [h('vxe-table', {
|
|
30435
30530
|
key: 'table',
|
|
30436
30531
|
props: tableProps,
|
|
30437
|
-
on: getTableOns(
|
|
30438
|
-
scopedSlots:
|
|
30532
|
+
on: getTableOns($xeGrid),
|
|
30533
|
+
scopedSlots: slots,
|
|
30439
30534
|
ref: 'xTable'
|
|
30440
30535
|
})]);
|
|
30441
30536
|
}
|
|
30442
30537
|
/**
|
|
30443
30538
|
* 渲染表格底部区域
|
|
30444
30539
|
*/
|
|
30445
|
-
function renderBottom(h,
|
|
30446
|
-
const
|
|
30447
|
-
|
|
30448
|
-
$scopedSlots
|
|
30449
|
-
} = _vm;
|
|
30450
|
-
const bottomSlot = $scopedSlots.bottom;
|
|
30540
|
+
function renderBottom(h, $xeGrid) {
|
|
30541
|
+
const slots = $xeGrid.$scopedSlots;
|
|
30542
|
+
const bottomSlot = slots.bottom;
|
|
30451
30543
|
return bottomSlot ? h('div', {
|
|
30452
30544
|
key: 'bottom',
|
|
30453
30545
|
ref: 'refBottomWrapper',
|
|
30454
30546
|
class: 'vxe-grid--bottom-wrapper'
|
|
30455
|
-
}, bottomSlot.call(
|
|
30456
|
-
$grid:
|
|
30457
|
-
}
|
|
30547
|
+
}, bottomSlot.call($xeGrid, {
|
|
30548
|
+
$grid: $xeGrid
|
|
30549
|
+
})) : grid_renderEmptyElement($xeGrid);
|
|
30458
30550
|
}
|
|
30459
30551
|
/**
|
|
30460
30552
|
* 渲染分页
|
|
@@ -33149,7 +33241,7 @@ if (core_.VxeUI.dynamicApp) {
|
|
|
33149
33241
|
}
|
|
33150
33242
|
core_.VxeUI.component(src_toolbar);
|
|
33151
33243
|
const Toolbar = VxeToolbar;
|
|
33152
|
-
/* harmony default export */ var
|
|
33244
|
+
/* harmony default export */ var packages_toolbar = ((/* unused pure expression or super */ null && (VxeToolbar)));
|
|
33153
33245
|
;// CONCATENATED MODULE: ./packages/locale/lang/zh-CN.ts
|
|
33154
33246
|
/* harmony default export */ var zh_CN = ({
|
|
33155
33247
|
vxe: {
|
|
@@ -33711,6 +33803,12 @@ const Toolbar = VxeToolbar;
|
|
|
33711
33803
|
replaceSuccess: '成功替换 {0} 个单元格'
|
|
33712
33804
|
}
|
|
33713
33805
|
},
|
|
33806
|
+
extendPivotTable: {
|
|
33807
|
+
aggregation: {
|
|
33808
|
+
grouping: '分组',
|
|
33809
|
+
values: '值'
|
|
33810
|
+
}
|
|
33811
|
+
},
|
|
33714
33812
|
filterComplexInput: {
|
|
33715
33813
|
menus: {
|
|
33716
33814
|
fixedColumn: '冻结列',
|