vxe-table 4.19.14 → 4.19.16

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 (161) hide show
  1. package/dist/all.esm.js +139 -35
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/index.css +1 -1
  5. package/es/index.min.css +1 -1
  6. package/es/locale/lang/ar-EG.js +7 -0
  7. package/es/locale/lang/de-DE.js +7 -0
  8. package/es/locale/lang/en-US.js +7 -0
  9. package/es/locale/lang/es-ES.js +7 -0
  10. package/es/locale/lang/fr-FR.js +7 -0
  11. package/es/locale/lang/hu-HU.js +7 -0
  12. package/es/locale/lang/hy-AM.js +7 -0
  13. package/es/locale/lang/id-ID.js +7 -0
  14. package/es/locale/lang/it-IT.js +7 -0
  15. package/es/locale/lang/ja-JP.js +7 -0
  16. package/es/locale/lang/ko-KR.js +7 -0
  17. package/es/locale/lang/ms-MY.js +7 -0
  18. package/es/locale/lang/nb-NO.js +7 -0
  19. package/es/locale/lang/pt-BR.js +7 -0
  20. package/es/locale/lang/ru-RU.js +7 -0
  21. package/es/locale/lang/th-TH.js +7 -0
  22. package/es/locale/lang/ug-CN.js +7 -0
  23. package/es/locale/lang/uk-UA.js +7 -0
  24. package/es/locale/lang/uz-UZ.js +7 -0
  25. package/es/locale/lang/vi-VN.js +7 -0
  26. package/es/locale/lang/zh-CHT.js +7 -0
  27. package/es/locale/lang/zh-CN.js +7 -0
  28. package/es/style.css +1 -1
  29. package/es/style.min.css +1 -1
  30. package/es/table/module/export/hook.js +22 -3
  31. package/es/table/render/index.js +46 -18
  32. package/es/table/src/header.js +6 -3
  33. package/es/table/src/table.js +56 -9
  34. package/es/table/style.css +10 -5
  35. package/es/table/style.min.css +1 -1
  36. package/es/ui/index.js +1 -1
  37. package/es/ui/src/log.js +1 -1
  38. package/es/vxe-table/style.css +10 -5
  39. package/es/vxe-table/style.min.css +1 -1
  40. package/lib/index.css +1 -1
  41. package/lib/index.min.css +1 -1
  42. package/lib/index.umd.js +113 -30
  43. package/lib/index.umd.min.js +1 -1
  44. package/lib/locale/lang/ar-EG.js +7 -0
  45. package/lib/locale/lang/ar-EG.min.js +1 -1
  46. package/lib/locale/lang/ar-EG.umd.js +7 -0
  47. package/lib/locale/lang/de-DE.js +7 -0
  48. package/lib/locale/lang/de-DE.min.js +1 -1
  49. package/lib/locale/lang/de-DE.umd.js +7 -0
  50. package/lib/locale/lang/en-US.js +7 -0
  51. package/lib/locale/lang/en-US.min.js +1 -1
  52. package/lib/locale/lang/en-US.umd.js +7 -0
  53. package/lib/locale/lang/es-ES.js +7 -0
  54. package/lib/locale/lang/es-ES.min.js +1 -1
  55. package/lib/locale/lang/es-ES.umd.js +7 -0
  56. package/lib/locale/lang/fr-FR.js +7 -0
  57. package/lib/locale/lang/fr-FR.min.js +1 -1
  58. package/lib/locale/lang/fr-FR.umd.js +7 -0
  59. package/lib/locale/lang/hu-HU.js +7 -0
  60. package/lib/locale/lang/hu-HU.min.js +1 -1
  61. package/lib/locale/lang/hu-HU.umd.js +7 -0
  62. package/lib/locale/lang/hy-AM.js +7 -0
  63. package/lib/locale/lang/hy-AM.min.js +1 -1
  64. package/lib/locale/lang/hy-AM.umd.js +7 -0
  65. package/lib/locale/lang/id-ID.js +7 -0
  66. package/lib/locale/lang/id-ID.min.js +1 -1
  67. package/lib/locale/lang/id-ID.umd.js +7 -0
  68. package/lib/locale/lang/it-IT.js +7 -0
  69. package/lib/locale/lang/it-IT.min.js +1 -1
  70. package/lib/locale/lang/it-IT.umd.js +7 -0
  71. package/lib/locale/lang/ja-JP.js +7 -0
  72. package/lib/locale/lang/ja-JP.min.js +1 -1
  73. package/lib/locale/lang/ja-JP.umd.js +7 -0
  74. package/lib/locale/lang/ko-KR.js +7 -0
  75. package/lib/locale/lang/ko-KR.min.js +1 -1
  76. package/lib/locale/lang/ko-KR.umd.js +7 -0
  77. package/lib/locale/lang/ms-MY.js +7 -0
  78. package/lib/locale/lang/ms-MY.min.js +1 -1
  79. package/lib/locale/lang/ms-MY.umd.js +7 -0
  80. package/lib/locale/lang/nb-NO.js +7 -0
  81. package/lib/locale/lang/nb-NO.min.js +1 -1
  82. package/lib/locale/lang/nb-NO.umd.js +7 -0
  83. package/lib/locale/lang/pt-BR.js +7 -0
  84. package/lib/locale/lang/pt-BR.min.js +1 -1
  85. package/lib/locale/lang/pt-BR.umd.js +7 -0
  86. package/lib/locale/lang/ru-RU.js +7 -0
  87. package/lib/locale/lang/ru-RU.min.js +1 -1
  88. package/lib/locale/lang/ru-RU.umd.js +7 -0
  89. package/lib/locale/lang/th-TH.js +7 -0
  90. package/lib/locale/lang/th-TH.min.js +1 -1
  91. package/lib/locale/lang/th-TH.umd.js +7 -0
  92. package/lib/locale/lang/ug-CN.js +7 -0
  93. package/lib/locale/lang/ug-CN.min.js +1 -1
  94. package/lib/locale/lang/ug-CN.umd.js +7 -0
  95. package/lib/locale/lang/uk-UA.js +7 -0
  96. package/lib/locale/lang/uk-UA.min.js +1 -1
  97. package/lib/locale/lang/uk-UA.umd.js +7 -0
  98. package/lib/locale/lang/uz-UZ.js +7 -0
  99. package/lib/locale/lang/uz-UZ.min.js +1 -1
  100. package/lib/locale/lang/uz-UZ.umd.js +7 -0
  101. package/lib/locale/lang/vi-VN.js +7 -0
  102. package/lib/locale/lang/vi-VN.min.js +1 -1
  103. package/lib/locale/lang/vi-VN.umd.js +7 -0
  104. package/lib/locale/lang/zh-CHT.js +7 -0
  105. package/lib/locale/lang/zh-CHT.min.js +1 -1
  106. package/lib/locale/lang/zh-CHT.umd.js +7 -0
  107. package/lib/locale/lang/zh-CN.js +7 -0
  108. package/lib/locale/lang/zh-CN.min.js +1 -1
  109. package/lib/locale/lang/zh-CN.umd.js +7 -0
  110. package/lib/style.css +1 -1
  111. package/lib/style.min.css +1 -1
  112. package/lib/table/module/export/hook.js +26 -3
  113. package/lib/table/module/export/hook.min.js +1 -1
  114. package/lib/table/render/index.js +62 -18
  115. package/lib/table/render/index.min.js +1 -1
  116. package/lib/table/src/header.js +7 -3
  117. package/lib/table/src/header.min.js +1 -1
  118. package/lib/table/src/table.js +9 -4
  119. package/lib/table/src/table.min.js +1 -1
  120. package/lib/table/style/style.css +10 -5
  121. package/lib/table/style/style.min.css +1 -1
  122. package/lib/ui/index.js +1 -1
  123. package/lib/ui/index.min.js +1 -1
  124. package/lib/ui/src/log.js +1 -1
  125. package/lib/ui/src/log.min.js +1 -1
  126. package/lib/vxe-table/style/style.css +10 -5
  127. package/lib/vxe-table/style/style.min.css +1 -1
  128. package/package.json +2 -2
  129. package/packages/locale/lang/ar-EG.ts +7 -0
  130. package/packages/locale/lang/de-DE.ts +7 -0
  131. package/packages/locale/lang/en-US.ts +7 -0
  132. package/packages/locale/lang/es-ES.ts +7 -0
  133. package/packages/locale/lang/fr-FR.ts +7 -0
  134. package/packages/locale/lang/hu-HU.ts +7 -0
  135. package/packages/locale/lang/hy-AM.ts +7 -0
  136. package/packages/locale/lang/id-ID.ts +7 -0
  137. package/packages/locale/lang/it-IT.ts +7 -0
  138. package/packages/locale/lang/ja-JP.ts +7 -0
  139. package/packages/locale/lang/ko-KR.ts +7 -0
  140. package/packages/locale/lang/ms-MY.ts +7 -0
  141. package/packages/locale/lang/nb-NO.ts +7 -0
  142. package/packages/locale/lang/pt-BR.ts +7 -0
  143. package/packages/locale/lang/ru-RU.ts +7 -0
  144. package/packages/locale/lang/th-TH.ts +7 -0
  145. package/packages/locale/lang/ug-CN.ts +7 -0
  146. package/packages/locale/lang/uk-UA.ts +7 -0
  147. package/packages/locale/lang/uz-UZ.ts +7 -0
  148. package/packages/locale/lang/vi-VN.ts +7 -0
  149. package/packages/locale/lang/zh-CHT.ts +7 -0
  150. package/packages/locale/lang/zh-CN.ts +7 -0
  151. package/packages/table/module/export/hook.ts +23 -4
  152. package/packages/table/render/index.ts +46 -18
  153. package/packages/table/src/header.ts +6 -3
  154. package/packages/table/src/table.ts +57 -10
  155. package/styles/components/table.scss +8 -4
  156. /package/es/{iconfont.1781257692019.ttf → iconfont.1781753820219.ttf} +0 -0
  157. /package/es/{iconfont.1781257692019.woff → iconfont.1781753820219.woff} +0 -0
  158. /package/es/{iconfont.1781257692019.woff2 → iconfont.1781753820219.woff2} +0 -0
  159. /package/lib/{iconfont.1781257692019.ttf → iconfont.1781753820219.ttf} +0 -0
  160. /package/lib/{iconfont.1781257692019.woff → iconfont.1781753820219.woff} +0 -0
  161. /package/lib/{iconfont.1781257692019.woff2 → iconfont.1781753820219.woff2} +0 -0
package/dist/all.esm.js CHANGED
@@ -44,7 +44,7 @@ function eqEmptyValue(cellValue) {
44
44
  return cellValue === '' || XEUtils.eqNull(cellValue);
45
45
  }
46
46
 
47
- const version$1 = "4.19.14";
47
+ const version$1 = "4.19.16";
48
48
  VxeUI.version = version$1;
49
49
  VxeUI.tableVersion = version$1;
50
50
  VxeUI.setConfig({
@@ -743,7 +743,7 @@ function wheelScrollTopTo(diffNum, cb) {
743
743
  }
744
744
 
745
745
  const { log } = VxeUI;
746
- const version = `table v${"4.19.14"}`;
746
+ const version = `table v${"4.19.16"}`;
747
747
  const warnLog = log.create('warn', version);
748
748
  const errLog = log.create('error', version);
749
749
 
@@ -5061,6 +5061,8 @@ var TableHeaderComponent = defineVxeComponent({
5061
5061
  const cellOpts = computeCellOpts.value;
5062
5062
  const defaultRowHeight = computeDefaultRowHeight.value;
5063
5063
  const headerCellOpts = computeHeaderCellOpts.value;
5064
+ const floatingFilterOpts = computeFloatingFilterOpts.value;
5065
+ const { cellClassName } = floatingFilterOpts;
5064
5066
  const currCellHeight = getCalcHeight(headerCellOpts.height) || defaultRowHeight;
5065
5067
  return cols.map((column, $columnIndex) => {
5066
5068
  const { type, showHeaderOverflow, headerAlign, align, filters, editRender, cellRender, floatingFilters, filterRender, slots } = column;
@@ -5114,7 +5116,7 @@ var TableHeaderComponent = defineVxeComponent({
5114
5116
  else {
5115
5117
  tcStyle.minHeight = `${currCellHeight}px`;
5116
5118
  }
5117
- return h('th', Object.assign({ class: ['vxe-table--column vxe-header--column', colid, fixedHiddenColumn ? 'fixed--hidden' : 'fixed--visible', {
5119
+ return h('th', Object.assign({ class: ['vxe-table--column vxe-header--column is--floating-filters', colid, fixedHiddenColumn ? 'fixed--hidden' : 'fixed--visible', {
5118
5120
  [`col--${headAlign}`]: headAlign,
5119
5121
  [`col--${type}`]: type,
5120
5122
  'col--last': isLastColumn,
@@ -5127,7 +5129,7 @@ var TableHeaderComponent = defineVxeComponent({
5127
5129
  }
5128
5130
  ], key: colid }, thAttrs), [
5129
5131
  h('div', {
5130
- class: ['vxe-cell', {
5132
+ class: ['vxe-cell', '' + (cellClassName || ''), {
5131
5133
  'c--title': showTitle,
5132
5134
  'c--tooltip': showTooltip,
5133
5135
  'c--ellipsis': showEllipsis
@@ -5167,7 +5169,8 @@ var TableHeaderComponent = defineVxeComponent({
5167
5169
  rowVNs.push(h('tr', {
5168
5170
  key: 'ff',
5169
5171
  class: [
5170
- 'vxe-header--row'
5172
+ 'vxe-header--row is--floating-filters',
5173
+ '' + (floatingFilterOpts.rowClassName || '')
5171
5174
  ]
5172
5175
  }, renderFilterRows(isOptimizeMode, renderColumnList)));
5173
5176
  }
@@ -10867,7 +10870,7 @@ hooks$4.add('tableExportModule', {
10867
10870
  const toHtml = (opts, columns, datas) => {
10868
10871
  const { id, border, treeConfig, headerAlign: allHeaderAlign, align: allAlign, footerAlign: allFooterAlign, showOverflow: allColumnOverflow, showHeaderOverflow: allColumnHeaderOverflow } = props;
10869
10872
  const { isAllSelected, isIndeterminate } = reactData;
10870
- const { mergeBodyCellMaps } = internalData;
10873
+ const { mergeBodyCellMaps, mergeFooterCellMaps } = internalData;
10871
10874
  const treeOpts = computeTreeOpts.value;
10872
10875
  const { print: isPrint, isHeader, isFooter, isColgroup, isMerge, colgroups, original } = opts;
10873
10876
  const allCls = 'check-all';
@@ -11005,15 +11008,34 @@ hooks$4.add('tableExportModule', {
11005
11008
  const footers = getFooterData($xeTable, opts, footerTableData);
11006
11009
  if (footers.length) {
11007
11010
  tables.push('<tfoot>');
11008
- footers.forEach((row) => {
11011
+ footers.forEach((row, rIndex) => {
11009
11012
  tables.push(`<tr>${columns.map((column) => {
11010
11013
  const footAlign = column.footerAlign || column.align || allFooterAlign || allAlign;
11011
11014
  const classNames = hasEllipsis(column, 'showOverflow', allColumnOverflow) ? ['col--ellipsis'] : [];
11012
11015
  const cellValue = getFooterCellValue(opts, row, column);
11016
+ let rowSpan = 1;
11017
+ let colSpan = 1;
11018
+ if (isMerge) {
11019
+ const _rowIndex = rIndex;
11020
+ const _columnIndex = $xeTable.getVTColumnIndex(column);
11021
+ const spanRest = mergeFooterCellMaps[`${_rowIndex}:${_columnIndex}`];
11022
+ if (spanRest) {
11023
+ const { rowspan, colspan } = spanRest;
11024
+ if (!rowspan || !colspan) {
11025
+ return '';
11026
+ }
11027
+ if (rowspan > 1) {
11028
+ rowSpan = rowspan;
11029
+ }
11030
+ if (colspan > 1) {
11031
+ colSpan = colspan;
11032
+ }
11033
+ }
11034
+ }
11013
11035
  if (footAlign) {
11014
11036
  classNames.push(`col--${footAlign}`);
11015
11037
  }
11016
- return `<td class="${classNames.join(' ')}" title="${cellValue}"><div ${isPrint ? '' : `style="width: ${column.renderWidth}px"`}>${formatText(cellValue, true)}</div></td>`;
11038
+ return `<td class="${classNames.join(' ')}" rowspan="${rowSpan}" colspan="${colSpan}" title="${cellValue}"><div ${isPrint ? '' : `style="width: ${column.renderWidth}px"`}>${formatText(cellValue, true)}</div></td>`;
11017
11039
  }).join('')}</tr>`);
11018
11040
  });
11019
11041
  tables.push('</tfoot>');
@@ -14218,7 +14240,7 @@ function handleSetTreeSelectValue(renderOpts, params) {
14218
14240
  */
14219
14241
  renderer$2.mixin({
14220
14242
  input: {
14221
- tableAutoFocus: 'input',
14243
+ tableAutoFocus: true,
14222
14244
  renderTableEdit: nativeEditRender,
14223
14245
  renderTableDefault: nativeEditRender,
14224
14246
  createTableFilterOptions: defaultFilterOptions,
@@ -14226,7 +14248,7 @@ renderer$2.mixin({
14226
14248
  tableFilterDefaultMethod: handleInputFilterMethod
14227
14249
  },
14228
14250
  textarea: {
14229
- tableAutoFocus: 'textarea',
14251
+ tableAutoFocus: true,
14230
14252
  renderTableEdit: nativeEditRender
14231
14253
  },
14232
14254
  select: {
@@ -14266,7 +14288,7 @@ renderer$2.mixin({
14266
14288
  tableExportMethod: handleExportSelectMethod
14267
14289
  },
14268
14290
  VxeInput: {
14269
- tableAutoFocus: 'input',
14291
+ tableAutoFocus: true,
14270
14292
  renderTableEdit: defaultEditRender,
14271
14293
  renderTableCell(renderOpts, params) {
14272
14294
  const { props = {} } = renderOpts;
@@ -14306,7 +14328,7 @@ renderer$2.mixin({
14306
14328
  }
14307
14329
  },
14308
14330
  VxeNumberInput: {
14309
- tableAutoFocus: 'input',
14331
+ tableAutoFocus: true,
14310
14332
  renderTableEdit: defaultEditRender,
14311
14333
  renderTableCell: handleNumberCell,
14312
14334
  renderTableFooter(renderOpts, params) {
@@ -14358,7 +14380,7 @@ renderer$2.mixin({
14358
14380
  }
14359
14381
  },
14360
14382
  VxeDatePicker: {
14361
- tableAutoFocus: 'input',
14383
+ tableAutoFocus: true,
14362
14384
  renderTableEdit: defaultEditRender,
14363
14385
  renderTableCell(renderOpts, params) {
14364
14386
  const props = renderOpts.props || {};
@@ -14384,7 +14406,7 @@ renderer$2.mixin({
14384
14406
  tableFilterDefaultMethod: handleFilterMethod
14385
14407
  },
14386
14408
  VxeDateRangePicker: {
14387
- tableAutoFocus: 'input',
14409
+ tableAutoFocus: true,
14388
14410
  renderTableEdit(renderOpts, params) {
14389
14411
  const { startField, endField } = renderOpts;
14390
14412
  const { $table, row, column } = params;
@@ -14484,7 +14506,7 @@ renderer$2.mixin({
14484
14506
  }
14485
14507
  },
14486
14508
  VxeTextarea: {
14487
- tableAutoFocus: 'textarea',
14509
+ tableAutoFocus: true,
14488
14510
  renderTableDefault: defaultEditRender,
14489
14511
  renderTableEdit: defaultEditRender,
14490
14512
  renderTableCell(renderOpts, params) {
@@ -14505,7 +14527,7 @@ renderer$2.mixin({
14505
14527
  }
14506
14528
  },
14507
14529
  VxeSelect: {
14508
- tableAutoFocus: 'input',
14530
+ tableAutoFocus: true,
14509
14531
  renderTableEdit: defaultSelectEditRender,
14510
14532
  renderTableDefault: defaultSelectEditRender,
14511
14533
  renderTableCell(renderOpts, params) {
@@ -14607,7 +14629,7 @@ renderer$2.mixin({
14607
14629
  tableExportMethod: handleExportSelectMethod
14608
14630
  },
14609
14631
  VxeTreeSelect: {
14610
- tableAutoFocus: 'input',
14632
+ tableAutoFocus: true,
14611
14633
  renderTableEdit: defaultTableOrTreeSelectEditRender,
14612
14634
  renderTableCell(renderOpts, params) {
14613
14635
  const { options, optionGroups } = renderOpts;
@@ -14669,8 +14691,36 @@ renderer$2.mixin({
14669
14691
  tableCellPasteMethod: handleSetTreeSelectValue,
14670
14692
  tableExportMethod: handleExportTreeSelectMethod
14671
14693
  },
14694
+ VxeCascader: {
14695
+ tableAutoFocus: true,
14696
+ renderTableEdit: defaultTableOrTreeSelectEditRender,
14697
+ renderTableCell(renderOpts, params) {
14698
+ const { options, optionGroups } = renderOpts;
14699
+ const { $table, row, column } = params;
14700
+ const opSize = options ? options.length : null;
14701
+ const ogSize = optionGroups ? optionGroups.length : null;
14702
+ const { cellResult } = $table.effectCellData(row, column, {
14703
+ key: 'render_table_cell',
14704
+ isChanged({ oldValue, cellValue }) {
14705
+ return oldValue && oldValue[0] === cellValue && oldValue[1] === opSize && oldValue[2] === ogSize;
14706
+ },
14707
+ setValue({ cellValue }) {
14708
+ return [cellValue, opSize, ogSize];
14709
+ },
14710
+ getResult({ cellValue }) {
14711
+ return handleTreeSelectCellValue(cellValue, renderOpts);
14712
+ }
14713
+ });
14714
+ // const cellResult = getTreeSelectCellValue(renderOpts, params)
14715
+ return getCellLabelVNs(renderOpts, params, cellResult);
14716
+ },
14717
+ tableCellFormatter: handleFormatTreeSelect,
14718
+ tableCellCopyMethod: handleFormatTreeSelect,
14719
+ tableCellPasteMethod: handleSetTreeSelectValue,
14720
+ tableExportMethod: handleExportTreeSelectMethod
14721
+ },
14672
14722
  VxeTableSelect: {
14673
- tableAutoFocus: 'input',
14723
+ tableAutoFocus: true,
14674
14724
  renderTableEdit: defaultTableOrTreeSelectEditRender,
14675
14725
  renderTableCell(renderOpts, params) {
14676
14726
  const { options, optionGroups } = renderOpts;
@@ -14698,7 +14748,7 @@ renderer$2.mixin({
14698
14748
  tableExportMethod: handleExportTreeSelectMethod
14699
14749
  },
14700
14750
  VxeColorPicker: {
14701
- tableAutoFocus: 'input',
14751
+ tableAutoFocus: true,
14702
14752
  renderTableEdit(renderOpts, params) {
14703
14753
  const { row, column } = params;
14704
14754
  const { options } = renderOpts;
@@ -14723,7 +14773,7 @@ renderer$2.mixin({
14723
14773
  }
14724
14774
  },
14725
14775
  VxeIconPicker: {
14726
- tableAutoFocus: 'input',
14776
+ tableAutoFocus: true,
14727
14777
  renderTableEdit(renderOpts, params) {
14728
14778
  const { row, column } = params;
14729
14779
  const { options } = renderOpts;
@@ -14797,7 +14847,7 @@ renderer$2.mixin({
14797
14847
  },
14798
14848
  // 以下已废弃
14799
14849
  $input: {
14800
- tableAutoFocus: '.vxe-input--inner',
14850
+ tableAutoFocus: 'input',
14801
14851
  renderTableEdit: oldEditRender,
14802
14852
  renderTableCell(renderOpts, params) {
14803
14853
  var _a;
@@ -14825,7 +14875,7 @@ renderer$2.mixin({
14825
14875
  tableFilterDefaultMethod: handleInputFilterMethod
14826
14876
  },
14827
14877
  $textarea: {
14828
- tableAutoFocus: '.vxe-textarea--inner'
14878
+ tableAutoFocus: 'textarea'
14829
14879
  },
14830
14880
  $button: {
14831
14881
  renderTableDefault: oldButtonEditRender
@@ -14834,7 +14884,7 @@ renderer$2.mixin({
14834
14884
  renderTableDefault: oldButtonsEditRender
14835
14885
  },
14836
14886
  $select: {
14837
- tableAutoFocus: '.vxe-input--inner',
14887
+ tableAutoFocus: 'input',
14838
14888
  renderTableEdit: oldSelectEditRender,
14839
14889
  renderTableDefault: oldSelectEditRender,
14840
14890
  renderTableCell(renderOpts, params) {
@@ -14852,13 +14902,13 @@ renderer$2.mixin({
14852
14902
  tableExportMethod: handleExportSelectMethod
14853
14903
  },
14854
14904
  $radio: {
14855
- tableAutoFocus: '.vxe-radio--input'
14905
+ tableAutoFocus: 'input'
14856
14906
  },
14857
14907
  $checkbox: {
14858
- tableAutoFocus: '.vxe-checkbox--input'
14908
+ tableAutoFocus: 'input'
14859
14909
  },
14860
14910
  $switch: {
14861
- tableAutoFocus: '.vxe-switch--button',
14911
+ tableAutoFocus: 'button',
14862
14912
  renderTableEdit: oldEditRender,
14863
14913
  renderTableDefault: oldEditRender
14864
14914
  }
@@ -14883,8 +14933,10 @@ var VxeTableComponent = defineVxeComponent({
14883
14933
  // 使用已安装的组件,如果未安装则不渲染
14884
14934
  const VxeUILoadingComponent = VxeUI.getComponent('VxeLoading');
14885
14935
  const VxeUITooltipComponent = VxeUI.getComponent('VxeTooltip');
14936
+ const $xeModal = inject('$xeModal', null);
14886
14937
  const $xeTabs = inject('$xeTabs', null);
14887
14938
  const $xeParentTable = inject('$xeTable', null);
14939
+ const $xeSplitter = inject('$xeSplitter', null);
14888
14940
  const $xeGrid = inject('$xeGrid', null);
14889
14941
  const $xeGantt = inject('$xeGantt', null);
14890
14942
  const $xeGGWrapper = $xeGrid || $xeGantt;
@@ -15503,6 +15555,15 @@ var VxeTableComponent = defineVxeComponent({
15503
15555
  }
15504
15556
  return [];
15505
15557
  });
15558
+ const combineTabsResizeFlag = computed(() => {
15559
+ return $xeTabs ? $xeTabs.reactData.resizeFlag : null;
15560
+ });
15561
+ const combineModalResizeFlag = computed(() => {
15562
+ return $xeModal ? $xeModal.reactData.resizeFlag : null;
15563
+ });
15564
+ const combineSplitterResizeFlag = computed(() => {
15565
+ return $xeSplitter ? $xeSplitter.reactData.resizeFlag : null;
15566
+ });
15506
15567
  const refMaps = {
15507
15568
  refElem,
15508
15569
  refTooltip,
@@ -23894,11 +23955,39 @@ var VxeTableComponent = defineVxeComponent({
23894
23955
  const { tooltipStore } = reactData;
23895
23956
  const { column, row } = params;
23896
23957
  const { showAll, contentMethod } = tipOpts;
23897
- const customContent = contentMethod ? contentMethod(params) : null;
23898
- const useCustom = contentMethod && !XEUtils.eqNull(customContent);
23899
- const content = useCustom ? customContent : XEUtils.toString(column.type === 'html' ? tipOverEl.innerText : tipOverEl.textContent).trim();
23958
+ const cellText = XEUtils.toString(column.type === 'html' ? tipOverEl.innerText : tipOverEl.textContent).trim();
23900
23959
  const isOver = tipOverEl.scrollWidth > tipOverEl.clientWidth;
23901
- if (content && (showAll || useCustom || isOver)) {
23960
+ let isShow = false;
23961
+ let customContent = null;
23962
+ let content = '';
23963
+ if (contentMethod) {
23964
+ customContent = contentMethod(params);
23965
+ }
23966
+ // 是否全部展示
23967
+ if (showAll) {
23968
+ // 如果为 null 默认显示
23969
+ if (XEUtils.eqNull(customContent)) {
23970
+ isShow = true;
23971
+ content = cellText;
23972
+ }
23973
+ else if (customContent !== '' && customContent !== false) {
23974
+ // 如果为 '' | false 则不显示
23975
+ isShow = true;
23976
+ content = '' + customContent;
23977
+ }
23978
+ }
23979
+ else {
23980
+ // 如果为 null 使用默认逻辑
23981
+ if (XEUtils.eqNull(customContent)) {
23982
+ isShow = isOver;
23983
+ }
23984
+ else if (customContent !== '' && customContent !== false) {
23985
+ // 如果为 '' | false 则不显示
23986
+ isShow = true;
23987
+ }
23988
+ content = cellText;
23989
+ }
23990
+ if (isShow && content) {
23902
23991
  const tipContent = formatText(content);
23903
23992
  Object.assign(tooltipStore, {
23904
23993
  row,
@@ -28962,11 +29051,19 @@ var VxeTableComponent = defineVxeComponent({
28962
29051
  loadTableData(internalData.tableSynchData, false, true);
28963
29052
  }
28964
29053
  });
28965
- if ($xeTabs) {
28966
- watch(() => $xeTabs ? $xeTabs.reactData.resizeFlag : null, () => {
28967
- handleGlobalResizeEvent();
28968
- });
28969
- }
29054
+ const layoutReFlag = ref(0);
29055
+ watch(combineTabsResizeFlag, () => {
29056
+ layoutReFlag.value++;
29057
+ });
29058
+ watch(combineModalResizeFlag, () => {
29059
+ layoutReFlag.value++;
29060
+ });
29061
+ watch(combineSplitterResizeFlag, () => {
29062
+ layoutReFlag.value++;
29063
+ });
29064
+ watch(layoutReFlag, () => {
29065
+ handleGlobalResizeEvent();
29066
+ });
28970
29067
  handleKeyField();
28971
29068
  hooks$1.forEach((options) => {
28972
29069
  const { setupTable } = options;
@@ -32063,6 +32160,13 @@ var zhCN = {
32063
32160
  yearLabel: '{0} 年',
32064
32161
  monthLabel: '{0} 月'
32065
32162
  },
32163
+ cascader: {
32164
+ clearChecked: '清除',
32165
+ allChecked: '全选',
32166
+ total: '已选 {0} 项',
32167
+ close: '关闭',
32168
+ search: '搜索'
32169
+ },
32066
32170
  numberInput: {
32067
32171
  currencySymbol: '¥'
32068
32172
  },