vxe-table 3.15.47 → 3.15.48

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 (159) hide show
  1. package/es/index.css +1 -1
  2. package/es/index.min.css +1 -1
  3. package/es/locale/lang/ar-EG.js +3 -2
  4. package/es/locale/lang/de-DE.js +3 -2
  5. package/es/locale/lang/en-US.js +3 -2
  6. package/es/locale/lang/es-ES.js +3 -2
  7. package/es/locale/lang/fr-FR.js +3 -2
  8. package/es/locale/lang/hu-HU.js +3 -2
  9. package/es/locale/lang/hy-AM.js +3 -2
  10. package/es/locale/lang/id-ID.js +3 -2
  11. package/es/locale/lang/it-IT.js +3 -2
  12. package/es/locale/lang/ja-JP.js +3 -2
  13. package/es/locale/lang/ko-KR.js +3 -2
  14. package/es/locale/lang/ms-MY.js +3 -2
  15. package/es/locale/lang/nb-NO.js +3 -2
  16. package/es/locale/lang/pt-BR.js +3 -2
  17. package/es/locale/lang/ru-RU.js +3 -2
  18. package/es/locale/lang/th-TH.js +3 -2
  19. package/es/locale/lang/ug-CN.js +3 -2
  20. package/es/locale/lang/uk-UA.js +3 -2
  21. package/es/locale/lang/uz-UZ.js +3 -2
  22. package/es/locale/lang/vi-VN.js +3 -2
  23. package/es/locale/lang/zh-CHT.js +3 -2
  24. package/es/locale/lang/zh-CN.js +3 -2
  25. package/es/style.css +1 -1
  26. package/es/style.min.css +1 -1
  27. package/es/table/module/custom/panel.js +9 -2
  28. package/es/table/src/body.js +8 -5
  29. package/es/table/src/cell.js +21 -13
  30. package/es/table/src/methods.js +14 -2
  31. package/es/table/style.css +5 -1
  32. package/es/table/style.min.css +1 -1
  33. package/es/ui/index.js +3 -2
  34. package/es/ui/src/log.js +1 -1
  35. package/es/vxe-table/style.css +5 -1
  36. package/es/vxe-table/style.min.css +1 -1
  37. package/lib/index.css +1 -1
  38. package/lib/index.min.css +1 -1
  39. package/lib/index.umd.js +59 -23
  40. package/lib/index.umd.min.js +1 -1
  41. package/lib/locale/lang/ar-EG.js +3 -2
  42. package/lib/locale/lang/ar-EG.min.js +1 -1
  43. package/lib/locale/lang/ar-EG.umd.js +3 -2
  44. package/lib/locale/lang/de-DE.js +3 -2
  45. package/lib/locale/lang/de-DE.min.js +1 -1
  46. package/lib/locale/lang/de-DE.umd.js +3 -2
  47. package/lib/locale/lang/en-US.js +3 -2
  48. package/lib/locale/lang/en-US.min.js +1 -1
  49. package/lib/locale/lang/en-US.umd.js +3 -2
  50. package/lib/locale/lang/es-ES.js +3 -2
  51. package/lib/locale/lang/es-ES.min.js +1 -1
  52. package/lib/locale/lang/es-ES.umd.js +3 -2
  53. package/lib/locale/lang/fr-FR.js +3 -2
  54. package/lib/locale/lang/fr-FR.min.js +1 -1
  55. package/lib/locale/lang/fr-FR.umd.js +3 -2
  56. package/lib/locale/lang/hu-HU.js +3 -2
  57. package/lib/locale/lang/hu-HU.min.js +1 -1
  58. package/lib/locale/lang/hu-HU.umd.js +3 -2
  59. package/lib/locale/lang/hy-AM.js +3 -2
  60. package/lib/locale/lang/hy-AM.min.js +1 -1
  61. package/lib/locale/lang/hy-AM.umd.js +3 -2
  62. package/lib/locale/lang/id-ID.js +3 -2
  63. package/lib/locale/lang/id-ID.min.js +1 -1
  64. package/lib/locale/lang/id-ID.umd.js +3 -2
  65. package/lib/locale/lang/it-IT.js +3 -2
  66. package/lib/locale/lang/it-IT.min.js +1 -1
  67. package/lib/locale/lang/it-IT.umd.js +3 -2
  68. package/lib/locale/lang/ja-JP.js +3 -2
  69. package/lib/locale/lang/ja-JP.min.js +1 -1
  70. package/lib/locale/lang/ja-JP.umd.js +3 -2
  71. package/lib/locale/lang/ko-KR.js +3 -2
  72. package/lib/locale/lang/ko-KR.min.js +1 -1
  73. package/lib/locale/lang/ko-KR.umd.js +3 -2
  74. package/lib/locale/lang/ms-MY.js +3 -2
  75. package/lib/locale/lang/ms-MY.min.js +1 -1
  76. package/lib/locale/lang/ms-MY.umd.js +3 -2
  77. package/lib/locale/lang/nb-NO.js +3 -2
  78. package/lib/locale/lang/nb-NO.min.js +1 -1
  79. package/lib/locale/lang/nb-NO.umd.js +3 -2
  80. package/lib/locale/lang/pt-BR.js +3 -2
  81. package/lib/locale/lang/pt-BR.min.js +1 -1
  82. package/lib/locale/lang/pt-BR.umd.js +3 -2
  83. package/lib/locale/lang/ru-RU.js +3 -2
  84. package/lib/locale/lang/ru-RU.min.js +1 -1
  85. package/lib/locale/lang/ru-RU.umd.js +3 -2
  86. package/lib/locale/lang/th-TH.js +3 -2
  87. package/lib/locale/lang/th-TH.min.js +1 -1
  88. package/lib/locale/lang/th-TH.umd.js +3 -2
  89. package/lib/locale/lang/ug-CN.js +3 -2
  90. package/lib/locale/lang/ug-CN.min.js +1 -1
  91. package/lib/locale/lang/ug-CN.umd.js +3 -2
  92. package/lib/locale/lang/uk-UA.js +3 -2
  93. package/lib/locale/lang/uk-UA.min.js +1 -1
  94. package/lib/locale/lang/uk-UA.umd.js +3 -2
  95. package/lib/locale/lang/uz-UZ.js +3 -2
  96. package/lib/locale/lang/uz-UZ.min.js +1 -1
  97. package/lib/locale/lang/uz-UZ.umd.js +3 -2
  98. package/lib/locale/lang/vi-VN.js +3 -2
  99. package/lib/locale/lang/vi-VN.min.js +1 -1
  100. package/lib/locale/lang/vi-VN.umd.js +3 -2
  101. package/lib/locale/lang/zh-CHT.js +3 -2
  102. package/lib/locale/lang/zh-CHT.min.js +1 -1
  103. package/lib/locale/lang/zh-CHT.umd.js +3 -2
  104. package/lib/locale/lang/zh-CN.js +3 -2
  105. package/lib/locale/lang/zh-CN.min.js +1 -1
  106. package/lib/locale/lang/zh-CN.umd.js +3 -2
  107. package/lib/style.css +1 -1
  108. package/lib/style.min.css +1 -1
  109. package/lib/table/module/custom/panel.js +8 -1
  110. package/lib/table/module/custom/panel.min.js +1 -1
  111. package/lib/table/src/body.js +8 -5
  112. package/lib/table/src/body.min.js +1 -1
  113. package/lib/table/src/cell.js +20 -11
  114. package/lib/table/src/cell.min.js +1 -1
  115. package/lib/table/src/methods.js +16 -2
  116. package/lib/table/src/methods.min.js +1 -1
  117. package/lib/table/style/style.css +5 -1
  118. package/lib/table/style/style.min.css +1 -1
  119. package/lib/ui/index.js +3 -2
  120. package/lib/ui/index.min.js +1 -1
  121. package/lib/ui/src/log.js +1 -1
  122. package/lib/ui/src/log.min.js +1 -1
  123. package/lib/vxe-table/style/style.css +5 -1
  124. package/lib/vxe-table/style/style.min.css +1 -1
  125. package/package.json +1 -1
  126. package/packages/locale/lang/ar-EG.ts +3 -2
  127. package/packages/locale/lang/de-DE.ts +3 -2
  128. package/packages/locale/lang/en-US.ts +3 -2
  129. package/packages/locale/lang/es-ES.ts +3 -2
  130. package/packages/locale/lang/fr-FR.ts +3 -2
  131. package/packages/locale/lang/hu-HU.ts +3 -2
  132. package/packages/locale/lang/hy-AM.ts +3 -2
  133. package/packages/locale/lang/id-ID.ts +3 -2
  134. package/packages/locale/lang/it-IT.ts +3 -2
  135. package/packages/locale/lang/ja-JP.ts +3 -2
  136. package/packages/locale/lang/ko-KR.ts +3 -2
  137. package/packages/locale/lang/ms-MY.ts +3 -2
  138. package/packages/locale/lang/nb-NO.ts +3 -2
  139. package/packages/locale/lang/pt-BR.ts +3 -2
  140. package/packages/locale/lang/ru-RU.ts +3 -2
  141. package/packages/locale/lang/th-TH.ts +3 -2
  142. package/packages/locale/lang/ug-CN.ts +3 -2
  143. package/packages/locale/lang/uk-UA.ts +3 -2
  144. package/packages/locale/lang/uz-UZ.ts +3 -2
  145. package/packages/locale/lang/vi-VN.ts +3 -2
  146. package/packages/locale/lang/zh-CHT.ts +3 -2
  147. package/packages/locale/lang/zh-CN.ts +3 -2
  148. package/packages/table/module/custom/panel.ts +9 -2
  149. package/packages/table/src/body.ts +8 -5
  150. package/packages/table/src/cell.ts +25 -13
  151. package/packages/table/src/methods.ts +14 -2
  152. package/packages/ui/index.ts +2 -1
  153. package/styles/components/table-module/custom.scss +5 -1
  154. /package/es/{iconfont.1750732150166.ttf → iconfont.1750813664386.ttf} +0 -0
  155. /package/es/{iconfont.1750732150166.woff → iconfont.1750813664386.woff} +0 -0
  156. /package/es/{iconfont.1750732150166.woff2 → iconfont.1750813664386.woff2} +0 -0
  157. /package/lib/{iconfont.1750732150166.ttf → iconfont.1750813664386.ttf} +0 -0
  158. /package/lib/{iconfont.1750732150166.woff → iconfont.1750813664386.woff} +0 -0
  159. /package/lib/{iconfont.1750732150166.woff2 → iconfont.1750813664386.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.47";
2005
+ const version = "3.15.48";
2006
2006
  core_.VxeUI.version = version;
2007
2007
  core_.VxeUI.tableVersion = version;
2008
2008
  core_.VxeUI.setConfig({
@@ -2146,7 +2146,8 @@ core_.VxeUI.setConfig({
2146
2146
  mapChildrenField: '_X_ROW_CHILD_LIST',
2147
2147
  indent: 20,
2148
2148
  showIcon: true,
2149
- maxGroupSize: 4
2149
+ maxGroupSize: 4,
2150
+ showAggFuncTitle: true
2150
2151
  },
2151
2152
  treeConfig: {
2152
2153
  padding: true,
@@ -2665,7 +2666,7 @@ function isNodeElement(elem) {
2665
2666
  const {
2666
2667
  log: log_log
2667
2668
  } = core_.VxeUI;
2668
- const log_version = `table v${"3.15.47"}`;
2669
+ const log_version = `table v${"3.15.48"}`;
2669
2670
  const warnLog = log_log.create('warn', log_version);
2670
2671
  const errLog = log_log.create('error', log_version);
2671
2672
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -3654,13 +3655,25 @@ function renderHeaderCellBaseVNs(h, params, content) {
3654
3655
  const vns = [renderTitlePrefixIcon(h, params), renderHeaderCellDragIcon(h, params), ...(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(content) ? content : [content]), renderTitleSuffixIcon(h, params)];
3655
3656
  return vns;
3656
3657
  }
3658
+ function getRenderDefaultColumnTitle(h, column, content) {
3659
+ if (column.type === 'html' && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(content)) {
3660
+ return h('span', {
3661
+ key: 'ch',
3662
+ domProps: {
3663
+ innerHTML: content
3664
+ }
3665
+ });
3666
+ }
3667
+ return h('span', {
3668
+ key: 'ct'
3669
+ }, getSlotVNs(content));
3670
+ }
3657
3671
  function renderTitleContent(h, params, content) {
3658
3672
  const {
3659
3673
  $table,
3660
3674
  column
3661
3675
  } = params;
3662
3676
  const {
3663
- type,
3664
3677
  showHeaderOverflow
3665
3678
  } = column;
3666
3679
  const tableProps = $table;
@@ -3668,6 +3681,9 @@ function renderTitleContent(h, params, content) {
3668
3681
  const {
3669
3682
  showHeaderOverflow: allColumnHeaderOverflow
3670
3683
  } = tableProps;
3684
+ const {
3685
+ isRowGroupStatus
3686
+ } = tableReactData;
3671
3687
  const tooltipOpts = $table.computeTooltipOpts;
3672
3688
  const showAllTip = tooltipOpts.showAll;
3673
3689
  const headOverflow = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(showHeaderOverflow) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
@@ -3696,16 +3712,11 @@ function renderTitleContent(h, params, content) {
3696
3712
  }
3697
3713
  };
3698
3714
  }
3699
- return [type === 'html' && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(content) ? h('span', {
3700
- class: 'vxe-cell--title',
3701
- domProps: {
3702
- innerHTML: content
3703
- },
3704
- on: ons
3705
- }) : h('span', {
3715
+ const titleVN = getRenderDefaultColumnTitle(h, column, content);
3716
+ return [h('span', {
3706
3717
  class: 'vxe-cell--title',
3707
- on: ons
3708
- }, getSlotVNs(content))];
3718
+ ...ons
3719
+ }, isRowGroupStatus && column.aggFunc && $table.getPivotTableAggregateRenderColTitles ? $table.getPivotTableAggregateRenderColTitles(h, column, titleVN) : [titleVN])];
3709
3720
  }
3710
3721
  function getFooterContent(h, params) {
3711
3722
  const {
@@ -15562,12 +15573,26 @@ const Methods = {
15562
15573
  aggregateConfig,
15563
15574
  rowGroupConfig
15564
15575
  } = props;
15576
+ const aggregateOpts = $xeTable.computeAggregateOpts;
15577
+ const {
15578
+ maxGroupSize
15579
+ } = aggregateOpts;
15565
15580
  if (!(aggregateConfig || rowGroupConfig)) {
15566
15581
  errLog('vxe.error.reqProp', ['aggregate-config']);
15567
15582
  return $xeTable.$nextTick();
15568
15583
  }
15569
- if (fieldOrColumns) {
15570
- handleUpdateRowGroup($xeTable, (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(fieldOrColumns) ? fieldOrColumns : [fieldOrColumns]).map(fieldOrColumn => {
15584
+ const confList = fieldOrColumns ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(fieldOrColumns) ? fieldOrColumns : [fieldOrColumns] : [];
15585
+ if (maxGroupSize && confList.length > maxGroupSize) {
15586
+ if (core_.VxeUI.modal) {
15587
+ core_.VxeUI.modal.message({
15588
+ status: 'error',
15589
+ content: methods_getI18n('vxe.table.maxGroupCol', [maxGroupSize])
15590
+ });
15591
+ }
15592
+ return $xeTable.$nextTick();
15593
+ }
15594
+ if (confList.length) {
15595
+ handleUpdateRowGroup($xeTable, confList.map(fieldOrColumn => {
15571
15596
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(fieldOrColumn) ? fieldOrColumn : fieldOrColumn.field;
15572
15597
  }));
15573
15598
  return loadTableData($xeTable, internalData.tableSynchData, true);
@@ -17546,6 +17571,7 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
17546
17571
  $xeTable.triggerCellDblclickEvent(evnt, cellParams);
17547
17572
  };
17548
17573
  let isMergeCell = false;
17574
+ let mergeColspan = 1;
17549
17575
  let mergeRowspan = 1;
17550
17576
  // 合并行或列
17551
17577
  if (mergeBodyFlag && mergeBodyList.length) {
@@ -17565,6 +17591,7 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
17565
17591
  }
17566
17592
  if (colspan > 1) {
17567
17593
  isMergeCell = true;
17594
+ mergeColspan = colspan;
17568
17595
  tdAttrs.colspan = colspan;
17569
17596
  }
17570
17597
  }
@@ -17584,6 +17611,7 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
17584
17611
  }
17585
17612
  if (colspan > 1) {
17586
17613
  isMergeCell = true;
17614
+ mergeColspan = colspan;
17587
17615
  tdAttrs.colspan = colspan;
17588
17616
  }
17589
17617
  }
@@ -17622,16 +17650,16 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
17622
17650
  }
17623
17651
  const tcStyle = {};
17624
17652
  if (hasEllipsis && resizeWidthFlag) {
17625
- let tsColspan = tdAttrs.colspan || 0;
17626
- if (tsColspan > 1) {
17627
- for (let index = 1; index < tsColspan; index++) {
17653
+ let mergeColWidth = 0;
17654
+ if (mergeColspan > 1) {
17655
+ for (let index = 1; index < mergeColspan; index++) {
17628
17656
  const nextColumn = visibleColumn[columnIndex + index];
17629
17657
  if (nextColumn) {
17630
- tsColspan += nextColumn.renderWidth;
17658
+ mergeColWidth += nextColumn.renderWidth;
17631
17659
  }
17632
17660
  }
17633
17661
  }
17634
- tcStyle.width = `${column.renderWidth - cellOffsetWidth * tsColspan}px`;
17662
+ tcStyle.width = `${column.renderWidth + mergeColWidth - cellOffsetWidth}px`;
17635
17663
  }
17636
17664
  if (scrollYLoad || hasEllipsis || isCsHeight || isRsHeight) {
17637
17665
  tcStyle.height = `${cellHeight}px`;
@@ -19878,6 +19906,9 @@ const renderPopupPanel = (h, $xeTableCustomPanel) => {
19878
19906
  customStore
19879
19907
  } = props;
19880
19908
  const {
19909
+ treeConfig,
19910
+ rowGroupConfig,
19911
+ aggregateConfig,
19881
19912
  resizable: allResizable
19882
19913
  } = tableProps;
19883
19914
  const {
@@ -20124,7 +20155,11 @@ const renderPopupPanel = (h, $xeTableCustomPanel) => {
20124
20155
  }
20125
20156
  }, trVNs)])]), bottomSlot ? h('div', {
20126
20157
  class: 'vxe-table-custom-popup--table-bottom'
20127
- }, $xeTable.callSlot(bottomSlot, params, h)) : panel_renderEmptyElement($xeTable), renderDragTip(h, _vm)])]);
20158
+ }, $xeTable.callSlot(bottomSlot, params, h)) : panel_renderEmptyElement($xeTable), renderDragTip(h, _vm)]), !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel ? h($xeTable.getPivotTableAggregatePopupPanel(), {
20159
+ props: {
20160
+ customStore
20161
+ }
20162
+ }) : panel_renderEmptyElement($xeTable)]);
20128
20163
  },
20129
20164
  footer: () => {
20130
20165
  if (footerSlot) {
@@ -33785,7 +33820,7 @@ const Toolbar = VxeToolbar;
33785
33820
  cstmDragTarget: '移动:{0}',
33786
33821
  setting: {
33787
33822
  colSort: '排序',
33788
- sortHelpTip: '点击并拖动图标可以调整列的排序',
33823
+ sortHelpTip: '点击并拖动图标可以调整顺序',
33789
33824
  colTitle: '列标题',
33790
33825
  colResizable: '列宽(像素)',
33791
33826
  colVisible: '是否显示',
@@ -34212,7 +34247,8 @@ const Toolbar = VxeToolbar;
34212
34247
  values: '值',
34213
34248
  groupPlaceholder: '拖至此处进行分组',
34214
34249
  valuesPlaceholder: '拖至此处进行聚合',
34215
- dragExistCol: '该列已存在'
34250
+ dragExistCol: '该列已存在',
34251
+ sortHelpTip: '点击并拖动图标可以调整顺序'
34216
34252
  },
34217
34253
  aggFuncs: {
34218
34254
  sum: '求和',