vxe-table 3.15.39 → 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.
Files changed (176) hide show
  1. package/es/grid/src/grid.js +73 -49
  2. package/es/{iconfont.1749800510225.ttf → iconfont.1750082820248.ttf} +0 -0
  3. package/es/iconfont.1750082820248.woff +0 -0
  4. package/es/iconfont.1750082820248.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/methods.js +34 -26
  35. package/es/table/src/props.js +32 -8
  36. package/es/table/src/table.js +57 -38
  37. package/es/table/style.css +22 -3
  38. package/es/table/style.min.css +1 -1
  39. package/es/ui/index.js +3 -0
  40. package/es/vxe-table/style.css +22 -3
  41. package/es/vxe-table/style.min.css +1 -1
  42. package/lib/grid/src/grid.js +81 -82
  43. package/lib/grid/src/grid.min.js +1 -1
  44. package/lib/{iconfont.1749800510225.ttf → iconfont.1750082820248.ttf} +0 -0
  45. package/lib/iconfont.1750082820248.woff +0 -0
  46. package/lib/iconfont.1750082820248.woff2 +0 -0
  47. package/lib/index.css +1 -1
  48. package/lib/index.min.css +1 -1
  49. package/lib/index.umd.js +282 -184
  50. package/lib/index.umd.min.js +1 -1
  51. package/lib/locale/lang/ar-EG.js +6 -0
  52. package/lib/locale/lang/ar-EG.min.js +1 -1
  53. package/lib/locale/lang/ar-EG.umd.js +6 -0
  54. package/lib/locale/lang/de-DE.js +6 -0
  55. package/lib/locale/lang/de-DE.min.js +1 -1
  56. package/lib/locale/lang/de-DE.umd.js +6 -0
  57. package/lib/locale/lang/en-US.js +6 -0
  58. package/lib/locale/lang/en-US.min.js +1 -1
  59. package/lib/locale/lang/en-US.umd.js +6 -0
  60. package/lib/locale/lang/es-ES.js +6 -0
  61. package/lib/locale/lang/es-ES.min.js +1 -1
  62. package/lib/locale/lang/es-ES.umd.js +6 -0
  63. package/lib/locale/lang/fr-FR.js +6 -0
  64. package/lib/locale/lang/fr-FR.min.js +1 -1
  65. package/lib/locale/lang/fr-FR.umd.js +6 -0
  66. package/lib/locale/lang/hu-HU.js +6 -0
  67. package/lib/locale/lang/hu-HU.min.js +1 -1
  68. package/lib/locale/lang/hu-HU.umd.js +6 -0
  69. package/lib/locale/lang/hy-AM.js +6 -0
  70. package/lib/locale/lang/hy-AM.min.js +1 -1
  71. package/lib/locale/lang/hy-AM.umd.js +6 -0
  72. package/lib/locale/lang/id-ID.js +6 -0
  73. package/lib/locale/lang/id-ID.min.js +1 -1
  74. package/lib/locale/lang/id-ID.umd.js +6 -0
  75. package/lib/locale/lang/it-IT.js +6 -0
  76. package/lib/locale/lang/it-IT.min.js +1 -1
  77. package/lib/locale/lang/it-IT.umd.js +6 -0
  78. package/lib/locale/lang/ja-JP.js +6 -0
  79. package/lib/locale/lang/ja-JP.min.js +1 -1
  80. package/lib/locale/lang/ja-JP.umd.js +6 -0
  81. package/lib/locale/lang/ko-KR.js +6 -0
  82. package/lib/locale/lang/ko-KR.min.js +1 -1
  83. package/lib/locale/lang/ko-KR.umd.js +6 -0
  84. package/lib/locale/lang/ms-MY.js +6 -0
  85. package/lib/locale/lang/ms-MY.min.js +1 -1
  86. package/lib/locale/lang/ms-MY.umd.js +6 -0
  87. package/lib/locale/lang/nb-NO.js +6 -0
  88. package/lib/locale/lang/nb-NO.min.js +1 -1
  89. package/lib/locale/lang/nb-NO.umd.js +6 -0
  90. package/lib/locale/lang/pt-BR.js +6 -0
  91. package/lib/locale/lang/pt-BR.min.js +1 -1
  92. package/lib/locale/lang/pt-BR.umd.js +6 -0
  93. package/lib/locale/lang/ru-RU.js +6 -0
  94. package/lib/locale/lang/ru-RU.min.js +1 -1
  95. package/lib/locale/lang/ru-RU.umd.js +6 -0
  96. package/lib/locale/lang/th-TH.js +6 -0
  97. package/lib/locale/lang/th-TH.min.js +1 -1
  98. package/lib/locale/lang/th-TH.umd.js +6 -0
  99. package/lib/locale/lang/ug-CN.js +6 -0
  100. package/lib/locale/lang/ug-CN.min.js +1 -1
  101. package/lib/locale/lang/ug-CN.umd.js +6 -0
  102. package/lib/locale/lang/uk-UA.js +6 -0
  103. package/lib/locale/lang/uk-UA.min.js +1 -1
  104. package/lib/locale/lang/uk-UA.umd.js +6 -0
  105. package/lib/locale/lang/uz-UZ.js +6 -0
  106. package/lib/locale/lang/uz-UZ.min.js +1 -1
  107. package/lib/locale/lang/uz-UZ.umd.js +6 -0
  108. package/lib/locale/lang/vi-VN.js +6 -0
  109. package/lib/locale/lang/vi-VN.min.js +1 -1
  110. package/lib/locale/lang/vi-VN.umd.js +6 -0
  111. package/lib/locale/lang/zh-CHT.js +6 -0
  112. package/lib/locale/lang/zh-CHT.min.js +1 -1
  113. package/lib/locale/lang/zh-CHT.umd.js +6 -0
  114. package/lib/locale/lang/zh-CN.js +6 -0
  115. package/lib/locale/lang/zh-CN.min.js +1 -1
  116. package/lib/locale/lang/zh-CN.umd.js +6 -0
  117. package/lib/style.css +1 -1
  118. package/lib/style.min.css +1 -1
  119. package/lib/table/module/custom/mixin.js +32 -5
  120. package/lib/table/module/custom/mixin.min.js +1 -1
  121. package/lib/table/module/custom/panel.js +14 -2
  122. package/lib/table/module/custom/panel.min.js +1 -1
  123. package/lib/table/src/body.js +11 -11
  124. package/lib/table/src/body.min.js +1 -1
  125. package/lib/table/src/methods.js +38 -25
  126. package/lib/table/src/methods.min.js +1 -1
  127. package/lib/table/src/props.js +32 -8
  128. package/lib/table/src/table.js +64 -50
  129. package/lib/table/src/table.min.js +1 -1
  130. package/lib/table/style/style.css +22 -3
  131. package/lib/table/style/style.min.css +1 -1
  132. package/lib/ui/index.js +3 -0
  133. package/lib/ui/index.min.js +1 -1
  134. package/lib/vxe-table/style/style.css +22 -3
  135. package/lib/vxe-table/style/style.min.css +1 -1
  136. package/package.json +1 -1
  137. package/packages/grid/src/grid.ts +93 -54
  138. package/packages/locale/lang/ar-EG.ts +6 -0
  139. package/packages/locale/lang/de-DE.ts +6 -0
  140. package/packages/locale/lang/en-US.ts +6 -0
  141. package/packages/locale/lang/es-ES.ts +6 -0
  142. package/packages/locale/lang/fr-FR.ts +6 -0
  143. package/packages/locale/lang/hu-HU.ts +6 -0
  144. package/packages/locale/lang/hy-AM.ts +6 -0
  145. package/packages/locale/lang/id-ID.ts +6 -0
  146. package/packages/locale/lang/it-IT.ts +6 -0
  147. package/packages/locale/lang/ja-JP.ts +6 -0
  148. package/packages/locale/lang/ko-KR.ts +6 -0
  149. package/packages/locale/lang/ms-MY.ts +6 -0
  150. package/packages/locale/lang/nb-NO.ts +6 -0
  151. package/packages/locale/lang/pt-BR.ts +6 -0
  152. package/packages/locale/lang/ru-RU.ts +6 -0
  153. package/packages/locale/lang/th-TH.ts +6 -0
  154. package/packages/locale/lang/ug-CN.ts +6 -0
  155. package/packages/locale/lang/uk-UA.ts +6 -0
  156. package/packages/locale/lang/uz-UZ.ts +6 -0
  157. package/packages/locale/lang/vi-VN.ts +6 -0
  158. package/packages/locale/lang/zh-CHT.ts +6 -0
  159. package/packages/locale/lang/zh-CN.ts +6 -0
  160. package/packages/table/module/custom/mixin.ts +27 -3
  161. package/packages/table/module/custom/panel.ts +119 -106
  162. package/packages/table/src/body.ts +13 -10
  163. package/packages/table/src/cell.ts +12 -12
  164. package/packages/table/src/methods.ts +35 -26
  165. package/packages/table/src/props.ts +32 -8
  166. package/packages/table/src/table.ts +76 -49
  167. package/packages/ui/index.ts +11 -0
  168. package/styles/components/icon.scss +13 -1
  169. package/styles/components/table-module/custom.scss +9 -2
  170. package/styles/icon/iconfont.ttf +0 -0
  171. package/styles/icon/iconfont.woff +0 -0
  172. package/styles/icon/iconfont.woff2 +0 -0
  173. package/es/iconfont.1749800510225.woff +0 -0
  174. package/es/iconfont.1749800510225.woff2 +0 -0
  175. package/lib/iconfont.1749800510225.woff +0 -0
  176. package/lib/iconfont.1749800510225.woff2 +0 -0
package/lib/index.umd.js CHANGED
@@ -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',
@@ -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 = isAllCustom || storageOpts.resizable;
5331
- const isCustomVisible = isAllCustom || storageOpts.visible;
5332
- const isCustomFixed = isAllCustom || storageOpts.fixed;
5333
- const isCustomSort = isAllCustom || storageOpts.sort;
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
- 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
- }) : [];
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 = isAllCustom || storageOpts.resizable;
10892
- const isCustomVisible = isAllCustom || storageOpts.visible;
10893
- const isCustomFixed = isAllCustom || storageOpts.fixed;
10894
- const isCustomSort = isAllCustom || storageOpts.sort;
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 = isAllCustom || storageOpts.resizable;
10936
- const isCustomVisible = isAllCustom || storageOpts.visible;
10937
- const isCustomFixed = isAllCustom || storageOpts.fixed;
10938
- const isCustomSort = isAllCustom || storageOpts.sort;
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 = {};
@@ -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().isUndefined(showOverflow) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNull(showOverflow) ? isAllOverflow : showOverflow;
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
- if ($scopedSlots.empty) {
18067
- emptyContent = $scopedSlots.empty.call(this, {
18068
- $table: $xeTable,
18069
- $grid: $xeGrid
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(this, h, emptyOpts, {
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
- // (即将废弃)columnKey 已废弃,被 column-config.useKey 替换
19263
+ /**
19264
+ * (即将废弃)columnKey 已废弃,被 column-config.useKey 替换
19265
+ * @deprecated
19266
+ */
19248
19267
  columnKey: Boolean,
19249
- // (即将废弃)rowKey 已废弃,被 row-config.useKey 替换
19268
+ /**
19269
+ * (即将废弃)rowKey 已废弃,被 row-config.useKey 替换
19270
+ * @deprecated
19271
+ */
19250
19272
  rowKey: Boolean,
19251
- // (即将废弃)rowId 已废弃,被 row-config.keyField 替换
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
- // 已废弃,被 aggregateConfig 替换
19313
+ /**
19314
+ * 已废弃,被 aggregateConfig 替换
19315
+ * @deprecated
19316
+ */
19289
19317
  rowGroupConfig: Object,
19290
19318
  // 当前行配置项
19291
19319
  currentRowConfig: Object,
19292
- // 已废弃,被 rowDragConfig 替换
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
- // 在 v4 中废弃 contextMenu
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('div', {
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
- customOpts,
26872
- customColumnList
26873
- } = this;
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, _vm) {
27254
- const {
27255
- $scopedSlots,
27256
- emptyOpts
27257
- } = _vm;
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 params = {
27260
- $table: _vm
27338
+ const emptyParams = {
27339
+ $table: $xeTable,
27340
+ $grid: $xeGrid
27261
27341
  };
27262
- if ($scopedSlots.empty) {
27263
- emptyContent = $scopedSlots.empty.call(_vm, params, h);
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(_vm, h, emptyOpts, params));
27348
+ emptyContent = getSlotVNs(rtEmptyView.call($xeTable, h, emptyOpts, emptyParams));
27269
27349
  } else {
27270
- emptyContent = getFuncText(_vm.emptyText) || table_getI18n('vxe.table.emptyText');
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(_vm) {
27347
- const {
27348
- $el
27349
- } = _vm;
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
- } = this;
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: this
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
- return Object.assign({
27874
- message: 'default'
27875
- }, table_getConfig().table.validConfig, this.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
- 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
- }
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(this);
28537
- this.$nextTick(() => {
28538
- handleUpdateResize(this);
28539
- setTimeout(() => handleUpdateResize(this));
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.clearMergeCells();
28548
- this.$nextTick(() => this.setMergeCells(value));
28638
+ const $xeTable = this;
28639
+ $xeTable.clearMergeCells();
28640
+ $xeTable.$nextTick(() => $xeTable.setMergeCells(value));
28549
28641
  },
28550
28642
  mergeFooterItems(value) {
28551
- this.clearMergeFooterItems();
28552
- this.$nextTick(() => this.setMergeFooterItems(value));
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, this))]),
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
- proxyOpts,
30177
- formData,
30178
- formOpts
30179
- } = $xeGrid;
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(_vm) {
30254
- const {
30255
- $scopedSlots,
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
- let buttonsSlot;
30260
- let toolsSlot;
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 ($scopedSlots.tools && (!toolbarOptSlots || toolbarOptSlots.tools !== 'tools')) {
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(_vm, toolbarOptSlots, 'buttons');
30270
- toolsSlot = getFuncSlot(_vm, toolbarOptSlots, 'tools');
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
- slots.buttons = buttonsSlot;
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
- slots.tools = toolsSlot;
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 slots;
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, _vm) {
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
- } = _vm;
30335
- const formSlot = $scopedSlots.form;
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(_vm, {
30343
- $grid: _vm
30344
- }, h) : renderDefaultForm(h, _vm));
30448
+ }, formSlot ? formSlot.call($xeGrid, {
30449
+ $grid: $xeGrid
30450
+ }) : renderDefaultForm(h, $xeGrid));
30345
30451
  }
30346
- return _e();
30452
+ return grid_renderEmptyElement($xeGrid);
30347
30453
  }
30348
30454
  /**
30349
30455
  * 渲染工具栏
30350
30456
  */
30351
- function renderToolbar(h, _vm) {
30457
+ function renderToolbar(h, $xeGrid) {
30458
+ const slots = $xeGrid.$scopedSlots;
30459
+ const props = $xeGrid;
30352
30460
  const {
30353
- _e,
30354
- $scopedSlots,
30355
- toolbarConfig,
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(_vm, {
30366
- $grid: _vm
30367
- }, h) : [h(src_toolbar, {
30368
- props: Object.assign({}, _vm.toolbarOpts, {
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(_vm)
30478
+ scopedSlots: getToolbarSlots($xeGrid)
30373
30479
  })]);
30374
30480
  }
30375
- return _e();
30481
+ return grid_renderEmptyElement($xeGrid);
30376
30482
  }
30377
30483
  /**
30378
30484
  * 渲染表格顶部区域
30379
30485
  */
30380
- function renderTop(h, _vm) {
30381
- const {
30382
- _e,
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(_vm, {
30391
- $grid: _vm
30392
- }, h)) : _e();
30493
+ }, topSlot.call($xeGrid, {
30494
+ $grid: $xeGrid
30495
+ })) : grid_renderEmptyElement($xeGrid);
30393
30496
  }
30394
- function renderTableLeft(h, _vm) {
30395
- const {
30396
- _e,
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: _vm
30504
+ $grid: $xeGrid
30405
30505
  }));
30406
30506
  }
30407
- return _e();
30507
+ return grid_renderEmptyElement($xeGrid);
30408
30508
  }
30409
- function renderTableRight(h, _vm) {
30410
- const {
30411
- _e,
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: _vm
30516
+ $grid: $xeGrid
30420
30517
  }));
30421
30518
  }
30422
- return _e();
30519
+ return grid_renderEmptyElement($xeGrid);
30423
30520
  }
30424
30521
  /**
30425
30522
  * 渲染表格
30426
30523
  */
30427
- function renderTable(h, _vm) {
30428
- const {
30429
- $scopedSlots,
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(_vm),
30438
- scopedSlots: $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, _vm) {
30446
- const {
30447
- _e,
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(_vm, {
30456
- $grid: _vm
30457
- }, h)) : _e();
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 toolbar = ((/* unused pure expression or super */ null && (VxeToolbar)));
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: '冻结列',