vxe-table 3.16.0-beta.2 → 3.16.0-beta.4

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 (148) hide show
  1. package/README.md +2 -0
  2. package/es/locale/lang/ar-EG.js +1 -0
  3. package/es/locale/lang/de-DE.js +1 -0
  4. package/es/locale/lang/en-US.js +1 -0
  5. package/es/locale/lang/es-ES.js +1 -0
  6. package/es/locale/lang/fr-FR.js +1 -0
  7. package/es/locale/lang/hu-HU.js +1 -0
  8. package/es/locale/lang/hy-AM.js +1 -0
  9. package/es/locale/lang/id-ID.js +1 -0
  10. package/es/locale/lang/it-IT.js +1 -0
  11. package/es/locale/lang/ja-JP.js +1 -0
  12. package/es/locale/lang/ko-KR.js +1 -0
  13. package/es/locale/lang/ms-MY.js +1 -0
  14. package/es/locale/lang/nb-NO.js +1 -0
  15. package/es/locale/lang/pt-BR.js +1 -0
  16. package/es/locale/lang/ru-RU.js +1 -0
  17. package/es/locale/lang/th-TH.js +1 -0
  18. package/es/locale/lang/ug-CN.js +1 -0
  19. package/es/locale/lang/uk-UA.js +1 -0
  20. package/es/locale/lang/uz-UZ.js +1 -0
  21. package/es/locale/lang/vi-VN.js +1 -0
  22. package/es/locale/lang/zh-CHT.js +1 -0
  23. package/es/locale/lang/zh-CN.js +1 -0
  24. package/es/style.css +1 -1
  25. package/es/table/module/edit/mixin.js +31 -1
  26. package/es/table/src/body.js +1 -1
  27. package/es/table/src/footer.js +1 -1
  28. package/es/table/src/header.js +1 -1
  29. package/es/table/src/methods.js +21 -4
  30. package/es/ui/index.js +1 -1
  31. package/es/ui/src/log.js +1 -1
  32. package/lib/index.umd.js +63 -10
  33. package/lib/index.umd.min.js +1 -1
  34. package/lib/locale/lang/ar-EG.js +1 -0
  35. package/lib/locale/lang/ar-EG.min.js +1 -1
  36. package/lib/locale/lang/ar-EG.umd.js +1 -0
  37. package/lib/locale/lang/de-DE.js +1 -0
  38. package/lib/locale/lang/de-DE.min.js +1 -1
  39. package/lib/locale/lang/de-DE.umd.js +1 -0
  40. package/lib/locale/lang/en-US.js +1 -0
  41. package/lib/locale/lang/en-US.min.js +1 -1
  42. package/lib/locale/lang/en-US.umd.js +1 -0
  43. package/lib/locale/lang/es-ES.js +1 -0
  44. package/lib/locale/lang/es-ES.min.js +1 -1
  45. package/lib/locale/lang/es-ES.umd.js +1 -0
  46. package/lib/locale/lang/fr-FR.js +1 -0
  47. package/lib/locale/lang/fr-FR.min.js +1 -1
  48. package/lib/locale/lang/fr-FR.umd.js +1 -0
  49. package/lib/locale/lang/hu-HU.js +1 -0
  50. package/lib/locale/lang/hu-HU.min.js +1 -1
  51. package/lib/locale/lang/hu-HU.umd.js +1 -0
  52. package/lib/locale/lang/hy-AM.js +1 -0
  53. package/lib/locale/lang/hy-AM.min.js +1 -1
  54. package/lib/locale/lang/hy-AM.umd.js +1 -0
  55. package/lib/locale/lang/id-ID.js +1 -0
  56. package/lib/locale/lang/id-ID.min.js +1 -1
  57. package/lib/locale/lang/id-ID.umd.js +1 -0
  58. package/lib/locale/lang/it-IT.js +1 -0
  59. package/lib/locale/lang/it-IT.min.js +1 -1
  60. package/lib/locale/lang/it-IT.umd.js +1 -0
  61. package/lib/locale/lang/ja-JP.js +1 -0
  62. package/lib/locale/lang/ja-JP.min.js +1 -1
  63. package/lib/locale/lang/ja-JP.umd.js +1 -0
  64. package/lib/locale/lang/ko-KR.js +1 -0
  65. package/lib/locale/lang/ko-KR.min.js +1 -1
  66. package/lib/locale/lang/ko-KR.umd.js +1 -0
  67. package/lib/locale/lang/ms-MY.js +1 -0
  68. package/lib/locale/lang/ms-MY.min.js +1 -1
  69. package/lib/locale/lang/ms-MY.umd.js +1 -0
  70. package/lib/locale/lang/nb-NO.js +1 -0
  71. package/lib/locale/lang/nb-NO.min.js +1 -1
  72. package/lib/locale/lang/nb-NO.umd.js +1 -0
  73. package/lib/locale/lang/pt-BR.js +1 -0
  74. package/lib/locale/lang/pt-BR.min.js +1 -1
  75. package/lib/locale/lang/pt-BR.umd.js +1 -0
  76. package/lib/locale/lang/ru-RU.js +1 -0
  77. package/lib/locale/lang/ru-RU.min.js +1 -1
  78. package/lib/locale/lang/ru-RU.umd.js +1 -0
  79. package/lib/locale/lang/th-TH.js +1 -0
  80. package/lib/locale/lang/th-TH.min.js +1 -1
  81. package/lib/locale/lang/th-TH.umd.js +1 -0
  82. package/lib/locale/lang/ug-CN.js +1 -0
  83. package/lib/locale/lang/ug-CN.min.js +1 -1
  84. package/lib/locale/lang/ug-CN.umd.js +1 -0
  85. package/lib/locale/lang/uk-UA.js +1 -0
  86. package/lib/locale/lang/uk-UA.min.js +1 -1
  87. package/lib/locale/lang/uk-UA.umd.js +1 -0
  88. package/lib/locale/lang/uz-UZ.js +1 -0
  89. package/lib/locale/lang/uz-UZ.min.js +1 -1
  90. package/lib/locale/lang/uz-UZ.umd.js +1 -0
  91. package/lib/locale/lang/vi-VN.js +1 -0
  92. package/lib/locale/lang/vi-VN.min.js +1 -1
  93. package/lib/locale/lang/vi-VN.umd.js +1 -0
  94. package/lib/locale/lang/zh-CHT.js +1 -0
  95. package/lib/locale/lang/zh-CHT.min.js +1 -1
  96. package/lib/locale/lang/zh-CHT.umd.js +1 -0
  97. package/lib/locale/lang/zh-CN.js +1 -0
  98. package/lib/locale/lang/zh-CN.min.js +1 -1
  99. package/lib/locale/lang/zh-CN.umd.js +1 -0
  100. package/lib/style.css +1 -1
  101. package/lib/table/module/edit/mixin.js +30 -1
  102. package/lib/table/module/edit/mixin.min.js +1 -1
  103. package/lib/table/src/body.js +1 -1
  104. package/lib/table/src/body.min.js +1 -1
  105. package/lib/table/src/footer.js +1 -1
  106. package/lib/table/src/footer.min.js +1 -1
  107. package/lib/table/src/header.js +1 -1
  108. package/lib/table/src/header.min.js +1 -1
  109. package/lib/table/src/methods.js +27 -4
  110. package/lib/table/src/methods.min.js +1 -1
  111. package/lib/ui/index.js +1 -1
  112. package/lib/ui/index.min.js +1 -1
  113. package/lib/ui/src/log.js +1 -1
  114. package/lib/ui/src/log.min.js +1 -1
  115. package/package.json +1 -1
  116. package/packages/locale/lang/ar-EG.ts +1 -0
  117. package/packages/locale/lang/de-DE.ts +1 -0
  118. package/packages/locale/lang/en-US.ts +1 -0
  119. package/packages/locale/lang/es-ES.ts +1 -0
  120. package/packages/locale/lang/fr-FR.ts +1 -0
  121. package/packages/locale/lang/hu-HU.ts +1 -0
  122. package/packages/locale/lang/hy-AM.ts +1 -0
  123. package/packages/locale/lang/id-ID.ts +1 -0
  124. package/packages/locale/lang/it-IT.ts +1 -0
  125. package/packages/locale/lang/ja-JP.ts +1 -0
  126. package/packages/locale/lang/ko-KR.ts +1 -0
  127. package/packages/locale/lang/ms-MY.ts +1 -0
  128. package/packages/locale/lang/nb-NO.ts +1 -0
  129. package/packages/locale/lang/pt-BR.ts +1 -0
  130. package/packages/locale/lang/ru-RU.ts +1 -0
  131. package/packages/locale/lang/th-TH.ts +1 -0
  132. package/packages/locale/lang/ug-CN.ts +1 -0
  133. package/packages/locale/lang/uk-UA.ts +1 -0
  134. package/packages/locale/lang/uz-UZ.ts +1 -0
  135. package/packages/locale/lang/vi-VN.ts +1 -0
  136. package/packages/locale/lang/zh-CHT.ts +1 -0
  137. package/packages/locale/lang/zh-CN.ts +1 -0
  138. package/packages/table/module/edit/mixin.ts +30 -2
  139. package/packages/table/src/body.ts +1 -1
  140. package/packages/table/src/footer.ts +1 -1
  141. package/packages/table/src/header.ts +1 -1
  142. package/packages/table/src/methods.ts +21 -4
  143. /package/es/{iconfont.1751194972120.ttf → iconfont.1751277461257.ttf} +0 -0
  144. /package/es/{iconfont.1751194972120.woff → iconfont.1751277461257.woff} +0 -0
  145. /package/es/{iconfont.1751194972120.woff2 → iconfont.1751277461257.woff2} +0 -0
  146. /package/lib/{iconfont.1751194972120.ttf → iconfont.1751277461257.ttf} +0 -0
  147. /package/lib/{iconfont.1751194972120.woff → iconfont.1751277461257.woff} +0 -0
  148. /package/lib/{iconfont.1751194972120.woff2 → iconfont.1751277461257.woff2} +0 -0
@@ -86,11 +86,14 @@ function insertTreeRow($xeTable, newRecords, isAppend) {
86
86
  }
87
87
  });
88
88
  }
89
+ // function insertGroupRow ($xeTable: VxeTableConstructor & VxeTablePrivateMethods, newRecords: any[], isAppend: boolean) {
90
+ // }
89
91
  function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
90
92
  const props = $xeTable;
91
93
  const reactData = $xeTable;
92
94
  const internalData = $xeTable;
93
95
  const { treeConfig } = props;
96
+ const { isRowGroupStatus } = reactData;
94
97
  const { tableFullTreeData, afterFullData, mergeBodyList, tableFullData, fullDataRowIdData, fullAllDataRowIdData, insertRowMaps } = internalData;
95
98
  const treeOpts = $xeTable.computeTreeOpts;
96
99
  const { transform, rowField, mapChildrenField } = treeOpts;
@@ -104,6 +107,14 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
104
107
  if (treeConfig && transform) {
105
108
  insertTreeRow($xeTable, newRecords, false);
106
109
  }
110
+ else if (isRowGroupStatus) {
111
+ // 如果分组
112
+ if (treeConfig) {
113
+ throw new Error(getI18n('vxe.error.noTree', ['insert']));
114
+ }
115
+ warnLog(getI18n('vxe.error.noGroup', ['remove']));
116
+ // insertGroupRow($xeTable, newRecords, false)
117
+ }
107
118
  else {
108
119
  newRecords.forEach(item => {
109
120
  const rowid = getRowid($xeTable, item);
@@ -128,6 +139,14 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
128
139
  if (treeConfig && transform) {
129
140
  insertTreeRow($xeTable, newRecords, true);
130
141
  }
142
+ else if (isRowGroupStatus) {
143
+ // 如果分组
144
+ if (treeConfig) {
145
+ throw new Error(getI18n('vxe.error.noTree', ['insert']));
146
+ }
147
+ warnLog(getI18n('vxe.error.noGroup', ['remove']));
148
+ // insertGroupRow($xeTable, newRecords, true)
149
+ }
131
150
  else {
132
151
  newRecords.forEach(item => {
133
152
  const rowid = getRowid($xeTable, item);
@@ -192,6 +211,13 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
192
211
  insertTreeRow($xeTable, newRecords, true);
193
212
  }
194
213
  }
214
+ else if (isRowGroupStatus) {
215
+ // 如果分组
216
+ if (treeConfig) {
217
+ throw new Error(getI18n('vxe.error.noTree', ['insert']));
218
+ }
219
+ warnLog(getI18n('vxe.error.noGroup', ['remove']));
220
+ }
195
221
  else {
196
222
  if (treeConfig) {
197
223
  throw new Error(getI18n('vxe.error.noTree', ['insert']));
@@ -489,7 +515,7 @@ export default {
489
515
  const reactData = $xeTable;
490
516
  const internalData = $xeTable;
491
517
  const { treeConfig } = props;
492
- const { editStore } = reactData;
518
+ const { editStore, isRowGroupStatus } = reactData;
493
519
  const { tableFullTreeData, selectCheckboxMaps, afterFullData, mergeBodyList, tableFullData, pendingRowMaps, insertRowMaps, removeRowMaps } = internalData;
494
520
  const checkboxOpts = $xeTable.computeCheckboxOpts;
495
521
  const treeOpts = $xeTable.computeTreeOpts;
@@ -548,6 +574,10 @@ export default {
548
574
  }
549
575
  });
550
576
  }
577
+ else if (isRowGroupStatus) {
578
+ // 如果分组
579
+ warnLog(getI18n('vxe.error.noGroup', ['remove']));
580
+ }
551
581
  else {
552
582
  rows.forEach((row) => {
553
583
  const tfIndex = this.findRowIndexOf(tableFullData, row);
@@ -318,7 +318,7 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
318
318
  colid,
319
319
  rowid
320
320
  },
321
- class: 'vxe-cell--wrapper'
321
+ class: 'vxe-cell--wrapper vxe-body-cell--wrapper'
322
322
  }, column.renderCell(h, cellParams))
323
323
  ]));
324
324
  if (showValidTip && errorValidItem) {
@@ -164,7 +164,7 @@ function renderRows(h, _vm, isOptimizeMode, tableColumn, footerTableData, row, $
164
164
  attrs: {
165
165
  colid
166
166
  },
167
- class: 'vxe-cell--wrapper'
167
+ class: 'vxe-cell--wrapper vxe-footer-cell--wrapper'
168
168
  }, column.renderFooter(h, cellParams))
169
169
  ]),
170
170
  /**
@@ -143,7 +143,7 @@ const renderRows = (h, _vm, isGroup, isOptimizeMode, cols, $rowIndex) => {
143
143
  attrs: {
144
144
  colid
145
145
  },
146
- class: 'vxe-cell--wrapper'
146
+ class: 'vxe-cell--wrapper vxe-header-cell--wrapper'
147
147
  }, column.renderHeader(h, cellParams))
148
148
  ]),
149
149
  /**
@@ -3419,8 +3419,21 @@ function updateHeight($xeTable) {
3419
3419
  internalData.customHeight = 300;
3420
3420
  }
3421
3421
  }
3422
- function calcColumnAutoWidth(column, wrapperEl) {
3423
- const cellElemList = wrapperEl.querySelectorAll(`.vxe-cell--wrapper[colid="${column.id}"]`);
3422
+ function calcColumnAutoWidth($xeTable, column, wrapperEl) {
3423
+ const columnOpts = $xeTable.computeColumnOpts;
3424
+ const { autoOptions } = columnOpts;
3425
+ const { isCalcHeader, isCalcBody, isCalcFooter } = autoOptions || {};
3426
+ const querySelections = [];
3427
+ if (isCalcHeader) {
3428
+ querySelections.push(`.vxe-header-cell--wrapper[colid="${column.id}"]`);
3429
+ }
3430
+ if (isCalcBody) {
3431
+ querySelections.push(`.vxe-body-cell--wrapper[colid="${column.id}"]`);
3432
+ }
3433
+ if (isCalcFooter) {
3434
+ querySelections.push(`.vxe-footer-cell--wrapper[colid="${column.id}"]`);
3435
+ }
3436
+ const cellElemList = querySelections.length ? wrapperEl.querySelectorAll(querySelections.join(',')) : [];
3424
3437
  let leftRightPadding = 0;
3425
3438
  const firstCellEl = cellElemList[0];
3426
3439
  if (firstCellEl && firstCellEl.parentElement) {
@@ -3444,7 +3457,7 @@ function calcCellWidth($xeTable) {
3444
3457
  autoWidthColumnList.forEach(column => {
3445
3458
  const colid = column.id;
3446
3459
  const colRest = fullColumnIdData[colid];
3447
- const colWidth = calcColumnAutoWidth(column, el);
3460
+ const colWidth = calcColumnAutoWidth($xeTable, column, el);
3448
3461
  if (colRest) {
3449
3462
  colRest.width = Math.max(colWidth, colRest.width);
3450
3463
  }
@@ -5366,7 +5379,7 @@ const Methods = {
5366
5379
  const cellParams = Object.assign(params, { cell });
5367
5380
  const colMinWidth = getColReMinWidth(cellParams);
5368
5381
  el.setAttribute('data-calc-col', 'Y');
5369
- let resizeWidth = calcColumnAutoWidth(resizeColumn, el);
5382
+ let resizeWidth = calcColumnAutoWidth($xeTable, resizeColumn, el);
5370
5383
  el.removeAttribute('data-calc-col');
5371
5384
  if (colRest) {
5372
5385
  resizeWidth = Math.max(resizeWidth, colRest.width);
@@ -7976,6 +7989,8 @@ const Methods = {
7976
7989
  moveRowAnimateToTb(newTrList, dragOffsetTop - newTrEl.offsetTop);
7977
7990
  }
7978
7991
  }
7992
+ updateRowOffsetTop($xeTable);
7993
+ updateRowExpandStyle($xeTable);
7979
7994
  $xeTable.updateCellAreas();
7980
7995
  $xeTable.recalculate();
7981
7996
  }).then(() => {
@@ -8386,7 +8401,9 @@ const Methods = {
8386
8401
  }
8387
8402
  }
8388
8403
  }
8404
+ updateColumnOffsetLeft($xeTable);
8389
8405
  loadScrollXData($xeTable);
8406
+ $xeTable.updateCellAreas();
8390
8407
  return {
8391
8408
  status: true
8392
8409
  };
package/es/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  import { getFuncText } from './src/utils';
3
- export const version = "3.16.0-beta.2";
3
+ export const version = "3.16.0-beta.4";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
package/es/ui/src/log.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  const { log } = VxeUI;
3
- const version = `table v${"3.16.0-beta.2"}`;
3
+ const version = `table v${"3.16.0-beta.4"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
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.16.0-beta.2";
2005
+ const version = "3.16.0-beta.4";
2006
2006
  core_.VxeUI.version = version;
2007
2007
  core_.VxeUI.tableVersion = version;
2008
2008
  core_.VxeUI.setConfig({
@@ -2667,7 +2667,7 @@ function isNodeElement(elem) {
2667
2667
  const {
2668
2668
  log: log_log
2669
2669
  } = core_.VxeUI;
2670
- const log_version = `table v${"3.16.0-beta.2"}`;
2670
+ const log_version = `table v${"3.16.0-beta.4"}`;
2671
2671
  const warnLog = log_log.create('warn', log_version);
2672
2672
  const errLog = log_log.create('error', log_version);
2673
2673
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -9252,8 +9252,27 @@ function updateHeight($xeTable) {
9252
9252
  internalData.customHeight = 300;
9253
9253
  }
9254
9254
  }
9255
- function calcColumnAutoWidth(column, wrapperEl) {
9256
- const cellElemList = wrapperEl.querySelectorAll(`.vxe-cell--wrapper[colid="${column.id}"]`);
9255
+ function calcColumnAutoWidth($xeTable, column, wrapperEl) {
9256
+ const columnOpts = $xeTable.computeColumnOpts;
9257
+ const {
9258
+ autoOptions
9259
+ } = columnOpts;
9260
+ const {
9261
+ isCalcHeader,
9262
+ isCalcBody,
9263
+ isCalcFooter
9264
+ } = autoOptions || {};
9265
+ const querySelections = [];
9266
+ if (isCalcHeader) {
9267
+ querySelections.push(`.vxe-header-cell--wrapper[colid="${column.id}"]`);
9268
+ }
9269
+ if (isCalcBody) {
9270
+ querySelections.push(`.vxe-body-cell--wrapper[colid="${column.id}"]`);
9271
+ }
9272
+ if (isCalcFooter) {
9273
+ querySelections.push(`.vxe-footer-cell--wrapper[colid="${column.id}"]`);
9274
+ }
9275
+ const cellElemList = querySelections.length ? wrapperEl.querySelectorAll(querySelections.join(',')) : [];
9257
9276
  let leftRightPadding = 0;
9258
9277
  const firstCellEl = cellElemList[0];
9259
9278
  if (firstCellEl && firstCellEl.parentElement) {
@@ -9279,7 +9298,7 @@ function calcCellWidth($xeTable) {
9279
9298
  autoWidthColumnList.forEach(column => {
9280
9299
  const colid = column.id;
9281
9300
  const colRest = fullColumnIdData[colid];
9282
- const colWidth = calcColumnAutoWidth(column, el);
9301
+ const colWidth = calcColumnAutoWidth($xeTable, column, el);
9283
9302
  if (colRest) {
9284
9303
  colRest.width = Math.max(colWidth, colRest.width);
9285
9304
  }
@@ -11483,7 +11502,7 @@ const Methods = {
11483
11502
  });
11484
11503
  const colMinWidth = getColReMinWidth(cellParams);
11485
11504
  el.setAttribute('data-calc-col', 'Y');
11486
- let resizeWidth = calcColumnAutoWidth(resizeColumn, el);
11505
+ let resizeWidth = calcColumnAutoWidth($xeTable, resizeColumn, el);
11487
11506
  el.removeAttribute('data-calc-col');
11488
11507
  if (colRest) {
11489
11508
  resizeWidth = Math.max(resizeWidth, colRest.width);
@@ -14545,6 +14564,8 @@ const Methods = {
14545
14564
  moveRowAnimateToTb(newTrList, dragOffsetTop - newTrEl.offsetTop);
14546
14565
  }
14547
14566
  }
14567
+ updateRowOffsetTop($xeTable);
14568
+ updateRowExpandStyle($xeTable);
14548
14569
  $xeTable.updateCellAreas();
14549
14570
  $xeTable.recalculate();
14550
14571
  }).then(() => {
@@ -15005,7 +15026,9 @@ const Methods = {
15005
15026
  }
15006
15027
  }
15007
15028
  }
15029
+ updateColumnOffsetLeft($xeTable);
15008
15030
  loadScrollXData($xeTable);
15031
+ $xeTable.updateCellAreas();
15009
15032
  return {
15010
15033
  status: true
15011
15034
  };
@@ -17935,7 +17958,7 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
17935
17958
  colid,
17936
17959
  rowid
17937
17960
  },
17938
- class: 'vxe-cell--wrapper'
17961
+ class: 'vxe-cell--wrapper vxe-body-cell--wrapper'
17939
17962
  }, column.renderCell(h, cellParams))]));
17940
17963
  if (showValidTip && errorValidItem) {
17941
17964
  const errRule = errorValidItem.rule;
@@ -18694,7 +18717,7 @@ const header_renderRows = (h, _vm, isGroup, isOptimizeMode, cols, $rowIndex) =>
18694
18717
  attrs: {
18695
18718
  colid
18696
18719
  },
18697
- class: 'vxe-cell--wrapper'
18720
+ class: 'vxe-cell--wrapper vxe-header-cell--wrapper'
18698
18721
  }, column.renderHeader(h, cellParams))]),
18699
18722
  /**
18700
18723
  * 列宽拖动
@@ -19166,7 +19189,7 @@ function footer_renderRows(h, _vm, isOptimizeMode, tableColumn, footerTableData,
19166
19189
  attrs: {
19167
19190
  colid
19168
19191
  },
19169
- class: 'vxe-cell--wrapper'
19192
+ class: 'vxe-cell--wrapper vxe-footer-cell--wrapper'
19170
19193
  }, column.renderFooter(h, cellParams))]),
19171
19194
  /**
19172
19195
  * 列宽拖动
@@ -23071,6 +23094,8 @@ function insertTreeRow($xeTable, newRecords, isAppend) {
23071
23094
  }
23072
23095
  });
23073
23096
  }
23097
+ // function insertGroupRow ($xeTable: VxeTableConstructor & VxeTablePrivateMethods, newRecords: any[], isAppend: boolean) {
23098
+ // }
23074
23099
  function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
23075
23100
  const props = $xeTable;
23076
23101
  const reactData = $xeTable;
@@ -23078,6 +23103,9 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
23078
23103
  const {
23079
23104
  treeConfig
23080
23105
  } = props;
23106
+ const {
23107
+ isRowGroupStatus
23108
+ } = reactData;
23081
23109
  const {
23082
23110
  tableFullTreeData,
23083
23111
  afterFullData,
@@ -23105,6 +23133,13 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
23105
23133
  // 如果为虚拟树
23106
23134
  if (treeConfig && transform) {
23107
23135
  insertTreeRow($xeTable, newRecords, false);
23136
+ } else if (isRowGroupStatus) {
23137
+ // 如果分组
23138
+ if (treeConfig) {
23139
+ throw new Error(mixin_getI18n('vxe.error.noTree', ['insert']));
23140
+ }
23141
+ warnLog(mixin_getI18n('vxe.error.noGroup', ['remove']));
23142
+ // insertGroupRow($xeTable, newRecords, false)
23108
23143
  } else {
23109
23144
  newRecords.forEach(item => {
23110
23145
  const rowid = getRowid($xeTable, item);
@@ -23144,6 +23179,13 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
23144
23179
  // 如果为虚拟树
23145
23180
  if (treeConfig && transform) {
23146
23181
  insertTreeRow($xeTable, newRecords, true);
23182
+ } else if (isRowGroupStatus) {
23183
+ // 如果分组
23184
+ if (treeConfig) {
23185
+ throw new Error(mixin_getI18n('vxe.error.noTree', ['insert']));
23186
+ }
23187
+ warnLog(mixin_getI18n('vxe.error.noGroup', ['remove']));
23188
+ // insertGroupRow($xeTable, newRecords, true)
23147
23189
  } else {
23148
23190
  newRecords.forEach(item => {
23149
23191
  const rowid = getRowid($xeTable, item);
@@ -23244,6 +23286,12 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
23244
23286
  warnLog('vxe.error.unableInsert');
23245
23287
  insertTreeRow($xeTable, newRecords, true);
23246
23288
  }
23289
+ } else if (isRowGroupStatus) {
23290
+ // 如果分组
23291
+ if (treeConfig) {
23292
+ throw new Error(mixin_getI18n('vxe.error.noTree', ['insert']));
23293
+ }
23294
+ warnLog(mixin_getI18n('vxe.error.noGroup', ['remove']));
23247
23295
  } else {
23248
23296
  if (treeConfig) {
23249
23297
  throw new Error(mixin_getI18n('vxe.error.noTree', ['insert']));
@@ -23590,7 +23638,8 @@ function handleEditCell($xeTable, row, fieldOrColumn, isPos) {
23590
23638
  treeConfig
23591
23639
  } = props;
23592
23640
  const {
23593
- editStore
23641
+ editStore,
23642
+ isRowGroupStatus
23594
23643
  } = reactData;
23595
23644
  const {
23596
23645
  tableFullTreeData,
@@ -23667,6 +23716,9 @@ function handleEditCell($xeTable, row, fieldOrColumn, isPos) {
23667
23716
  afterFullData.splice(afIndex, 1);
23668
23717
  }
23669
23718
  });
23719
+ } else if (isRowGroupStatus) {
23720
+ // 如果分组
23721
+ warnLog(mixin_getI18n('vxe.error.noGroup', ['remove']));
23670
23722
  } else {
23671
23723
  rows.forEach(row => {
23672
23724
  const tfIndex = this.findRowIndexOf(tableFullData, row);
@@ -34068,6 +34120,7 @@ const Toolbar = VxeToolbar;
34068
34120
  notCommands: '全局指令 "{0}" 不存在',
34069
34121
  notSlot: '插槽 "{0}" 不存在',
34070
34122
  noTree: '树结构不支持 "{0}"',
34123
+ noGroup: '数据分组后不支持 "{0}"',
34071
34124
  notProp: '不支持的参数 "{0}"',
34072
34125
  checkProp: '当数据量过大时可能会导致复选框卡顿,建议设置参数 "{0}" 提升渲染速度',
34073
34126
  coverProp: '"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',