vxe-table 4.14.1 → 4.14.3

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 (165) hide show
  1. package/README.md +2 -2
  2. package/es/grid/src/grid.js +1 -1
  3. package/es/index.css +1 -1
  4. package/es/index.min.css +1 -1
  5. package/es/locale/lang/ar-EG.js +19 -1
  6. package/es/locale/lang/de-DE.js +19 -1
  7. package/es/locale/lang/en-US.js +20 -2
  8. package/es/locale/lang/es-ES.js +19 -1
  9. package/es/locale/lang/fr-FR.js +19 -1
  10. package/es/locale/lang/hu-HU.js +19 -1
  11. package/es/locale/lang/hy-AM.js +18 -0
  12. package/es/locale/lang/id-ID.js +19 -1
  13. package/es/locale/lang/it-IT.js +19 -1
  14. package/es/locale/lang/ja-JP.js +19 -1
  15. package/es/locale/lang/ko-KR.js +19 -1
  16. package/es/locale/lang/ms-MY.js +19 -1
  17. package/es/locale/lang/nb-NO.js +19 -1
  18. package/es/locale/lang/pt-BR.js +19 -1
  19. package/es/locale/lang/ru-RU.js +19 -1
  20. package/es/locale/lang/th-TH.js +19 -1
  21. package/es/locale/lang/ug-CN.js +19 -1
  22. package/es/locale/lang/uk-UA.js +19 -1
  23. package/es/locale/lang/uz-UZ.js +19 -1
  24. package/es/locale/lang/vi-VN.js +19 -1
  25. package/es/locale/lang/zh-CHT.js +19 -1
  26. package/es/locale/lang/zh-CN.js +18 -0
  27. package/es/style.css +1 -1
  28. package/es/style.min.css +1 -1
  29. package/es/table/module/filter/panel.js +5 -1
  30. package/es/table/src/body.js +4 -7
  31. package/es/table/src/table.js +14 -4
  32. package/es/table/style.css +7 -1
  33. package/es/table/style.min.css +1 -1
  34. package/es/ui/index.js +2 -2
  35. package/es/ui/src/log.js +1 -1
  36. package/es/vxe-table/style.css +7 -1
  37. package/es/vxe-table/style.min.css +1 -1
  38. package/lib/grid/src/grid.js +1 -1
  39. package/lib/grid/src/grid.min.js +1 -1
  40. package/lib/index.css +1 -1
  41. package/lib/index.min.css +1 -1
  42. package/lib/index.umd.js +36 -16
  43. package/lib/index.umd.min.js +1 -1
  44. package/lib/locale/lang/ar-EG.js +19 -1
  45. package/lib/locale/lang/ar-EG.min.js +1 -1
  46. package/lib/locale/lang/ar-EG.umd.js +19 -1
  47. package/lib/locale/lang/de-DE.js +19 -1
  48. package/lib/locale/lang/de-DE.min.js +1 -1
  49. package/lib/locale/lang/de-DE.umd.js +19 -1
  50. package/lib/locale/lang/en-US.js +20 -2
  51. package/lib/locale/lang/en-US.min.js +1 -1
  52. package/lib/locale/lang/en-US.umd.js +20 -2
  53. package/lib/locale/lang/es-ES.js +19 -1
  54. package/lib/locale/lang/es-ES.min.js +1 -1
  55. package/lib/locale/lang/es-ES.umd.js +19 -1
  56. package/lib/locale/lang/fr-FR.js +19 -1
  57. package/lib/locale/lang/fr-FR.min.js +1 -1
  58. package/lib/locale/lang/fr-FR.umd.js +19 -1
  59. package/lib/locale/lang/hu-HU.js +19 -1
  60. package/lib/locale/lang/hu-HU.min.js +1 -1
  61. package/lib/locale/lang/hu-HU.umd.js +19 -1
  62. package/lib/locale/lang/hy-AM.js +18 -0
  63. package/lib/locale/lang/hy-AM.min.js +1 -1
  64. package/lib/locale/lang/hy-AM.umd.js +18 -0
  65. package/lib/locale/lang/id-ID.js +19 -1
  66. package/lib/locale/lang/id-ID.min.js +1 -1
  67. package/lib/locale/lang/id-ID.umd.js +19 -1
  68. package/lib/locale/lang/it-IT.js +19 -1
  69. package/lib/locale/lang/it-IT.min.js +1 -1
  70. package/lib/locale/lang/it-IT.umd.js +19 -1
  71. package/lib/locale/lang/ja-JP.js +19 -1
  72. package/lib/locale/lang/ja-JP.min.js +1 -1
  73. package/lib/locale/lang/ja-JP.umd.js +19 -1
  74. package/lib/locale/lang/ko-KR.js +19 -1
  75. package/lib/locale/lang/ko-KR.min.js +1 -1
  76. package/lib/locale/lang/ko-KR.umd.js +19 -1
  77. package/lib/locale/lang/ms-MY.js +19 -1
  78. package/lib/locale/lang/ms-MY.min.js +1 -1
  79. package/lib/locale/lang/ms-MY.umd.js +19 -1
  80. package/lib/locale/lang/nb-NO.js +19 -1
  81. package/lib/locale/lang/nb-NO.min.js +1 -1
  82. package/lib/locale/lang/nb-NO.umd.js +19 -1
  83. package/lib/locale/lang/pt-BR.js +19 -1
  84. package/lib/locale/lang/pt-BR.min.js +1 -1
  85. package/lib/locale/lang/pt-BR.umd.js +19 -1
  86. package/lib/locale/lang/ru-RU.js +19 -1
  87. package/lib/locale/lang/ru-RU.min.js +1 -1
  88. package/lib/locale/lang/ru-RU.umd.js +19 -1
  89. package/lib/locale/lang/th-TH.js +19 -1
  90. package/lib/locale/lang/th-TH.min.js +1 -1
  91. package/lib/locale/lang/th-TH.umd.js +19 -1
  92. package/lib/locale/lang/ug-CN.js +19 -1
  93. package/lib/locale/lang/ug-CN.min.js +1 -1
  94. package/lib/locale/lang/ug-CN.umd.js +19 -1
  95. package/lib/locale/lang/uk-UA.js +19 -1
  96. package/lib/locale/lang/uk-UA.min.js +1 -1
  97. package/lib/locale/lang/uk-UA.umd.js +19 -1
  98. package/lib/locale/lang/uz-UZ.js +19 -1
  99. package/lib/locale/lang/uz-UZ.min.js +1 -1
  100. package/lib/locale/lang/uz-UZ.umd.js +19 -1
  101. package/lib/locale/lang/vi-VN.js +19 -1
  102. package/lib/locale/lang/vi-VN.min.js +1 -1
  103. package/lib/locale/lang/vi-VN.umd.js +19 -1
  104. package/lib/locale/lang/zh-CHT.js +19 -1
  105. package/lib/locale/lang/zh-CHT.min.js +1 -1
  106. package/lib/locale/lang/zh-CHT.umd.js +19 -1
  107. package/lib/locale/lang/zh-CN.js +18 -0
  108. package/lib/locale/lang/zh-CN.min.js +1 -1
  109. package/lib/locale/lang/zh-CN.umd.js +18 -0
  110. package/lib/style.css +1 -1
  111. package/lib/style.min.css +1 -1
  112. package/lib/table/module/filter/panel.js +5 -1
  113. package/lib/table/module/filter/panel.min.js +1 -1
  114. package/lib/table/src/body.js +4 -6
  115. package/lib/table/src/body.min.js +1 -1
  116. package/lib/table/src/table.js +5 -5
  117. package/lib/table/src/table.min.js +1 -1
  118. package/lib/table/style/style.css +7 -1
  119. package/lib/table/style/style.min.css +1 -1
  120. package/lib/ui/index.js +2 -2
  121. package/lib/ui/index.min.js +1 -1
  122. package/lib/ui/src/log.js +1 -1
  123. package/lib/ui/src/log.min.js +1 -1
  124. package/lib/vxe-table/style/style.css +7 -1
  125. package/lib/vxe-table/style/style.min.css +1 -1
  126. package/package.json +1 -1
  127. package/packages/grid/src/grid.ts +4 -4
  128. package/packages/locale/lang/ar-EG.ts +19 -1
  129. package/packages/locale/lang/de-DE.ts +19 -1
  130. package/packages/locale/lang/en-US.ts +20 -2
  131. package/packages/locale/lang/es-ES.ts +19 -1
  132. package/packages/locale/lang/fr-FR.ts +19 -1
  133. package/packages/locale/lang/hu-HU.ts +19 -1
  134. package/packages/locale/lang/hy-AM.ts +18 -0
  135. package/packages/locale/lang/id-ID.ts +19 -1
  136. package/packages/locale/lang/it-IT.ts +19 -1
  137. package/packages/locale/lang/ja-JP.ts +19 -1
  138. package/packages/locale/lang/ko-KR.ts +19 -1
  139. package/packages/locale/lang/ms-MY.ts +19 -1
  140. package/packages/locale/lang/nb-NO.ts +19 -1
  141. package/packages/locale/lang/pt-BR.ts +19 -1
  142. package/packages/locale/lang/ru-RU.ts +19 -1
  143. package/packages/locale/lang/th-TH.ts +19 -1
  144. package/packages/locale/lang/ug-CN.ts +19 -1
  145. package/packages/locale/lang/uk-UA.ts +19 -1
  146. package/packages/locale/lang/uz-UZ.ts +19 -1
  147. package/packages/locale/lang/vi-VN.ts +19 -1
  148. package/packages/locale/lang/zh-CHT.ts +19 -1
  149. package/packages/locale/lang/zh-CN.ts +18 -0
  150. package/packages/table/module/custom/panel.ts +6 -6
  151. package/packages/table/module/export/export-panel.ts +5 -6
  152. package/packages/table/module/export/import-panel.ts +3 -4
  153. package/packages/table/module/filter/panel.ts +5 -1
  154. package/packages/table/src/body.ts +4 -9
  155. package/packages/table/src/table.ts +16 -7
  156. package/packages/toolbar/src/toolbar.ts +4 -4
  157. package/packages/ui/index.ts +1 -1
  158. package/styles/components/table.scss +7 -1
  159. package/styles/theme/base.scss +1 -1
  160. /package/es/{iconfont.1752051052938.ttf → iconfont.1752473553949.ttf} +0 -0
  161. /package/es/{iconfont.1752051052938.woff → iconfont.1752473553949.woff} +0 -0
  162. /package/es/{iconfont.1752051052938.woff2 → iconfont.1752473553949.woff2} +0 -0
  163. /package/lib/{iconfont.1752051052938.ttf → iconfont.1752473553949.ttf} +0 -0
  164. /package/lib/{iconfont.1752051052938.woff → iconfont.1752473553949.woff} +0 -0
  165. /package/lib/{iconfont.1752051052938.woff2 → iconfont.1752473553949.woff2} +0 -0
@@ -217,7 +217,7 @@ export default defineVxeComponent({
217
217
  if (spanRest) {
218
218
  const { rowspan, colspan } = spanRest;
219
219
  if (!rowspan || !colspan) {
220
- return null;
220
+ return renderEmptyElement($xeTable);
221
221
  }
222
222
  if (rowspan > 1) {
223
223
  isMergeCell = true;
@@ -235,7 +235,7 @@ export default defineVxeComponent({
235
235
  // 自定义合并行或列的方法
236
236
  const { rowspan = 1, colspan = 1 } = spanMethod(cellParams) || {};
237
237
  if (!rowspan || !colspan) {
238
- return null;
238
+ return renderEmptyElement($xeTable);
239
239
  }
240
240
  if (rowspan > 1) {
241
241
  isMergeCell = true;
@@ -365,11 +365,8 @@ export default defineVxeComponent({
365
365
  }
366
366
  }
367
367
  let showAreaRowStatus = false;
368
- if (mouseConfig && mouseOpts.area && selectCellToRow) {
369
- if ((!_columnIndex && selectCellToRow === true) ||
370
- (selectCellToRow === column.field)) {
371
- showAreaRowStatus = true;
372
- }
368
+ if (mouseConfig && mouseOpts.area && !_columnIndex && selectCellToRow) {
369
+ showAreaRowStatus = true;
373
370
  }
374
371
  if (!fixedHiddenColumn && showResizable && isAllColumnDrag) {
375
372
  tdVNs.push(h('div', {
@@ -6096,15 +6096,17 @@ export default defineVxeComponent({
6096
6096
  * 手动清空展开行状态,数据会恢复成未展开的状态
6097
6097
  */
6098
6098
  clearRowExpand() {
6099
- const { tableFullData } = internalData;
6099
+ const { tableFullData, scrollYStore } = internalData;
6100
6100
  const expandOpts = computeExpandOpts.value;
6101
6101
  const { reserve } = expandOpts;
6102
6102
  const expList = $xeTable.getRowExpandRecords();
6103
6103
  internalData.rowExpandedMaps = {};
6104
- reactData.rowExpandedFlag++;
6105
6104
  if (reserve) {
6106
6105
  tableFullData.forEach((row) => handleRowExpandReserve(row, false));
6107
6106
  }
6107
+ reactData.rowExpandedFlag++;
6108
+ scrollYStore.startIndex = 0;
6109
+ scrollYStore.endIndex = 1;
6108
6110
  return nextTick().then(() => {
6109
6111
  if (expList.length) {
6110
6112
  return handleLazyRecalculate(true, true, true);
@@ -8284,7 +8286,7 @@ export default defineVxeComponent({
8284
8286
  const treeOpts = computeTreeOpts.value;
8285
8287
  const childrenField = treeOpts.children || treeOpts.childrenField;
8286
8288
  const checkboxOpts = computeCheckboxOpts.value;
8287
- const { checkField, checkStrictly, checkMethod } = checkboxOpts;
8289
+ const { checkField, indeterminateField, checkStrictly, checkMethod } = checkboxOpts;
8288
8290
  if (checkStrictly) {
8289
8291
  return;
8290
8292
  }
@@ -8316,6 +8318,11 @@ export default defineVxeComponent({
8316
8318
  childRowMaps[rowid] = 1;
8317
8319
  childRowList.unshift([row, rowid, childList]);
8318
8320
  }
8321
+ else {
8322
+ if (indeterminateField) {
8323
+ XEUtils.set(row, indeterminateField, false);
8324
+ }
8325
+ }
8319
8326
  }, { children: transform ? mapChildrenField : childrenField });
8320
8327
  }
8321
8328
  childRowList.forEach(vals => {
@@ -8325,7 +8332,7 @@ export default defineVxeComponent({
8325
8332
  let sLen = 0; // 已选
8326
8333
  let hLen = 0; // 半选
8327
8334
  let vLen = 0; // 有效子行
8328
- const cLen = childList.length; // 有效子行
8335
+ const cLen = childList.length; // 子行
8329
8336
  childList.forEach(checkMethod
8330
8337
  ? (item) => {
8331
8338
  const childRowid = handleGetRowId(item);
@@ -8385,6 +8392,9 @@ export default defineVxeComponent({
8385
8392
  if (checkField) {
8386
8393
  XEUtils.set(row, checkField, isSelected);
8387
8394
  }
8395
+ if (indeterminateField) {
8396
+ XEUtils.set(row, indeterminateField, halfSelect);
8397
+ }
8388
8398
  if (isSelected) {
8389
8399
  if (!checkField) {
8390
8400
  selectCheckboxMaps[rowid] = row;
@@ -2105,7 +2105,13 @@
2105
2105
  }
2106
2106
  .vxe-table--cell-area .vxe-table--cell-col-status-area,
2107
2107
  .vxe-table--cell-area .vxe-table--cell-row-status-area {
2108
- background-color: var(--vxe-ui-table-checkbox-range-background-color);
2108
+ background-color: var(--vxe-ui-table-cell-area-status-background-color);
2109
+ }
2110
+ .vxe-table--cell-area .vxe-table--cell-col-status-area {
2111
+ border-bottom: var(--vxe-ui-table-cell-area-border-width) solid var(--vxe-ui-table-cell-area-border-color);
2112
+ }
2113
+ .vxe-table--cell-area .vxe-table--cell-row-status-area {
2114
+ border-right: var(--vxe-ui-table-cell-area-border-width) solid var(--vxe-ui-table-cell-area-border-color);
2109
2115
  }
2110
2116
 
2111
2117
  @keyframes moveCopyCellBorder {