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.
Files changed (186) hide show
  1. package/es/grid/src/grid.js +73 -49
  2. package/es/{iconfont.1749800510225.ttf → iconfont.1750153781820.ttf} +0 -0
  3. package/es/iconfont.1750153781820.woff +0 -0
  4. package/es/iconfont.1750153781820.woff2 +0 -0
  5. package/es/index.css +1 -1
  6. package/es/index.min.css +1 -1
  7. package/es/locale/lang/ar-EG.js +6 -0
  8. package/es/locale/lang/de-DE.js +6 -0
  9. package/es/locale/lang/en-US.js +6 -0
  10. package/es/locale/lang/es-ES.js +6 -0
  11. package/es/locale/lang/fr-FR.js +6 -0
  12. package/es/locale/lang/hu-HU.js +6 -0
  13. package/es/locale/lang/hy-AM.js +6 -0
  14. package/es/locale/lang/id-ID.js +6 -0
  15. package/es/locale/lang/it-IT.js +6 -0
  16. package/es/locale/lang/ja-JP.js +6 -0
  17. package/es/locale/lang/ko-KR.js +6 -0
  18. package/es/locale/lang/ms-MY.js +6 -0
  19. package/es/locale/lang/nb-NO.js +6 -0
  20. package/es/locale/lang/pt-BR.js +6 -0
  21. package/es/locale/lang/ru-RU.js +6 -0
  22. package/es/locale/lang/th-TH.js +6 -0
  23. package/es/locale/lang/ug-CN.js +6 -0
  24. package/es/locale/lang/uk-UA.js +6 -0
  25. package/es/locale/lang/uz-UZ.js +6 -0
  26. package/es/locale/lang/vi-VN.js +6 -0
  27. package/es/locale/lang/zh-CHT.js +6 -0
  28. package/es/locale/lang/zh-CN.js +6 -0
  29. package/es/style.css +1 -1
  30. package/es/style.min.css +1 -1
  31. package/es/table/module/custom/mixin.js +29 -3
  32. package/es/table/module/custom/panel.js +118 -105
  33. package/es/table/src/body.js +8 -5
  34. package/es/table/src/cell.js +12 -12
  35. package/es/table/src/methods.js +34 -26
  36. package/es/table/src/props.js +32 -8
  37. package/es/table/src/table.js +57 -38
  38. package/es/table/style.css +22 -3
  39. package/es/table/style.min.css +1 -1
  40. package/es/toolbar/src/toolbar.js +163 -63
  41. package/es/ui/index.js +12 -1
  42. package/es/ui/src/log.js +1 -1
  43. package/es/vxe-table/style.css +22 -3
  44. package/es/vxe-table/style.min.css +1 -1
  45. package/lib/grid/src/grid.js +81 -82
  46. package/lib/grid/src/grid.min.js +1 -1
  47. package/lib/{iconfont.1749800510225.ttf → iconfont.1750153781820.ttf} +0 -0
  48. package/lib/iconfont.1750153781820.woff +0 -0
  49. package/lib/iconfont.1750153781820.woff2 +0 -0
  50. package/lib/index.css +1 -1
  51. package/lib/index.min.css +1 -1
  52. package/lib/index.umd.js +495 -288
  53. package/lib/index.umd.min.js +1 -1
  54. package/lib/locale/lang/ar-EG.js +6 -0
  55. package/lib/locale/lang/ar-EG.min.js +1 -1
  56. package/lib/locale/lang/ar-EG.umd.js +6 -0
  57. package/lib/locale/lang/de-DE.js +6 -0
  58. package/lib/locale/lang/de-DE.min.js +1 -1
  59. package/lib/locale/lang/de-DE.umd.js +6 -0
  60. package/lib/locale/lang/en-US.js +6 -0
  61. package/lib/locale/lang/en-US.min.js +1 -1
  62. package/lib/locale/lang/en-US.umd.js +6 -0
  63. package/lib/locale/lang/es-ES.js +6 -0
  64. package/lib/locale/lang/es-ES.min.js +1 -1
  65. package/lib/locale/lang/es-ES.umd.js +6 -0
  66. package/lib/locale/lang/fr-FR.js +6 -0
  67. package/lib/locale/lang/fr-FR.min.js +1 -1
  68. package/lib/locale/lang/fr-FR.umd.js +6 -0
  69. package/lib/locale/lang/hu-HU.js +6 -0
  70. package/lib/locale/lang/hu-HU.min.js +1 -1
  71. package/lib/locale/lang/hu-HU.umd.js +6 -0
  72. package/lib/locale/lang/hy-AM.js +6 -0
  73. package/lib/locale/lang/hy-AM.min.js +1 -1
  74. package/lib/locale/lang/hy-AM.umd.js +6 -0
  75. package/lib/locale/lang/id-ID.js +6 -0
  76. package/lib/locale/lang/id-ID.min.js +1 -1
  77. package/lib/locale/lang/id-ID.umd.js +6 -0
  78. package/lib/locale/lang/it-IT.js +6 -0
  79. package/lib/locale/lang/it-IT.min.js +1 -1
  80. package/lib/locale/lang/it-IT.umd.js +6 -0
  81. package/lib/locale/lang/ja-JP.js +6 -0
  82. package/lib/locale/lang/ja-JP.min.js +1 -1
  83. package/lib/locale/lang/ja-JP.umd.js +6 -0
  84. package/lib/locale/lang/ko-KR.js +6 -0
  85. package/lib/locale/lang/ko-KR.min.js +1 -1
  86. package/lib/locale/lang/ko-KR.umd.js +6 -0
  87. package/lib/locale/lang/ms-MY.js +6 -0
  88. package/lib/locale/lang/ms-MY.min.js +1 -1
  89. package/lib/locale/lang/ms-MY.umd.js +6 -0
  90. package/lib/locale/lang/nb-NO.js +6 -0
  91. package/lib/locale/lang/nb-NO.min.js +1 -1
  92. package/lib/locale/lang/nb-NO.umd.js +6 -0
  93. package/lib/locale/lang/pt-BR.js +6 -0
  94. package/lib/locale/lang/pt-BR.min.js +1 -1
  95. package/lib/locale/lang/pt-BR.umd.js +6 -0
  96. package/lib/locale/lang/ru-RU.js +6 -0
  97. package/lib/locale/lang/ru-RU.min.js +1 -1
  98. package/lib/locale/lang/ru-RU.umd.js +6 -0
  99. package/lib/locale/lang/th-TH.js +6 -0
  100. package/lib/locale/lang/th-TH.min.js +1 -1
  101. package/lib/locale/lang/th-TH.umd.js +6 -0
  102. package/lib/locale/lang/ug-CN.js +6 -0
  103. package/lib/locale/lang/ug-CN.min.js +1 -1
  104. package/lib/locale/lang/ug-CN.umd.js +6 -0
  105. package/lib/locale/lang/uk-UA.js +6 -0
  106. package/lib/locale/lang/uk-UA.min.js +1 -1
  107. package/lib/locale/lang/uk-UA.umd.js +6 -0
  108. package/lib/locale/lang/uz-UZ.js +6 -0
  109. package/lib/locale/lang/uz-UZ.min.js +1 -1
  110. package/lib/locale/lang/uz-UZ.umd.js +6 -0
  111. package/lib/locale/lang/vi-VN.js +6 -0
  112. package/lib/locale/lang/vi-VN.min.js +1 -1
  113. package/lib/locale/lang/vi-VN.umd.js +6 -0
  114. package/lib/locale/lang/zh-CHT.js +6 -0
  115. package/lib/locale/lang/zh-CHT.min.js +1 -1
  116. package/lib/locale/lang/zh-CHT.umd.js +6 -0
  117. package/lib/locale/lang/zh-CN.js +6 -0
  118. package/lib/locale/lang/zh-CN.min.js +1 -1
  119. package/lib/locale/lang/zh-CN.umd.js +6 -0
  120. package/lib/style.css +1 -1
  121. package/lib/style.min.css +1 -1
  122. package/lib/table/module/custom/mixin.js +32 -5
  123. package/lib/table/module/custom/mixin.min.js +1 -1
  124. package/lib/table/module/custom/panel.js +14 -2
  125. package/lib/table/module/custom/panel.min.js +1 -1
  126. package/lib/table/src/body.js +11 -11
  127. package/lib/table/src/body.min.js +1 -1
  128. package/lib/table/src/cell.js +14 -14
  129. package/lib/table/src/cell.min.js +1 -1
  130. package/lib/table/src/methods.js +38 -25
  131. package/lib/table/src/methods.min.js +1 -1
  132. package/lib/table/src/props.js +32 -8
  133. package/lib/table/src/table.js +64 -50
  134. package/lib/table/src/table.min.js +1 -1
  135. package/lib/table/style/style.css +22 -3
  136. package/lib/table/style/style.min.css +1 -1
  137. package/lib/toolbar/src/toolbar.js +189 -88
  138. package/lib/toolbar/src/toolbar.min.js +1 -1
  139. package/lib/ui/index.js +12 -1
  140. package/lib/ui/index.min.js +1 -1
  141. package/lib/ui/src/log.js +1 -1
  142. package/lib/ui/src/log.min.js +1 -1
  143. package/lib/vxe-table/style/style.css +22 -3
  144. package/lib/vxe-table/style/style.min.css +1 -1
  145. package/package.json +1 -1
  146. package/packages/grid/src/grid.ts +93 -54
  147. package/packages/locale/lang/ar-EG.ts +6 -0
  148. package/packages/locale/lang/de-DE.ts +6 -0
  149. package/packages/locale/lang/en-US.ts +6 -0
  150. package/packages/locale/lang/es-ES.ts +6 -0
  151. package/packages/locale/lang/fr-FR.ts +6 -0
  152. package/packages/locale/lang/hu-HU.ts +6 -0
  153. package/packages/locale/lang/hy-AM.ts +6 -0
  154. package/packages/locale/lang/id-ID.ts +6 -0
  155. package/packages/locale/lang/it-IT.ts +6 -0
  156. package/packages/locale/lang/ja-JP.ts +6 -0
  157. package/packages/locale/lang/ko-KR.ts +6 -0
  158. package/packages/locale/lang/ms-MY.ts +6 -0
  159. package/packages/locale/lang/nb-NO.ts +6 -0
  160. package/packages/locale/lang/pt-BR.ts +6 -0
  161. package/packages/locale/lang/ru-RU.ts +6 -0
  162. package/packages/locale/lang/th-TH.ts +6 -0
  163. package/packages/locale/lang/ug-CN.ts +6 -0
  164. package/packages/locale/lang/uk-UA.ts +6 -0
  165. package/packages/locale/lang/uz-UZ.ts +6 -0
  166. package/packages/locale/lang/vi-VN.ts +6 -0
  167. package/packages/locale/lang/zh-CHT.ts +6 -0
  168. package/packages/locale/lang/zh-CN.ts +6 -0
  169. package/packages/table/module/custom/mixin.ts +27 -3
  170. package/packages/table/module/custom/panel.ts +119 -106
  171. package/packages/table/src/body.ts +13 -10
  172. package/packages/table/src/cell.ts +12 -12
  173. package/packages/table/src/methods.ts +35 -26
  174. package/packages/table/src/props.ts +32 -8
  175. package/packages/table/src/table.ts +76 -49
  176. package/packages/toolbar/src/toolbar.ts +167 -62
  177. package/packages/ui/index.ts +11 -0
  178. package/styles/components/icon.scss +13 -1
  179. package/styles/components/table-module/custom.scss +9 -2
  180. package/styles/icon/iconfont.ttf +0 -0
  181. package/styles/icon/iconfont.woff +0 -0
  182. package/styles/icon/iconfont.woff2 +0 -0
  183. package/es/iconfont.1749800510225.woff +0 -0
  184. package/es/iconfont.1749800510225.woff2 +0 -0
  185. package/lib/iconfont.1749800510225.woff +0 -0
  186. package/lib/iconfont.1749800510225.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.39";
2005
+ const version = "3.15.41";
2006
2006
  core_.VxeUI.version = version;
2007
2007
  core_.VxeUI.tableVersion = version;
2008
2008
  core_.VxeUI.setConfig({
@@ -2097,6 +2097,14 @@ core_.VxeUI.setConfig({
2097
2097
  showFooter: true,
2098
2098
  placement: 'top-right',
2099
2099
  // storage: false,
2100
+ storeOptions: {
2101
+ visible: true,
2102
+ resizable: true,
2103
+ sort: true,
2104
+ fixed: true
2105
+ // rowGroup: false,
2106
+ // aggFunc: false
2107
+ },
2100
2108
  // checkMethod () {},
2101
2109
  modalOptions: {
2102
2110
  showMaximize: true,
@@ -2302,6 +2310,9 @@ core_.VxeUI.setIcon({
2302
2310
  TABLE_DRAG_DISABLED: iconPrefix + 'no-drop',
2303
2311
  TABLE_ROW_GROUP_OPEN: iconPrefix + 'arrow-right rotate90',
2304
2312
  TABLE_ROW_GROUP_CLOSE: iconPrefix + 'arrow-right',
2313
+ TABLE_AGGREGATION_GROUPING: iconPrefix + 'grouping',
2314
+ TABLE_AGGREGATION_VALUES: iconPrefix + 'values',
2315
+ TABLE_AGGREGATION_DELETE: iconPrefix + 'close',
2305
2316
  // toolbar
2306
2317
  TOOLBAR_TOOLS_REFRESH: iconPrefix + 'repeat',
2307
2318
  TOOLBAR_TOOLS_REFRESH_LOADING: iconPrefix + 'repeat roll',
@@ -2647,7 +2658,7 @@ function isNodeElement(elem) {
2647
2658
  const {
2648
2659
  log: log_log
2649
2660
  } = core_.VxeUI;
2650
- const log_version = `table v${"3.15.39"}`;
2661
+ const log_version = `table v${"3.15.41"}`;
2651
2662
  const warnLog = log_log.create('warn', log_version);
2652
2663
  const errLog = log_log.create('error', log_version);
2653
2664
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -3899,20 +3910,6 @@ const Cell = {
3899
3910
  aggFunc
3900
3911
  } = column;
3901
3912
  const renderOpts = editRender || cellRender;
3902
- if (slots && slots.default) {
3903
- return renderCellBaseVNs(h, params, $table.callSlot(slots.default, params, h));
3904
- }
3905
- if (renderOpts) {
3906
- const compConf = cell_renderer.get(renderOpts.name);
3907
- const rtDefault = compConf ? compConf.renderTableDefault || compConf.renderDefault : null;
3908
- const rtCell = compConf ? compConf.renderTableCell || compConf.renderCell : null;
3909
- const renderFn = editRender ? rtCell : rtDefault;
3910
- if (renderFn) {
3911
- return renderCellBaseVNs(h, params, getSlotVNs(renderFn.call($table, h, renderOpts, Object.assign({
3912
- $type: editRender ? 'edit' : 'cell'
3913
- }, params))));
3914
- }
3915
- }
3916
3913
  let cellValue = '';
3917
3914
  if (isRowGroupStatus && field && row.isAggregate) {
3918
3915
  const aggRow = row;
@@ -3966,6 +3963,20 @@ const Cell = {
3966
3963
  }
3967
3964
  }
3968
3965
  } else {
3966
+ if (slots && slots.default) {
3967
+ return renderCellBaseVNs(h, params, $table.callSlot(slots.default, params, h));
3968
+ }
3969
+ if (renderOpts) {
3970
+ const compConf = cell_renderer.get(renderOpts.name);
3971
+ const rtDefault = compConf ? compConf.renderTableDefault || compConf.renderDefault : null;
3972
+ const rtCell = compConf ? compConf.renderTableCell || compConf.renderCell : null;
3973
+ const renderFn = editRender ? rtCell : rtDefault;
3974
+ if (renderFn) {
3975
+ return renderCellBaseVNs(h, params, getSlotVNs(renderFn.call($table, h, renderOpts, Object.assign({
3976
+ $type: editRender ? 'edit' : 'cell'
3977
+ }, params))));
3978
+ }
3979
+ }
3969
3980
  cellValue = $table.getCellLabel(row, column);
3970
3981
  }
3971
3982
  const cellPlaceholder = editRender ? editRender.placeholder : '';
@@ -5159,6 +5170,9 @@ function eqCellValue(row1, row2, field) {
5159
5170
  }
5160
5171
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(val1, val2);
5161
5172
  }
5173
+ function hangleStorageDefaultValue(value, isAll) {
5174
+ return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(value) ? value : isAll;
5175
+ }
5162
5176
  function getNextSortOrder($xeTable, column) {
5163
5177
  const sortOpts = $xeTable.computeSortOpts;
5164
5178
  const {
@@ -5323,14 +5337,15 @@ function restoreCustomStorage($xeTable) {
5323
5337
  const customOpts = $xeTable.computeCustomOpts;
5324
5338
  const {
5325
5339
  storage,
5326
- restoreStore
5340
+ restoreStore,
5341
+ storeOptions
5327
5342
  } = customOpts;
5328
5343
  const isAllCustom = storage === true;
5329
- const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {});
5330
- const isCustomResizable = isAllCustom || storageOpts.resizable;
5331
- const isCustomVisible = isAllCustom || storageOpts.visible;
5332
- const isCustomFixed = isAllCustom || storageOpts.fixed;
5333
- const isCustomSort = isAllCustom || storageOpts.sort;
5344
+ const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {}, storeOptions);
5345
+ const isCustomResizable = hangleStorageDefaultValue(storageOpts.resizable, isAllCustom);
5346
+ const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom);
5347
+ const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom);
5348
+ const isCustomSort = hangleStorageDefaultValue(storageOpts.sort, isAllCustom);
5334
5349
  if ((customConfig ? isEnableConf(customOpts) : customOpts.enabled) && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
5335
5350
  if (!tableId) {
5336
5351
  errLog('vxe.error.reqProp', ['id']);
@@ -8258,11 +8273,18 @@ function handleRecalculateLayout($xeTable, reFull) {
8258
8273
  }
8259
8274
  const handleUpdateRowGroup = ($xeTable, groupFields) => {
8260
8275
  const reactData = $xeTable;
8261
- reactData.rowGroupList = groupFields ? (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(groupFields) ? groupFields : [groupFields]).map(field => {
8262
- return {
8263
- field
8264
- };
8265
- }) : [];
8276
+ const aggFields = [];
8277
+ const aggConfs = [];
8278
+ if (groupFields) {
8279
+ (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(groupFields) ? groupFields : [groupFields]).forEach(field => {
8280
+ aggFields.push(field);
8281
+ aggConfs.push({
8282
+ field
8283
+ });
8284
+ });
8285
+ }
8286
+ reactData.rowGroupList = aggConfs;
8287
+ reactData.aggHandleFields = aggFields;
8266
8288
  };
8267
8289
  function handleeGroupSummary($xeTable, aggList) {
8268
8290
  const aggregateOpts = $xeTable.computeAggregateOpts;
@@ -8484,9 +8506,9 @@ function loadTableData($xeTable, datas, isReset) {
8484
8506
  internalData.cvCacheMaps = {};
8485
8507
  reactData.isRowLoading = true;
8486
8508
  reactData.scrollVMLoading = false;
8487
- internalData.treeExpandedMaps = {};
8509
+ // internalData.treeExpandedMaps = {}
8488
8510
  reactData.treeExpandedFlag++;
8489
- internalData.rowExpandedMaps = {};
8511
+ // internalData.rowExpandedMaps = {}
8490
8512
  reactData.rowExpandedFlag++;
8491
8513
  internalData.insertRowMaps = {};
8492
8514
  reactData.insertRowFlag++;
@@ -10884,14 +10906,15 @@ const Methods = {
10884
10906
  const customOpts = $xeTable.computeCustomOpts;
10885
10907
  const {
10886
10908
  storage,
10887
- restoreStore
10909
+ restoreStore,
10910
+ storeOptions
10888
10911
  } = customOpts;
10889
10912
  const isAllCustom = storage === true;
10890
- const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {});
10891
- const isCustomResizable = isAllCustom || storageOpts.resizable;
10892
- const isCustomVisible = isAllCustom || storageOpts.visible;
10893
- const isCustomFixed = isAllCustom || storageOpts.fixed;
10894
- const isCustomSort = isAllCustom || storageOpts.sort;
10913
+ const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {}, storeOptions);
10914
+ const isCustomResizable = hangleStorageDefaultValue(storageOpts.resizable, isAllCustom);
10915
+ const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom);
10916
+ const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom);
10917
+ const isCustomSort = hangleStorageDefaultValue(storageOpts.sort, isAllCustom);
10895
10918
  if ((customConfig ? isEnableConf(customOpts) : customOpts.enabled) && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
10896
10919
  if (!tableId) {
10897
10920
  errLog('vxe.error.reqProp', ['id']);
@@ -10928,14 +10951,15 @@ const Methods = {
10928
10951
  } = internalData;
10929
10952
  const {
10930
10953
  storage,
10931
- checkMethod
10954
+ checkMethod,
10955
+ storeOptions
10932
10956
  } = customOpts;
10933
10957
  const isAllCustom = storage === true;
10934
- const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {});
10935
- const isCustomResizable = isAllCustom || storageOpts.resizable;
10936
- const isCustomVisible = isAllCustom || storageOpts.visible;
10937
- const isCustomFixed = isAllCustom || storageOpts.fixed;
10938
- const isCustomSort = isAllCustom || storageOpts.sort;
10958
+ const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {}, storeOptions);
10959
+ const isCustomResizable = hangleStorageDefaultValue(storageOpts.resizable, isAllCustom);
10960
+ const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom);
10961
+ const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom);
10962
+ const isCustomSort = hangleStorageDefaultValue(storageOpts.sort, isAllCustom);
10939
10963
  const resizableData = {};
10940
10964
  const sortData = {};
10941
10965
  const visibleData = {};
@@ -17841,7 +17865,7 @@ function renderRows(h, _vm, fixedType, isOptimizeMode, tableData, tableColumn) {
17841
17865
  } = expandColumn || {};
17842
17866
  const colid = expandColumn.id;
17843
17867
  const colRest = fullColumnIdData[colid] || {};
17844
- const hasEllipsis = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(showOverflow) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNull(showOverflow) ? isAllOverflow : showOverflow;
17868
+ const hasEllipsis = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(showOverflow) ? isAllOverflow : showOverflow;
17845
17869
  let columnIndex = -1;
17846
17870
  let $columnIndex = -1;
17847
17871
  let _columnIndex = -1;
@@ -17959,9 +17983,9 @@ function renderRows(h, _vm, fixedType, isOptimizeMode, tableData, tableColumn) {
17959
17983
  const tableReactData = $xeTable;
17960
17984
  const tableInternalData = $xeTable;
17961
17985
  const $xeGrid = $xeTable.$xeGrid;
17986
+ const slots = $xeTable.$scopedSlots;
17962
17987
  const {
17963
- xID,
17964
- $scopedSlots
17988
+ xID
17965
17989
  } = $xeTable;
17966
17990
  const {
17967
17991
  fixedColumn,
@@ -18063,18 +18087,18 @@ function renderRows(h, _vm, fixedType, isOptimizeMode, tableData, tableColumn) {
18063
18087
  }
18064
18088
  }
18065
18089
  let emptyContent;
18066
- if ($scopedSlots.empty) {
18067
- emptyContent = $scopedSlots.empty.call(this, {
18068
- $table: $xeTable,
18069
- $grid: $xeGrid
18070
- });
18090
+ const emptySlot = slots ? slots.empty : null;
18091
+ const emptyParams = {
18092
+ $table: $xeTable,
18093
+ $grid: $xeGrid
18094
+ };
18095
+ if (emptySlot) {
18096
+ emptyContent = emptySlot.call($xeTable, emptyParams);
18071
18097
  } else {
18072
18098
  const compConf = emptyOpts.name ? body_renderer.get(emptyOpts.name) : null;
18073
18099
  const rtEmptyView = compConf ? compConf.renderTableEmpty || compConf.renderTableEmptyView || compConf.renderEmpty : null;
18074
18100
  if (rtEmptyView) {
18075
- emptyContent = getSlotVNs(rtEmptyView.call(this, h, emptyOpts, {
18076
- $table: $xeTable
18077
- }));
18101
+ emptyContent = getSlotVNs(rtEmptyView.call($xeTable, h, emptyOpts, emptyParams));
18078
18102
  } else {
18079
18103
  emptyContent = tableProps.emptyText || body_getI18n('vxe.table.emptyText');
18080
18104
  }
@@ -19244,11 +19268,20 @@ const {
19244
19268
  default: () => props_getConfig().table.showFooterOverflow
19245
19269
  },
19246
19270
  /** 高级属性 */
19247
- // (即将废弃)columnKey 已废弃,被 column-config.useKey 替换
19271
+ /**
19272
+ * (即将废弃)columnKey 已废弃,被 column-config.useKey 替换
19273
+ * @deprecated
19274
+ */
19248
19275
  columnKey: Boolean,
19249
- // (即将废弃)rowKey 已废弃,被 row-config.useKey 替换
19276
+ /**
19277
+ * (即将废弃)rowKey 已废弃,被 row-config.useKey 替换
19278
+ * @deprecated
19279
+ */
19250
19280
  rowKey: Boolean,
19251
- // (即将废弃)rowId 已废弃,被 row-config.keyField 替换
19281
+ /**
19282
+ * (即将废弃)rowId 已废弃,被 row-config.keyField 替换
19283
+ * @deprecated
19284
+ */
19252
19285
  rowId: {
19253
19286
  type: String,
19254
19287
  default: () => props_getConfig().table.rowId
@@ -19285,11 +19318,17 @@ const {
19285
19318
  rowConfig: Object,
19286
19319
  // 数据聚合配置项
19287
19320
  aggregateConfig: Object,
19288
- // 已废弃,被 aggregateConfig 替换
19321
+ /**
19322
+ * 已废弃,被 aggregateConfig 替换
19323
+ * @deprecated
19324
+ */
19289
19325
  rowGroupConfig: Object,
19290
19326
  // 当前行配置项
19291
19327
  currentRowConfig: Object,
19292
- // 已废弃,被 rowDragConfig 替换
19328
+ /**
19329
+ * 已废弃,被 rowDragConfig 替换
19330
+ * @deprecated
19331
+ */
19293
19332
  dragConfig: Object,
19294
19333
  // 行拖拽排序配置项
19295
19334
  rowDragConfig: Object,
@@ -19321,7 +19360,10 @@ const {
19321
19360
  treeConfig: [Boolean, Object],
19322
19361
  // 快捷菜单配置项
19323
19362
  menuConfig: [Boolean, Object],
19324
- // 在 v4 中废弃 contextMenu
19363
+ /**
19364
+ * 在 v4 中废弃 contextMenu
19365
+ * @deprecated
19366
+ */
19325
19367
  contextMenu: [Boolean, Object],
19326
19368
  // 鼠标配置项
19327
19369
  mouseConfig: Object,
@@ -19345,9 +19387,15 @@ const {
19345
19387
  emptyRender: [Boolean, Object],
19346
19388
  // 自定义列配置项
19347
19389
  customConfig: Object,
19348
- // (即将废弃)横向虚拟滚动配置项
19390
+ /**
19391
+ * (即将废弃)横向虚拟滚动配置项
19392
+ * @deprecated
19393
+ */
19349
19394
  scrollX: Object,
19350
- // (即将废弃)纵向虚拟滚动配置项
19395
+ /**
19396
+ * (即将废弃)纵向虚拟滚动配置项
19397
+ * @deprecated
19398
+ */
19351
19399
  scrollY: Object,
19352
19400
  // 横向虚拟滚动配置项
19353
19401
  virtualXConfig: Object,
@@ -19453,11 +19501,17 @@ const renderSimplePanel = (h, _vm) => {
19453
19501
  const VxeUIButtonComponent = core_.VxeUI.getComponent('VxeButton');
19454
19502
  const props = _vm;
19455
19503
  const $xeTable = _vm.$xeTable;
19504
+ const tableProps = $xeTable;
19456
19505
  const reactData = $xeTable;
19457
19506
  const $xeGrid = $xeTable.$xeGrid;
19458
19507
  const {
19459
19508
  customStore
19460
19509
  } = props;
19510
+ const {
19511
+ treeConfig,
19512
+ rowGroupConfig,
19513
+ aggregateConfig
19514
+ } = tableProps;
19461
19515
  const {
19462
19516
  isCustomStatus,
19463
19517
  customColumnList
@@ -19621,7 +19675,13 @@ const renderSimplePanel = (h, _vm) => {
19621
19675
  style: maxHeight && !['left', 'right'].includes(placement || '') ? {
19622
19676
  maxHeight: `${maxHeight}px`
19623
19677
  } : {}
19624
- }, customStore.visible ? [h('div', {
19678
+ }, customStore.visible ? [!treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregateSimplePanel ? h($xeTable.getPivotTableAggregateSimplePanel(), {
19679
+ props: {
19680
+ customStore
19681
+ }
19682
+ }) : panel_renderEmptyElement($xeTable), h('div', {
19683
+ class: 'vxe-table-custom--handle-wrapper'
19684
+ }, [h('div', {
19625
19685
  class: 'vxe-table-custom--header'
19626
19686
  }, headerSlot ? $xeTable.callSlot(headerSlot, params, h) : [h('ul', {
19627
19687
  class: 'vxe-table-custom--panel-list'
@@ -19698,7 +19758,7 @@ const renderSimplePanel = (h, _vm) => {
19698
19758
  on: {
19699
19759
  click: _vm.confirmCustomEvent
19700
19760
  }
19701
- })])]) : null] : []);
19761
+ })])]) : null])] : []);
19702
19762
  };
19703
19763
  const renderPopupPanel = (h, _vm) => {
19704
19764
  const VxeUIModalComponent = core_.VxeUI.getComponent('VxeModal');
@@ -26868,9 +26928,11 @@ function emitCustomEvent($xeTable, type, evnt) {
26868
26928
  const $xeTable = this;
26869
26929
  const reactData = $xeTable;
26870
26930
  const {
26871
- customOpts,
26872
- customColumnList
26873
- } = this;
26931
+ customColumnList,
26932
+ aggHandleFields,
26933
+ rowGroupList
26934
+ } = reactData;
26935
+ const customOpts = $xeTable.computeCustomOpts;
26874
26936
  const {
26875
26937
  allowVisible,
26876
26938
  allowSort,
@@ -26907,7 +26969,18 @@ function emitCustomEvent($xeTable, type, evnt) {
26907
26969
  setTimeout(() => {
26908
26970
  reactData.isDragColMove = false;
26909
26971
  }, 1000);
26910
- return $xeTable.saveCustomStore('confirm');
26972
+ return $xeTable.saveCustomStore('confirm').then(() => {
26973
+ if ($xeTable.handlePivotTableAggregateData) {
26974
+ if (rowGroupList.length !== aggHandleFields.length || rowGroupList.some((conf, i) => conf.field !== aggHandleFields[i])) {
26975
+ // 改动聚合分组
26976
+ if (aggHandleFields.length) {
26977
+ $xeTable.setRowGroups(aggHandleFields);
26978
+ } else {
26979
+ $xeTable.clearRowGroups();
26980
+ }
26981
+ }
26982
+ }
26983
+ });
26911
26984
  },
26912
26985
  _cancelCustom() {
26913
26986
  const $xeTable = this;
@@ -26955,6 +27028,9 @@ function emitCustomEvent($xeTable, type, evnt) {
26955
27028
  const $xeTable = this;
26956
27029
  const reactData = $xeTable;
26957
27030
  const internalData = $xeTable;
27031
+ const {
27032
+ rowGroupList
27033
+ } = reactData;
26958
27034
  const {
26959
27035
  collectColumn
26960
27036
  } = internalData;
@@ -26988,7 +27064,18 @@ function emitCustomEvent($xeTable, type, evnt) {
26988
27064
  });
26989
27065
  reactData.isCustomStatus = false;
26990
27066
  $xeTable.saveCustomStore('reset');
26991
- return $xeTable.handleCustom();
27067
+ return $xeTable.handleCustom().then(() => {
27068
+ if ($xeTable.handlePivotTableAggregateData) {
27069
+ const rowGroupFields = $xeTable.computeRowGroupFields;
27070
+ if (rowGroupFields ? rowGroupFields.length : rowGroupList.length) {
27071
+ if (rowGroupFields && rowGroupFields.length) {
27072
+ $xeTable.setRowGroups(rowGroupFields);
27073
+ } else {
27074
+ $xeTable.clearRowGroups();
27075
+ }
27076
+ }
27077
+ }
27078
+ });
26992
27079
  },
26993
27080
  _toggleCustomAllCheckbox() {
26994
27081
  const {
@@ -27250,24 +27337,25 @@ function renderFixed(h, $xeTable, fixedType) {
27250
27337
  ref: `${fixedType}Footer`
27251
27338
  }) : table_renderEmptyElement($xeTable)]);
27252
27339
  }
27253
- function renderEmptyBody(h, _vm) {
27254
- const {
27255
- $scopedSlots,
27256
- emptyOpts
27257
- } = _vm;
27340
+ function renderEmptyBody(h, $xeTable) {
27341
+ const slots = $xeTable.$scopedSlots;
27342
+ const $xeGrid = $xeTable.$xeGrid;
27343
+ const emptyOpts = $xeTable.computeEmptyOpts;
27344
+ const emptySlot = slots.empty;
27258
27345
  let emptyContent = '';
27259
- const params = {
27260
- $table: _vm
27346
+ const emptyParams = {
27347
+ $table: $xeTable,
27348
+ $grid: $xeGrid
27261
27349
  };
27262
- if ($scopedSlots.empty) {
27263
- emptyContent = $scopedSlots.empty.call(_vm, params, h);
27350
+ if (emptySlot) {
27351
+ emptyContent = emptySlot.call($xeTable, emptyParams);
27264
27352
  } else {
27265
27353
  const compConf = emptyOpts.name ? table_renderer.get(emptyOpts.name) : null;
27266
27354
  const rtEmptyView = compConf ? compConf.renderTableEmpty || compConf.renderTableEmptyView || compConf.renderEmpty : null;
27267
27355
  if (rtEmptyView) {
27268
- emptyContent = getSlotVNs(rtEmptyView.call(_vm, h, emptyOpts, params));
27356
+ emptyContent = getSlotVNs(rtEmptyView.call($xeTable, h, emptyOpts, emptyParams));
27269
27357
  } else {
27270
- emptyContent = getFuncText(_vm.emptyText) || table_getI18n('vxe.table.emptyText');
27358
+ emptyContent = getFuncText($xeTable.emptyText) || table_getI18n('vxe.table.emptyText');
27271
27359
  }
27272
27360
  }
27273
27361
  return emptyContent;
@@ -27343,12 +27431,10 @@ const table_renderDragTip = (h, $xeTable) => {
27343
27431
  }
27344
27432
  return table_renderEmptyElement($xeTable);
27345
27433
  };
27346
- function handleUpdateResize(_vm) {
27347
- const {
27348
- $el
27349
- } = _vm;
27350
- if ($el && $el.clientWidth && $el.clientHeight) {
27351
- _vm.recalculate();
27434
+ function handleUpdateResize($xeTable) {
27435
+ const el = $xeTable.$refs.refElem;
27436
+ if (el && el.clientWidth && el.clientHeight) {
27437
+ $xeTable.recalculate();
27352
27438
  }
27353
27439
  }
27354
27440
  function renderRowExpandedVNs(h, $xeTable) {
@@ -27800,6 +27886,8 @@ function renderBody(h, $xeTable) {
27800
27886
  },
27801
27887
  visiblwRowsFlag: 1,
27802
27888
  isRowGroupStatus: false,
27889
+ rowGroupList: [],
27890
+ aggHandleFields: [],
27803
27891
  rowGroupExpandedFlag: 1,
27804
27892
  rowExpandedFlag: 1,
27805
27893
  treeExpandedFlag: 1,
@@ -27847,13 +27935,17 @@ function renderBody(h, $xeTable) {
27847
27935
  return this.computeTableId;
27848
27936
  },
27849
27937
  computeTableId() {
27938
+ const $xeTable = this;
27939
+ const props = $xeTable;
27940
+ const $xeGrid = $xeTable.$xeGrid;
27850
27941
  const {
27851
27942
  id
27852
- } = this;
27943
+ } = props;
27853
27944
  if (id) {
27854
27945
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(id)) {
27855
27946
  return `${id({
27856
- $table: this
27947
+ $table: $xeTable,
27948
+ $grid: $xeGrid
27857
27949
  }) || ''}`;
27858
27950
  }
27859
27951
  return `${id}`;
@@ -27870,9 +27962,9 @@ function renderBody(h, $xeTable) {
27870
27962
  return this.computeValidOpts;
27871
27963
  },
27872
27964
  computeValidOpts() {
27873
- return Object.assign({
27874
- message: 'default'
27875
- }, table_getConfig().table.validConfig, this.validConfig);
27965
+ const $xeTable = this;
27966
+ const props = $xeTable;
27967
+ return Object.assign({}, table_getConfig().table.validConfig, props.validConfig);
27876
27968
  },
27877
27969
  sXOpts() {
27878
27970
  return this.computeVirtualXOpts;
@@ -28288,38 +28380,25 @@ function renderBody(h, $xeTable) {
28288
28380
  },
28289
28381
  computeTableRowExpandedList() {
28290
28382
  const $xeTable = this;
28291
- const props = $xeTable;
28292
28383
  const reactData = $xeTable;
28293
28384
  const internalData = $xeTable;
28294
- const {
28295
- treeConfig
28296
- } = props;
28297
28385
  const {
28298
28386
  rowExpandedFlag,
28299
28387
  expandColumn,
28300
28388
  rowGroupExpandedFlag,
28301
- treeExpandedFlag,
28302
- isRowGroupStatus
28389
+ treeExpandedFlag
28303
28390
  } = reactData;
28304
28391
  const {
28305
28392
  visibleDataRowIdData,
28306
28393
  rowExpandedMaps
28307
28394
  } = internalData;
28308
- const treeOpts = $xeTable.computeTreeOpts;
28309
- const {
28310
- transform
28311
- } = treeOpts;
28312
28395
  const expandList = [];
28313
28396
  if (expandColumn && rowExpandedFlag && rowGroupExpandedFlag && treeExpandedFlag) {
28314
- if (isRowGroupStatus || treeConfig && transform) {
28315
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(rowExpandedMaps, (row, rowid) => {
28316
- if (visibleDataRowIdData[rowid]) {
28317
- expandList.push(row);
28318
- }
28319
- });
28320
- } else {
28321
- return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().values(rowExpandedMaps);
28322
- }
28397
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(rowExpandedMaps, (row, rowid) => {
28398
+ if (visibleDataRowIdData[rowid]) {
28399
+ expandList.push(row);
28400
+ }
28401
+ });
28323
28402
  }
28324
28403
  return expandList;
28325
28404
  },
@@ -28431,6 +28510,25 @@ function renderBody(h, $xeTable) {
28431
28510
  const aggregateOpts = $xeTable.computeAggregateOpts;
28432
28511
  return aggregateOpts.groupFields;
28433
28512
  },
28513
+ computeRowGroupColumns() {
28514
+ const $xeTable = this;
28515
+ const reactData = $xeTable;
28516
+ const internalData = $xeTable;
28517
+ const {
28518
+ rowGroupList
28519
+ } = reactData;
28520
+ const {
28521
+ fullColumnFieldData
28522
+ } = internalData;
28523
+ const rgColumns = [];
28524
+ rowGroupList.forEach(aggConf => {
28525
+ const colRest = fullColumnFieldData[aggConf.field];
28526
+ if (colRest) {
28527
+ rgColumns.push(colRest.column);
28528
+ }
28529
+ });
28530
+ return rgColumns;
28531
+ },
28434
28532
  tabsResizeFlag() {
28435
28533
  const $xeTable = this;
28436
28534
  const $xeTabs = $xeTable.$xeTabs;
@@ -28532,11 +28630,12 @@ function renderBody(h, $xeTable) {
28532
28630
  $xeTable.updateFooter();
28533
28631
  },
28534
28632
  syncResize(value) {
28633
+ const $xeTable = this;
28535
28634
  if (value) {
28536
- handleUpdateResize(this);
28537
- this.$nextTick(() => {
28538
- handleUpdateResize(this);
28539
- setTimeout(() => handleUpdateResize(this));
28635
+ handleUpdateResize($xeTable);
28636
+ $xeTable.$nextTick(() => {
28637
+ handleUpdateResize($xeTable);
28638
+ setTimeout(() => handleUpdateResize($xeTable));
28540
28639
  });
28541
28640
  }
28542
28641
  },
@@ -28544,12 +28643,14 @@ function renderBody(h, $xeTable) {
28544
28643
  this.handleGlobalResizeEvent();
28545
28644
  },
28546
28645
  mergeCells(value) {
28547
- this.clearMergeCells();
28548
- this.$nextTick(() => this.setMergeCells(value));
28646
+ const $xeTable = this;
28647
+ $xeTable.clearMergeCells();
28648
+ $xeTable.$nextTick(() => $xeTable.setMergeCells(value));
28549
28649
  },
28550
28650
  mergeFooterItems(value) {
28551
- this.clearMergeFooterItems();
28552
- this.$nextTick(() => this.setMergeFooterItems(value));
28651
+ const $xeTable = this;
28652
+ $xeTable.clearMergeFooterItems();
28653
+ $xeTable.$nextTick(() => $xeTable.setMergeFooterItems(value));
28553
28654
  },
28554
28655
  computeRowGroupFields(val) {
28555
28656
  const $xeTable = this;
@@ -29164,7 +29265,7 @@ function renderBody(h, $xeTable) {
29164
29265
  class: 'vxe-table--empty-placeholder'
29165
29266
  }, [h('div', {
29166
29267
  class: 'vxe-table--empty-content'
29167
- }, renderEmptyBody(h, this))]),
29268
+ }, renderEmptyBody(h, $xeTable))]),
29168
29269
  /**
29169
29270
  * 边框线
29170
29271
  */
@@ -29342,11 +29443,17 @@ const {
29342
29443
  props: {
29343
29444
  loading: Boolean,
29344
29445
  refresh: [Boolean, Object],
29446
+ refreshOptions: Object,
29345
29447
  import: [Boolean, Object],
29448
+ importOptions: Object,
29346
29449
  export: [Boolean, Object],
29450
+ exportOptions: Object,
29347
29451
  print: [Boolean, Object],
29452
+ printOptions: Object,
29348
29453
  zoom: [Boolean, Object],
29454
+ zoomOptions: Object,
29349
29455
  custom: [Boolean, Object],
29456
+ customOptions: Object,
29350
29457
  buttons: {
29351
29458
  type: Array,
29352
29459
  default: () => toolbar_getConfig().toolbar.buttons
@@ -29391,32 +29498,32 @@ const {
29391
29498
  computeRefreshOpts() {
29392
29499
  const $xeToolbar = this;
29393
29500
  const props = $xeToolbar;
29394
- return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.refresh, true), props.refresh);
29501
+ return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.refresh, true), props.refreshOptions, props.refresh);
29395
29502
  },
29396
29503
  computeImportOpts() {
29397
29504
  const $xeToolbar = this;
29398
29505
  const props = $xeToolbar;
29399
- return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.import, true), props.import);
29506
+ return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.import, true), props.importOptions, props.import);
29400
29507
  },
29401
29508
  computeExportOpts() {
29402
29509
  const $xeToolbar = this;
29403
29510
  const props = $xeToolbar;
29404
- return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.export, true), props.export);
29511
+ return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.export, true), props.exportOptions, props.export);
29405
29512
  },
29406
29513
  computePrintOpts() {
29407
29514
  const $xeToolbar = this;
29408
29515
  const props = $xeToolbar;
29409
- return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.print, true), props.print);
29516
+ return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.print, true), props.printOptions, props.print);
29410
29517
  },
29411
29518
  computeZoomOpts() {
29412
29519
  const $xeToolbar = this;
29413
29520
  const props = $xeToolbar;
29414
- return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.zoom, true), props.zoom);
29521
+ return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.zoom, true), props.zoomOptions, props.zoom);
29415
29522
  },
29416
29523
  computeCustomOpts() {
29417
29524
  const $xeToolbar = this;
29418
29525
  const props = $xeToolbar;
29419
- return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.custom, true), props.custom);
29526
+ return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.custom, true), props.customOptions, props.custom);
29420
29527
  },
29421
29528
  computeTableCustomOpts() {
29422
29529
  const $xeToolbar = this;
@@ -29565,80 +29672,37 @@ const {
29565
29672
  const $xeGrid = $xeToolbar.$xeGrid;
29566
29673
  if ($xeGrid) {
29567
29674
  $xeGrid.triggerZoomEvent($event);
29675
+ } else {
29676
+ warnLog('vxe.error.notProp', ['zoom']);
29568
29677
  }
29569
29678
  },
29570
- btnEvent(evnt, item) {
29679
+ importEvent() {
29571
29680
  const $xeToolbar = this;
29572
29681
  const internalData = $xeToolbar.internalData;
29573
- const $xeGrid = $xeToolbar.$xeGrid;
29574
- const {
29575
- connectTable
29576
- } = internalData;
29577
- const $table = connectTable;
29578
- const {
29579
- code
29580
- } = item;
29581
- if (code) {
29582
- if ($xeGrid) {
29583
- $xeGrid.triggerToolbarBtnEvent(item, evnt);
29584
- } else {
29585
- const gCommandOpts = toolbar_commands.get(code);
29586
- const params = {
29587
- code,
29588
- button: item,
29589
- $table: $table,
29590
- $grid: $xeGrid,
29591
- $event: evnt
29592
- };
29593
- if (gCommandOpts) {
29594
- const tCommandMethod = gCommandOpts.tableCommandMethod || gCommandOpts.commandMethod;
29595
- if (tCommandMethod) {
29596
- tCommandMethod(params);
29597
- } else {
29598
- errLog('vxe.error.notCommands', [code]);
29599
- }
29600
- }
29601
- $xeToolbar.dispatchEvent('button-click', params, evnt);
29682
+ if ($xeToolbar.checkTable()) {
29683
+ const {
29684
+ connectTable
29685
+ } = internalData;
29686
+ const $table = connectTable;
29687
+ if ($table) {
29688
+ $table.importData();
29602
29689
  }
29603
29690
  }
29604
29691
  },
29605
- tolEvent(evnt, item) {
29692
+ openImportEvent() {
29606
29693
  const $xeToolbar = this;
29607
29694
  const internalData = $xeToolbar.internalData;
29608
- const $xeGrid = $xeToolbar.$xeGrid;
29609
- const {
29610
- connectTable
29611
- } = internalData;
29612
- const $table = connectTable;
29613
- const {
29614
- code
29615
- } = item;
29616
- if (code) {
29617
- if ($xeGrid) {
29618
- $xeGrid.triggerToolbarTolEvent(item, evnt);
29619
- } else {
29620
- const gCommandOpts = toolbar_commands.get(code);
29621
- const params = {
29622
- code,
29623
- button: null,
29624
- tool: item,
29625
- $table: $table,
29626
- $grid: $xeGrid,
29627
- $event: evnt
29628
- };
29629
- if (gCommandOpts) {
29630
- const tCommandMethod = gCommandOpts.tableCommandMethod || gCommandOpts.commandMethod;
29631
- if (tCommandMethod) {
29632
- tCommandMethod(params);
29633
- } else {
29634
- errLog('vxe.error.notCommands', [code]);
29635
- }
29636
- }
29637
- $xeToolbar.dispatchEvent('tool-click', params, evnt);
29695
+ if ($xeToolbar.checkTable()) {
29696
+ const {
29697
+ connectTable
29698
+ } = internalData;
29699
+ const $table = connectTable;
29700
+ if ($table) {
29701
+ $table.openImport();
29638
29702
  }
29639
29703
  }
29640
29704
  },
29641
- importEvent() {
29705
+ exportEvent() {
29642
29706
  const $xeToolbar = this;
29643
29707
  const internalData = $xeToolbar.internalData;
29644
29708
  if ($xeToolbar.checkTable()) {
@@ -29647,11 +29711,11 @@ const {
29647
29711
  } = internalData;
29648
29712
  const $table = connectTable;
29649
29713
  if ($table) {
29650
- $table.openImport();
29714
+ $table.exportData();
29651
29715
  }
29652
29716
  }
29653
29717
  },
29654
- exportEvent() {
29718
+ openExportEvent() {
29655
29719
  const $xeToolbar = this;
29656
29720
  const internalData = $xeToolbar.internalData;
29657
29721
  if ($xeToolbar.checkTable()) {
@@ -29665,6 +29729,19 @@ const {
29665
29729
  }
29666
29730
  },
29667
29731
  printEvent() {
29732
+ const $xeToolbar = this;
29733
+ const internalData = $xeToolbar.internalData;
29734
+ if ($xeToolbar.checkTable()) {
29735
+ const {
29736
+ connectTable
29737
+ } = internalData;
29738
+ const $table = connectTable;
29739
+ if ($table) {
29740
+ $table.print();
29741
+ }
29742
+ }
29743
+ },
29744
+ openPrintEvent() {
29668
29745
  const $xeToolbar = this;
29669
29746
  const internalData = $xeToolbar.internalData;
29670
29747
  if ($xeToolbar.checkTable()) {
@@ -29677,6 +29754,122 @@ const {
29677
29754
  }
29678
29755
  }
29679
29756
  },
29757
+ handleDefaultCodeEvent(eventParams, item, cb) {
29758
+ const $xeToolbar = this;
29759
+ switch (item.code) {
29760
+ case 'print':
29761
+ $xeToolbar.printEvent();
29762
+ break;
29763
+ case 'open_print':
29764
+ $xeToolbar.openPrintEvent();
29765
+ break;
29766
+ case 'custom':
29767
+ $xeToolbar.handleClickSettingEvent(eventParams);
29768
+ break;
29769
+ case 'export':
29770
+ $xeToolbar.exportEvent();
29771
+ break;
29772
+ case 'open_export':
29773
+ $xeToolbar.openExportEvent();
29774
+ break;
29775
+ case 'import':
29776
+ $xeToolbar.importEvent();
29777
+ break;
29778
+ case 'open_import':
29779
+ $xeToolbar.openImportEvent();
29780
+ break;
29781
+ case 'zoom':
29782
+ $xeToolbar.zoomEvent(eventParams);
29783
+ break;
29784
+ case 'refresh':
29785
+ $xeToolbar.refreshEvent(eventParams);
29786
+ break;
29787
+ default:
29788
+ cb();
29789
+ break;
29790
+ }
29791
+ },
29792
+ btnEvent(eventParams, item) {
29793
+ const $xeToolbar = this;
29794
+ const internalData = $xeToolbar.internalData;
29795
+ const $xeGrid = $xeToolbar.$xeGrid;
29796
+ const {
29797
+ $event
29798
+ } = eventParams;
29799
+ const {
29800
+ connectTable
29801
+ } = internalData;
29802
+ const $table = connectTable;
29803
+ const {
29804
+ code
29805
+ } = item;
29806
+ if (code) {
29807
+ $xeToolbar.handleDefaultCodeEvent(eventParams, item, () => {
29808
+ if ($xeGrid) {
29809
+ $xeGrid.triggerToolbarBtnEvent(item, $event);
29810
+ } else {
29811
+ const gCommandOpts = toolbar_commands.get(code);
29812
+ const params = {
29813
+ code,
29814
+ button: item,
29815
+ $table: $table,
29816
+ $grid: $xeGrid,
29817
+ $event
29818
+ };
29819
+ if (gCommandOpts) {
29820
+ const tCommandMethod = gCommandOpts.tableCommandMethod || gCommandOpts.commandMethod;
29821
+ if (tCommandMethod) {
29822
+ tCommandMethod(params);
29823
+ } else {
29824
+ errLog('vxe.error.notCommands', [code]);
29825
+ }
29826
+ }
29827
+ $xeToolbar.dispatchEvent('button-click', params, $event);
29828
+ }
29829
+ });
29830
+ }
29831
+ },
29832
+ tolEvent(eventParams, item) {
29833
+ const $xeToolbar = this;
29834
+ const internalData = $xeToolbar.internalData;
29835
+ const $xeGrid = $xeToolbar.$xeGrid;
29836
+ const {
29837
+ $event
29838
+ } = eventParams;
29839
+ const {
29840
+ connectTable
29841
+ } = internalData;
29842
+ const $table = connectTable;
29843
+ const {
29844
+ code
29845
+ } = item;
29846
+ if (code) {
29847
+ $xeToolbar.handleDefaultCodeEvent(eventParams, item, () => {
29848
+ if ($xeGrid) {
29849
+ $xeGrid.triggerToolbarTolEvent(item, $event);
29850
+ } else {
29851
+ const gCommandOpts = toolbar_commands.get(code);
29852
+ const params = {
29853
+ code,
29854
+ button: null,
29855
+ tool: item,
29856
+ $table: $table,
29857
+ $grid: $xeGrid,
29858
+ $event
29859
+ };
29860
+ if (gCommandOpts) {
29861
+ const tCommandMethod = gCommandOpts.tableCommandMethod || gCommandOpts.commandMethod;
29862
+ if (tCommandMethod) {
29863
+ tCommandMethod(params);
29864
+ } else {
29865
+ errLog('vxe.error.notCommands', [code]);
29866
+ }
29867
+ }
29868
+ $xeToolbar.dispatchEvent('tool-click', params, $event);
29869
+ }
29870
+ });
29871
+ }
29872
+ },
29680
29873
  //
29681
29874
  // Render
29682
29875
  //
@@ -29712,9 +29905,7 @@ const {
29712
29905
  suffixTooltip: child.suffixTooltip
29713
29906
  },
29714
29907
  on: {
29715
- click: ({
29716
- $event
29717
- }) => isBtn ? $xeToolbar.btnEvent($event, child) : $xeToolbar.tolEvent($event, child)
29908
+ click: eventParams => isBtn ? $xeToolbar.btnEvent(eventParams, child) : $xeToolbar.tolEvent(eventParams, child)
29718
29909
  }
29719
29910
  }) : toolbar_renderEmptyElement($xeToolbar);
29720
29911
  });
@@ -29790,12 +29981,10 @@ const {
29790
29981
  transfer: item.transfer
29791
29982
  },
29792
29983
  on: {
29793
- click: ({
29794
- $event
29795
- }) => this.btnEvent($event, item)
29984
+ click: eventParams => $xeToolbar.btnEvent(eventParams, item)
29796
29985
  },
29797
29986
  scopedSlots: dropdowns && dropdowns.length ? {
29798
- dropdowns: () => this.renderDropdowns(h, item, true)
29987
+ dropdowns: () => $xeToolbar.renderDropdowns(h, item, true)
29799
29988
  } : {}
29800
29989
  }));
29801
29990
  }
@@ -29884,9 +30073,7 @@ const {
29884
30073
  transfer: item.transfer
29885
30074
  },
29886
30075
  on: {
29887
- click: ({
29888
- $event
29889
- }) => $xeToolbar.tolEvent($event, item)
30076
+ click: eventParams => $xeToolbar.tolEvent(eventParams, item)
29890
30077
  },
29891
30078
  scopedSlots: dropdowns && dropdowns.length ? {
29892
30079
  dropdowns: () => $xeToolbar.renderDropdowns(h, item, false)
@@ -29919,7 +30106,7 @@ const {
29919
30106
  title: toolbar_getI18n('vxe.toolbar.import')
29920
30107
  },
29921
30108
  on: {
29922
- click: $xeToolbar.importEvent
30109
+ click: $xeToolbar.openImportEvent
29923
30110
  }
29924
30111
  }) : toolbar_renderEmptyElement($xeToolbar);
29925
30112
  },
@@ -29936,7 +30123,7 @@ const {
29936
30123
  title: toolbar_getI18n('vxe.toolbar.export')
29937
30124
  },
29938
30125
  on: {
29939
- click: $xeToolbar.exportEvent
30126
+ click: $xeToolbar.openExportEvent
29940
30127
  }
29941
30128
  }) : toolbar_renderEmptyElement($xeToolbar);
29942
30129
  },
@@ -29953,7 +30140,7 @@ const {
29953
30140
  title: toolbar_getI18n('vxe.toolbar.print')
29954
30141
  },
29955
30142
  on: {
29956
- click: $xeToolbar.printEvent
30143
+ click: $xeToolbar.openPrintEvent
29957
30144
  }
29958
30145
  }) : toolbar_renderEmptyElement($xeToolbar);
29959
30146
  },
@@ -30071,15 +30258,30 @@ const {
30071
30258
  const props = $xeToolbar;
30072
30259
  const $xeGrid = $xeToolbar.$xeGrid;
30073
30260
  $xeToolbar.$nextTick(() => {
30074
- const {
30075
- refresh
30076
- } = props;
30077
30261
  const refreshOpts = $xeToolbar.computeRefreshOpts;
30078
- const $xeTable = this.fintTable();
30262
+ const $xeTable = $xeToolbar.fintTable();
30079
30263
  const queryMethod = refreshOpts.queryMethod || refreshOpts.query;
30080
- if (refresh && !$xeGrid && !queryMethod) {
30264
+ if (props.refresh && !$xeGrid && !queryMethod) {
30081
30265
  warnLog('vxe.error.notFunc', ['queryMethod']);
30082
30266
  }
30267
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.custom)) {
30268
+ warnLog('vxe.error.delProp', ['custom={...}', 'custom=boolean & custom-options={...}']);
30269
+ }
30270
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.print)) {
30271
+ warnLog('vxe.error.delProp', ['print={...}', 'print=boolean & print-options={...}']);
30272
+ }
30273
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.export)) {
30274
+ warnLog('vxe.error.delProp', ['export={...}', 'export=boolean & export-options={...}']);
30275
+ }
30276
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.import)) {
30277
+ warnLog('vxe.error.delProp', ['import={...}', 'import=boolean & import-options={...}']);
30278
+ }
30279
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.refresh)) {
30280
+ warnLog('vxe.error.delProp', ['refresh={...}', 'refresh=boolean & refresh-options={...}']);
30281
+ }
30282
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.refresh)) {
30283
+ warnLog('vxe.error.delProp', ['zoom={...}', 'zoom=boolean & zoom-options={...}']);
30284
+ }
30083
30285
  if ($xeTable) {
30084
30286
  $xeTable.connect(this);
30085
30287
  }
@@ -30168,15 +30370,16 @@ function renderDefaultForm(h, $xeGrid) {
30168
30370
  const VxeUIFormComponent = core_.VxeUI.getComponent('VxeForm');
30169
30371
  const props = $xeGrid;
30170
30372
  const slots = $xeGrid.$scopedSlots;
30373
+ const reactData = $xeGrid;
30171
30374
  const {
30172
30375
  proxyConfig,
30173
30376
  formConfig
30174
30377
  } = props;
30175
30378
  const {
30176
- proxyOpts,
30177
- formData,
30178
- formOpts
30179
- } = $xeGrid;
30379
+ formData
30380
+ } = reactData;
30381
+ const proxyOpts = $xeGrid.computeProxyOpts;
30382
+ const formOpts = $xeGrid.computeFormOpts;
30180
30383
  if (isEnableConf(formConfig) && formOpts.items && formOpts.items.length) {
30181
30384
  const formSlots = {};
30182
30385
  if (!formOpts.inited) {
@@ -30250,32 +30453,44 @@ const getConfigSlot = ($xeGrid, slotConfigs) => {
30250
30453
  });
30251
30454
  return slotConf;
30252
30455
  };
30253
- function getToolbarSlots(_vm) {
30254
- const {
30255
- $scopedSlots,
30256
- toolbarOpts
30257
- } = _vm;
30456
+ function getToolbarSlots($xeGrid) {
30457
+ const slots = $xeGrid.$scopedSlots;
30458
+ const toolbarOpts = $xeGrid.computeToolbarOpts;
30258
30459
  const toolbarOptSlots = toolbarOpts.slots;
30259
- let buttonsSlot;
30260
- let toolsSlot;
30261
- const slots = {};
30262
- if ($scopedSlots.buttons && (!toolbarOptSlots || toolbarOptSlots.buttons !== 'buttons')) {
30460
+ const toolbarSlots = {};
30461
+ if (slots.buttons && (!toolbarOptSlots || toolbarOptSlots.buttons !== 'buttons')) {
30263
30462
  warnLog('vxe.error.reqProp', ['toolbar-config.slots.buttons']);
30264
30463
  }
30265
- if ($scopedSlots.tools && (!toolbarOptSlots || toolbarOptSlots.tools !== 'tools')) {
30464
+ if (slots.tools && (!toolbarOptSlots || toolbarOptSlots.tools !== 'tools')) {
30266
30465
  warnLog('vxe.error.reqProp', ['toolbar-config.slots.tools']);
30267
30466
  }
30268
30467
  if (toolbarOptSlots) {
30269
- buttonsSlot = getFuncSlot(_vm, toolbarOptSlots, 'buttons');
30270
- toolsSlot = getFuncSlot(_vm, toolbarOptSlots, 'tools');
30468
+ const buttonsSlot = getFuncSlot($xeGrid, toolbarOptSlots, 'buttons');
30469
+ const buttonPrefixSlot = getFuncSlot($xeGrid, toolbarOptSlots, 'buttonPrefix');
30470
+ const buttonSuffixSlot = getFuncSlot($xeGrid, toolbarOptSlots, 'buttonSuffix');
30471
+ const toolsSlot = getFuncSlot($xeGrid, toolbarOptSlots, 'tools');
30472
+ const toolPrefixSlot = getFuncSlot($xeGrid, toolbarOptSlots, 'toolPrefix');
30473
+ const toolSuffixSlot = getFuncSlot($xeGrid, toolbarOptSlots, 'toolSuffix');
30271
30474
  if (buttonsSlot) {
30272
- slots.buttons = buttonsSlot;
30475
+ toolbarSlots.buttons = buttonsSlot;
30476
+ }
30477
+ if (buttonPrefixSlot) {
30478
+ toolbarSlots.buttonPrefix = buttonPrefixSlot;
30479
+ }
30480
+ if (buttonSuffixSlot) {
30481
+ toolbarSlots.buttonSuffix = buttonSuffixSlot;
30273
30482
  }
30274
30483
  if (toolsSlot) {
30275
- slots.tools = toolsSlot;
30484
+ toolbarSlots.tools = toolsSlot;
30485
+ }
30486
+ if (toolPrefixSlot) {
30487
+ toolbarSlots.toolPrefix = toolPrefixSlot;
30488
+ }
30489
+ if (toolSuffixSlot) {
30490
+ toolbarSlots.toolSuffix = toolSuffixSlot;
30276
30491
  }
30277
30492
  }
30278
- return slots;
30493
+ return toolbarSlots;
30279
30494
  }
30280
30495
  function getTableOns(_vm) {
30281
30496
  const {
@@ -30326,135 +30541,121 @@ function pageChangeEvent($xeGrid, params) {
30326
30541
  /**
30327
30542
  * 渲染表单
30328
30543
  */
30329
- function renderForm(h, _vm) {
30544
+ function renderForm(h, $xeGrid) {
30545
+ const slots = $xeGrid.$scopedSlots;
30546
+ const props = $xeGrid;
30330
30547
  const {
30331
- _e,
30332
- $scopedSlots,
30333
30548
  formConfig
30334
- } = _vm;
30335
- const formSlot = $scopedSlots.form;
30549
+ } = props;
30550
+ const formSlot = slots.form;
30336
30551
  const hasForm = !!(formSlot || isEnableConf(formConfig));
30337
30552
  if (hasForm) {
30338
30553
  return h('div', {
30339
30554
  key: 'form',
30340
30555
  ref: 'refFormWrapper',
30341
30556
  class: 'vxe-grid--form-wrapper'
30342
- }, formSlot ? formSlot.call(_vm, {
30343
- $grid: _vm
30344
- }, h) : renderDefaultForm(h, _vm));
30557
+ }, formSlot ? formSlot.call($xeGrid, {
30558
+ $grid: $xeGrid
30559
+ }) : renderDefaultForm(h, $xeGrid));
30345
30560
  }
30346
- return _e();
30561
+ return grid_renderEmptyElement($xeGrid);
30347
30562
  }
30348
30563
  /**
30349
30564
  * 渲染工具栏
30350
30565
  */
30351
- function renderToolbar(h, _vm) {
30566
+ function renderToolbar(h, $xeGrid) {
30567
+ const slots = $xeGrid.$scopedSlots;
30568
+ const props = $xeGrid;
30352
30569
  const {
30353
- _e,
30354
- $scopedSlots,
30355
- toolbarConfig,
30356
- toolbar
30357
- } = _vm;
30358
- const toolbarSlot = $scopedSlots.toolbar;
30570
+ toolbarConfig
30571
+ } = props;
30572
+ const toolbarSlot = slots.toolbar;
30359
30573
  const hasToolbar = !!(toolbarSlot || isEnableConf(toolbarConfig) || toolbar);
30574
+ const toolbarOpts = $xeGrid.computeToolbarOpts;
30360
30575
  if (hasToolbar) {
30361
30576
  return h('div', {
30362
30577
  key: 'toolbar',
30363
30578
  ref: 'refToolbarWrapper',
30364
30579
  class: 'vxe-grid--toolbar-wrapper'
30365
- }, toolbarSlot ? toolbarSlot.call(_vm, {
30366
- $grid: _vm
30367
- }, h) : [h(src_toolbar, {
30368
- props: Object.assign({}, _vm.toolbarOpts, {
30580
+ }, toolbarSlot ? toolbarSlot.call($xeGrid, {
30581
+ $grid: $xeGrid
30582
+ }) : [h(src_toolbar, {
30583
+ props: Object.assign({}, toolbarOpts, {
30369
30584
  slots: undefined
30370
30585
  }),
30371
30586
  ref: 'xToolbar',
30372
- scopedSlots: getToolbarSlots(_vm)
30587
+ scopedSlots: getToolbarSlots($xeGrid)
30373
30588
  })]);
30374
30589
  }
30375
- return _e();
30590
+ return grid_renderEmptyElement($xeGrid);
30376
30591
  }
30377
30592
  /**
30378
30593
  * 渲染表格顶部区域
30379
30594
  */
30380
- function renderTop(h, _vm) {
30381
- const {
30382
- _e,
30383
- $scopedSlots
30384
- } = _vm;
30385
- const topSlot = $scopedSlots.top;
30595
+ function renderTop(h, $xeGrid) {
30596
+ const slots = $xeGrid.$scopedSlots;
30597
+ const topSlot = slots.top;
30386
30598
  return topSlot ? h('div', {
30387
30599
  key: 'top',
30388
30600
  ref: 'refTopWrapper',
30389
30601
  class: 'vxe-grid--top-wrapper'
30390
- }, topSlot.call(_vm, {
30391
- $grid: _vm
30392
- }, h)) : _e();
30602
+ }, topSlot.call($xeGrid, {
30603
+ $grid: $xeGrid
30604
+ })) : grid_renderEmptyElement($xeGrid);
30393
30605
  }
30394
- function renderTableLeft(h, _vm) {
30395
- const {
30396
- _e,
30397
- $scopedSlots
30398
- } = _vm;
30399
- const leftSlot = $scopedSlots.left;
30606
+ function renderTableLeft(h, $xeGrid) {
30607
+ const slots = $xeGrid.$scopedSlots;
30608
+ const leftSlot = slots.left;
30400
30609
  if (leftSlot) {
30401
30610
  return h('div', {
30402
30611
  class: 'vxe-grid--left-wrapper'
30403
30612
  }, leftSlot({
30404
- $grid: _vm
30613
+ $grid: $xeGrid
30405
30614
  }));
30406
30615
  }
30407
- return _e();
30616
+ return grid_renderEmptyElement($xeGrid);
30408
30617
  }
30409
- function renderTableRight(h, _vm) {
30410
- const {
30411
- _e,
30412
- $scopedSlots
30413
- } = _vm;
30414
- const rightSlot = $scopedSlots.right;
30618
+ function renderTableRight(h, $xeGrid) {
30619
+ const slots = $xeGrid.$scopedSlots;
30620
+ const rightSlot = slots.right;
30415
30621
  if (rightSlot) {
30416
30622
  return h('div', {
30417
30623
  class: 'vxe-grid--right-wrapper'
30418
30624
  }, rightSlot({
30419
- $grid: _vm
30625
+ $grid: $xeGrid
30420
30626
  }));
30421
30627
  }
30422
- return _e();
30628
+ return grid_renderEmptyElement($xeGrid);
30423
30629
  }
30424
30630
  /**
30425
30631
  * 渲染表格
30426
30632
  */
30427
- function renderTable(h, _vm) {
30428
- const {
30429
- $scopedSlots,
30430
- tableProps
30431
- } = _vm;
30633
+ function renderTable(h, $xeGrid) {
30634
+ const slots = $xeGrid.$scopedSlots;
30635
+ const tableProps = $xeGrid.computeTableProps;
30432
30636
  return h('div', {
30433
30637
  class: 'vxe-grid--table-wrapper'
30434
30638
  }, [h('vxe-table', {
30435
30639
  key: 'table',
30436
30640
  props: tableProps,
30437
- on: getTableOns(_vm),
30438
- scopedSlots: $scopedSlots,
30641
+ on: getTableOns($xeGrid),
30642
+ scopedSlots: slots,
30439
30643
  ref: 'xTable'
30440
30644
  })]);
30441
30645
  }
30442
30646
  /**
30443
30647
  * 渲染表格底部区域
30444
30648
  */
30445
- function renderBottom(h, _vm) {
30446
- const {
30447
- _e,
30448
- $scopedSlots
30449
- } = _vm;
30450
- const bottomSlot = $scopedSlots.bottom;
30649
+ function renderBottom(h, $xeGrid) {
30650
+ const slots = $xeGrid.$scopedSlots;
30651
+ const bottomSlot = slots.bottom;
30451
30652
  return bottomSlot ? h('div', {
30452
30653
  key: 'bottom',
30453
30654
  ref: 'refBottomWrapper',
30454
30655
  class: 'vxe-grid--bottom-wrapper'
30455
- }, bottomSlot.call(_vm, {
30456
- $grid: _vm
30457
- }, h)) : _e();
30656
+ }, bottomSlot.call($xeGrid, {
30657
+ $grid: $xeGrid
30658
+ })) : grid_renderEmptyElement($xeGrid);
30458
30659
  }
30459
30660
  /**
30460
30661
  * 渲染分页
@@ -33149,7 +33350,7 @@ if (core_.VxeUI.dynamicApp) {
33149
33350
  }
33150
33351
  core_.VxeUI.component(src_toolbar);
33151
33352
  const Toolbar = VxeToolbar;
33152
- /* harmony default export */ var toolbar = ((/* unused pure expression or super */ null && (VxeToolbar)));
33353
+ /* harmony default export */ var packages_toolbar = ((/* unused pure expression or super */ null && (VxeToolbar)));
33153
33354
  ;// CONCATENATED MODULE: ./packages/locale/lang/zh-CN.ts
33154
33355
  /* harmony default export */ var zh_CN = ({
33155
33356
  vxe: {
@@ -33711,6 +33912,12 @@ const Toolbar = VxeToolbar;
33711
33912
  replaceSuccess: '成功替换 {0} 个单元格'
33712
33913
  }
33713
33914
  },
33915
+ extendPivotTable: {
33916
+ aggregation: {
33917
+ grouping: '分组',
33918
+ values: '值'
33919
+ }
33920
+ },
33714
33921
  filterComplexInput: {
33715
33922
  menus: {
33716
33923
  fixedColumn: '冻结列',