vxe-table 3.19.3 → 3.19.5

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 (57) hide show
  1. package/es/index.css +1 -1
  2. package/es/index.min.css +1 -1
  3. package/es/style.css +1 -1
  4. package/es/style.min.css +1 -1
  5. package/es/table/module/edit/mixin.js +13 -11
  6. package/es/table/src/body.js +30 -14
  7. package/es/table/src/methods.js +122 -4
  8. package/es/table/src/table.js +9 -5
  9. package/es/table/src/util.js +0 -61
  10. package/es/table/style.css +4 -3
  11. package/es/table/style.min.css +1 -1
  12. package/es/ui/index.js +3 -2
  13. package/es/ui/src/dom.js +17 -0
  14. package/es/ui/src/log.js +1 -1
  15. package/es/vxe-table/style.css +4 -3
  16. package/es/vxe-table/style.min.css +1 -1
  17. package/lib/index.css +1 -1
  18. package/lib/index.min.css +1 -1
  19. package/lib/index.umd.js +209 -116
  20. package/lib/index.umd.min.js +1 -1
  21. package/lib/style.css +1 -1
  22. package/lib/style.min.css +1 -1
  23. package/lib/table/module/edit/mixin.js +13 -11
  24. package/lib/table/module/edit/mixin.min.js +1 -1
  25. package/lib/table/src/body.js +28 -15
  26. package/lib/table/src/body.min.js +1 -1
  27. package/lib/table/src/methods.js +139 -3
  28. package/lib/table/src/methods.min.js +1 -1
  29. package/lib/table/src/table.js +8 -5
  30. package/lib/table/src/table.min.js +1 -1
  31. package/lib/table/src/util.js +0 -81
  32. package/lib/table/src/util.min.js +1 -1
  33. package/lib/table/style/style.css +4 -3
  34. package/lib/table/style/style.min.css +1 -1
  35. package/lib/ui/index.js +3 -2
  36. package/lib/ui/index.min.js +1 -1
  37. package/lib/ui/src/dom.js +18 -0
  38. package/lib/ui/src/dom.min.js +1 -1
  39. package/lib/ui/src/log.js +1 -1
  40. package/lib/ui/src/log.min.js +1 -1
  41. package/lib/vxe-table/style/style.css +4 -3
  42. package/lib/vxe-table/style/style.min.css +1 -1
  43. package/package.json +2 -2
  44. package/packages/table/module/edit/mixin.ts +13 -11
  45. package/packages/table/src/body.ts +29 -14
  46. package/packages/table/src/methods.ts +127 -4
  47. package/packages/table/src/table.ts +9 -5
  48. package/packages/table/src/util.ts +0 -66
  49. package/packages/ui/index.ts +2 -1
  50. package/packages/ui/src/dom.ts +18 -0
  51. package/styles/components/table.scss +34 -3
  52. /package/es/{iconfont.1761545705692.ttf → iconfont.1761784799557.ttf} +0 -0
  53. /package/es/{iconfont.1761545705692.woff → iconfont.1761784799557.woff} +0 -0
  54. /package/es/{iconfont.1761545705692.woff2 → iconfont.1761784799557.woff2} +0 -0
  55. /package/lib/{iconfont.1761545705692.ttf → iconfont.1761784799557.ttf} +0 -0
  56. /package/lib/{iconfont.1761545705692.woff → iconfont.1761784799557.woff} +0 -0
  57. /package/lib/{iconfont.1761545705692.woff2 → iconfont.1761784799557.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -2005,7 +2005,7 @@ function getClass(property, params) {
2005
2005
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
2006
2006
 
2007
2007
 
2008
- const version = "3.19.3";
2008
+ const version = "3.19.5";
2009
2009
  core_.VxeUI.version = version;
2010
2010
  core_.VxeUI.tableVersion = version;
2011
2011
  core_.VxeUI.setConfig({
@@ -2178,7 +2178,8 @@ core_.VxeUI.setConfig({
2178
2178
  hasChildField: 'hasChild',
2179
2179
  mapChildrenField: '_X_ROW_CHILD',
2180
2180
  indent: 20,
2181
- showIcon: true
2181
+ showIcon: true,
2182
+ showRootLine: true
2182
2183
  },
2183
2184
  expandConfig: {
2184
2185
  // trigger: 'default',
@@ -2621,6 +2622,23 @@ function updateCellTitle(overflowElem, column) {
2621
2622
  overflowElem.setAttribute('title', content);
2622
2623
  }
2623
2624
  }
2625
+ function checkTargetElement(target, exEls, endEl) {
2626
+ let targetEl = target;
2627
+ if (!exEls || !exEls.length) {
2628
+ return false;
2629
+ }
2630
+ const [exEl1, exEl2, exEl3] = exEls;
2631
+ while (targetEl) {
2632
+ if (exEl1 === targetEl || exEl2 && targetEl === exEl2 || exEl3 && targetEl === exEl3) {
2633
+ return true;
2634
+ }
2635
+ if (endEl && targetEl === endEl) {
2636
+ return false;
2637
+ }
2638
+ targetEl = targetEl.parentElement;
2639
+ }
2640
+ return false;
2641
+ }
2624
2642
  /**
2625
2643
  * 检查触发源是否属于目标节点
2626
2644
  */
@@ -2695,7 +2713,7 @@ function isNodeElement(elem) {
2695
2713
  const {
2696
2714
  log: log_log
2697
2715
  } = core_.VxeUI;
2698
- const log_version = `table v${"3.19.3"}`;
2716
+ const log_version = `table v${"3.19.5"}`;
2699
2717
  const warnLog = log_log.create('warn', log_version);
2700
2718
  const errLog = log_log.create('error', log_version);
2701
2719
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -3477,85 +3495,6 @@ function getLastChildColumn(column) {
3477
3495
  }
3478
3496
  return column;
3479
3497
  }
3480
- const lineOffsetSizes = {
3481
- mini: 3,
3482
- small: 2,
3483
- medium: 1,
3484
- large: 0
3485
- };
3486
- function countTreeExpandSize(prevRow, params) {
3487
- let count = 1;
3488
- if (!prevRow) {
3489
- return count;
3490
- }
3491
- const {
3492
- $table
3493
- } = params;
3494
- const reactData = $table;
3495
- const {
3496
- treeExpandedFlag
3497
- } = reactData;
3498
- const internalData = $table;
3499
- const {
3500
- treeExpandedMaps
3501
- } = internalData;
3502
- const treeOpts = $table.computeTreeOpts;
3503
- const {
3504
- transform,
3505
- mapChildrenField
3506
- } = treeOpts;
3507
- const childrenField = treeOpts.children || treeOpts.childrenField;
3508
- const rowChildren = prevRow[transform ? mapChildrenField : childrenField];
3509
- if (rowChildren && treeExpandedFlag && treeExpandedMaps[getRowid($table, prevRow)]) {
3510
- for (let index = 0; index < rowChildren.length; index++) {
3511
- count += countTreeExpandSize(rowChildren[index], params);
3512
- }
3513
- }
3514
- return count;
3515
- }
3516
- function getOffsetSize($xeTable) {
3517
- const vSize = $xeTable.computeSize;
3518
- if (vSize) {
3519
- return lineOffsetSizes[vSize] || 0;
3520
- }
3521
- return 0;
3522
- }
3523
- function calcTreeLine(params, prevRow) {
3524
- const {
3525
- $table,
3526
- row
3527
- } = params;
3528
- const tableProps = $table;
3529
- const tableReactData = $table;
3530
- const tableInternalData = $table;
3531
- const {
3532
- showOverflow
3533
- } = tableProps;
3534
- const {
3535
- scrollYLoad
3536
- } = tableReactData;
3537
- const {
3538
- fullAllDataRowIdData
3539
- } = tableInternalData;
3540
- const rowOpts = $table.computeRowOpts;
3541
- const cellOpts = $table.computeCellOpts;
3542
- const defaultRowHeight = $table.computeDefaultRowHeight;
3543
- const rowid = getRowid($table, row);
3544
- const rowRest = fullAllDataRowIdData[rowid];
3545
- const currCellHeight = rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
3546
- let expandSize = 1;
3547
- if (prevRow) {
3548
- expandSize = countTreeExpandSize(prevRow, params);
3549
- }
3550
- let cellHeight = currCellHeight;
3551
- const vnHeight = rowRest.height;
3552
- if (scrollYLoad) {
3553
- if (!showOverflow) {
3554
- cellHeight = vnHeight || currCellHeight;
3555
- }
3556
- }
3557
- return cellHeight * expandSize - (prevRow ? 1 : 12 - getOffsetSize($table));
3558
- }
3559
3498
  function getCellValue(row, column) {
3560
3499
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
3561
3500
  }
@@ -8878,6 +8817,9 @@ function autoCellWidth($xeTable) {
8878
8817
  updateColumnOffsetLeft($xeTable);
8879
8818
  updateHeight($xeTable);
8880
8819
  }
8820
+ /**
8821
+ * 计算自适应行高
8822
+ */
8881
8823
  const calcCellAutoHeight = (rowRest, wrapperEl) => {
8882
8824
  const cellElemList = wrapperEl.querySelectorAll(`.vxe-cell--wrapper[rowid="${rowRest.rowid}"]`);
8883
8825
  let colHeight = rowRest.height;
@@ -8895,9 +8837,16 @@ const calcCellAutoHeight = (rowRest, wrapperEl) => {
8895
8837
  }
8896
8838
  return colHeight;
8897
8839
  };
8840
+ /**
8841
+ * 自适应行高
8842
+ */
8898
8843
  const calcCellHeight = $xeTable => {
8844
+ const props = $xeTable;
8899
8845
  const reactData = $xeTable;
8900
8846
  const internalData = $xeTable;
8847
+ const {
8848
+ treeConfig
8849
+ } = props;
8901
8850
  const {
8902
8851
  tableData,
8903
8852
  isAllOverflow,
@@ -8907,9 +8856,10 @@ const calcCellHeight = $xeTable => {
8907
8856
  const {
8908
8857
  fullAllDataRowIdData
8909
8858
  } = internalData;
8859
+ const treeOpts = $xeTable.computeTreeOpts;
8910
8860
  const defaultRowHeight = $xeTable.computeDefaultRowHeight;
8911
8861
  const el = $xeTable.$refs.refElem;
8912
- if (!isAllOverflow && (scrollYLoad || scrollXLoad) && el) {
8862
+ if (!isAllOverflow && (scrollYLoad || scrollXLoad || treeConfig && treeOpts.showLine) && el) {
8913
8863
  const {
8914
8864
  handleGetRowId
8915
8865
  } = createHandleGetRowId($xeTable);
@@ -9833,6 +9783,7 @@ function loadTableData($xeTable, datas, isReset) {
9833
9783
  }
9834
9784
  reactData.isRowLoading = false;
9835
9785
  handleRecalculateStyle($xeTable, false, false, false);
9786
+ updateTreeLineStyle($xeTable);
9836
9787
  // 如果是自动行高,特殊情况需调用 recalculate 手动刷新
9837
9788
  if (!props.showOverflow) {
9838
9789
  setTimeout(() => {
@@ -9845,6 +9796,7 @@ function loadTableData($xeTable, datas, isReset) {
9845
9796
  restoreScrollLocation($xeTable, targetScrollLeft, targetScrollTop).then(() => {
9846
9797
  handleRecalculateStyle($xeTable, false, true, true);
9847
9798
  updateRowOffsetTop($xeTable);
9799
+ updateTreeLineStyle($xeTable);
9848
9800
  resolve();
9849
9801
  });
9850
9802
  } else {
@@ -9852,6 +9804,7 @@ function loadTableData($xeTable, datas, isReset) {
9852
9804
  restoreScrollLocation($xeTable, targetScrollLeft, targetScrollTop).then(() => {
9853
9805
  handleRecalculateStyle($xeTable, false, true, true);
9854
9806
  updateRowOffsetTop($xeTable);
9807
+ updateTreeLineStyle($xeTable);
9855
9808
  resolve();
9856
9809
  });
9857
9810
  });
@@ -10417,6 +10370,9 @@ function updateHeight($xeTable) {
10417
10370
  internalData.customHeight = 300;
10418
10371
  }
10419
10372
  }
10373
+ /**
10374
+ * 计算自适应列宽
10375
+ */
10420
10376
  function calcColumnAutoWidth($xeTable, column, wrapperEl) {
10421
10377
  const columnOpts = $xeTable.computeColumnOpts;
10422
10378
  const {
@@ -10451,6 +10407,9 @@ function calcColumnAutoWidth($xeTable, column, wrapperEl) {
10451
10407
  }
10452
10408
  return colWidth + leftRightPadding;
10453
10409
  }
10410
+ /**
10411
+ * 自适应列宽
10412
+ */
10454
10413
  function calcCellWidth($xeTable) {
10455
10414
  const internalData = $xeTable;
10456
10415
  const autoWidthColumnList = $xeTable.computeAutoWidthColumnList;
@@ -10612,9 +10571,109 @@ function updateRowExpandStyle($xeTable) {
10612
10571
  /**
10613
10572
  * 更新树连接线样式
10614
10573
  */
10615
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
10616
10574
  function updateTreeLineStyle($xeTable) {
10617
- // 待优化
10575
+ const props = $xeTable;
10576
+ const reactData = $xeTable;
10577
+ const internalData = $xeTable;
10578
+ const {
10579
+ treeConfig
10580
+ } = props;
10581
+ if (!treeConfig) {
10582
+ return;
10583
+ }
10584
+ const {
10585
+ tableData
10586
+ } = reactData;
10587
+ const {
10588
+ fullAllDataRowIdData,
10589
+ treeExpandedMaps
10590
+ } = internalData;
10591
+ const cellOpts = $xeTable.computeCellOpts;
10592
+ const rowOpts = $xeTable.computeRowOpts;
10593
+ const defaultRowHeight = $xeTable.computeDefaultRowHeight;
10594
+ const treeOpts = $xeTable.computeTreeOpts;
10595
+ const {
10596
+ transform,
10597
+ mapChildrenField
10598
+ } = treeOpts;
10599
+ const childrenField = treeOpts.children || treeOpts.childrenField;
10600
+ const {
10601
+ handleGetRowId
10602
+ } = createHandleGetRowId($xeTable);
10603
+ const expParentList = [];
10604
+ const handleNodeRow = (row, rIndex, rows) => {
10605
+ const rowid = handleGetRowId(row);
10606
+ const rowRest = fullAllDataRowIdData[rowid] || {};
10607
+ const childList = row[transform ? mapChildrenField : childrenField];
10608
+ const prevRow = rows[rIndex - 1] || null;
10609
+ const nextRow = rows[rIndex + 1] || null;
10610
+ if (childList && childList.length && treeExpandedMaps[rowid]) {
10611
+ expParentList.push({
10612
+ row,
10613
+ prevRow,
10614
+ nextRow
10615
+ });
10616
+ childList.forEach((childRow, crIndex) => {
10617
+ const childRowid = handleGetRowId(childRow);
10618
+ if (treeExpandedMaps[childRowid]) {
10619
+ handleNodeRow(childRow, crIndex, childList);
10620
+ }
10621
+ });
10622
+ } else {
10623
+ if (nextRow) {
10624
+ const nextRowid = handleGetRowId(nextRow);
10625
+ const nextRowRest = fullAllDataRowIdData[nextRowid] || {};
10626
+ const currCellHeight = getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
10627
+ const nextCellHeight = getCellRestHeight(nextRowRest, cellOpts, rowOpts, defaultRowHeight);
10628
+ rowRest.oHeight = currCellHeight;
10629
+ rowRest.lineHeight = Math.floor(currCellHeight / 2 + nextCellHeight / 2);
10630
+ } else {
10631
+ rowRest.oHeight = 0;
10632
+ rowRest.lineHeight = 0;
10633
+ }
10634
+ }
10635
+ };
10636
+ tableData.forEach((row, rIndex) => {
10637
+ handleNodeRow(row, rIndex, tableData);
10638
+ });
10639
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().lastArrayEach(expParentList, ({
10640
+ row,
10641
+ nextRow
10642
+ }) => {
10643
+ const rowid = handleGetRowId(row);
10644
+ const childList = row[transform ? mapChildrenField : childrenField];
10645
+ const rowRest = fullAllDataRowIdData[rowid];
10646
+ if (rowRest) {
10647
+ const currCellHeight = getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
10648
+ let countOffsetHeight = currCellHeight;
10649
+ let countLineHeight = 0;
10650
+ childList.forEach(childRow => {
10651
+ const childRowid = handleGetRowId(childRow);
10652
+ const childRowRest = fullAllDataRowIdData[childRowid] || {};
10653
+ const childList = childRow[transform ? mapChildrenField : childrenField];
10654
+ if (treeExpandedMaps[childRowid] && childList && childList.length) {
10655
+ countOffsetHeight += childRowRest.oHeight || 0;
10656
+ countLineHeight += childRowRest.oHeight || 0;
10657
+ } else {
10658
+ const cellHeight = getCellRestHeight(childRowRest, cellOpts, rowOpts, defaultRowHeight);
10659
+ childRowRest.oHeight = cellHeight;
10660
+ childRowRest.lineHeight = cellHeight;
10661
+ countOffsetHeight += cellHeight;
10662
+ countLineHeight += cellHeight;
10663
+ }
10664
+ });
10665
+ if (nextRow) {
10666
+ const nextRowid = handleGetRowId(nextRow);
10667
+ const nextRowRest = fullAllDataRowIdData[nextRowid] || {};
10668
+ const currCellHeight = getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
10669
+ const nextCellHeight = getCellRestHeight(nextRowRest, cellOpts, rowOpts, defaultRowHeight);
10670
+ countOffsetHeight += currCellHeight;
10671
+ countLineHeight += Math.floor(currCellHeight / 2 + nextCellHeight / 2);
10672
+ }
10673
+ rowRest.lineHeight = countLineHeight;
10674
+ rowRest.oHeight = countOffsetHeight;
10675
+ }
10676
+ });
10618
10677
  }
10619
10678
  function handleRowExpandScroll($xeTable) {
10620
10679
  const internalData = $xeTable;
@@ -18593,6 +18652,7 @@ const Methods = {
18593
18652
  },
18594
18653
  triggerBodyWheelEvent(evnt) {
18595
18654
  const $xeTable = this;
18655
+ const $xeParentTable = $xeTable.$xeParentTable;
18596
18656
  const tableProps = $xeTable;
18597
18657
  const reactData = $xeTable;
18598
18658
  const internalData = $xeTable;
@@ -18666,6 +18726,21 @@ const Methods = {
18666
18726
  return;
18667
18727
  }
18668
18728
  }
18729
+ // 展开行处理,如果展开行嵌入表格中
18730
+ if ($xeParentTable) {
18731
+ if (isRollY) {
18732
+ if (checkTargetElement(evnt.target, [leftScrollElem, bodyScrollElem, rightScrollElem], evnt.currentTarget)) {
18733
+ evnt.stopPropagation();
18734
+ return;
18735
+ }
18736
+ }
18737
+ if (isRollX) {
18738
+ if (checkTargetElement(evnt.target, [headerScrollElem, bodyScrollElem, footerScrollElem], evnt.currentTarget)) {
18739
+ evnt.stopPropagation();
18740
+ return;
18741
+ }
18742
+ }
18743
+ }
18669
18744
  if (!(leftFixedWidth || rightFixedWidth || expandColumn)) {
18670
18745
  return;
18671
18746
  }
@@ -19656,12 +19731,12 @@ function renderLine(h, $xeTable, rowid, params, cellHeight) {
19656
19731
  const {
19657
19732
  column
19658
19733
  } = params;
19659
- const {
19660
- afterFullData
19661
- } = tableInternalData;
19662
19734
  const {
19663
19735
  treeConfig
19664
19736
  } = tableProps;
19737
+ const cellOpts = $xeTable.computeCellOpts;
19738
+ const rowOpts = $xeTable.computeRowOpts;
19739
+ const defaultRowHeight = $xeTable.computeDefaultRowHeight;
19665
19740
  const treeOpts = $xeTable.computeTreeOpts;
19666
19741
  const {
19667
19742
  slots,
@@ -19670,26 +19745,39 @@ function renderLine(h, $xeTable, rowid, params, cellHeight) {
19670
19745
  const {
19671
19746
  fullAllDataRowIdData
19672
19747
  } = tableInternalData;
19673
- if (slots && slots.line) {
19674
- return $xeTable.callSlot(slots.line, params, h);
19675
- }
19676
- const rowRest = fullAllDataRowIdData[rowid];
19677
- let rLevel = 0;
19678
- let prevRow = null;
19679
- if (rowRest) {
19680
- rLevel = rowRest.level;
19681
- prevRow = rowRest.items[rowRest.treeIndex - 1];
19682
- }
19683
19748
  if (treeConfig && treeNode && (treeOpts.showLine || treeOpts.line)) {
19749
+ if (slots && slots.line) {
19750
+ return $xeTable.callSlot(slots.line, params, h);
19751
+ }
19752
+ const rowRest = fullAllDataRowIdData[rowid];
19753
+ let rLevel = 0;
19754
+ let prevRow = null;
19755
+ let parentRow = null;
19756
+ let lineHeight = '';
19757
+ if (rowRest) {
19758
+ rLevel = rowRest.level;
19759
+ prevRow = rowRest.items[rowRest.treeIndex - 1];
19760
+ parentRow = rowRest.parent;
19761
+ }
19762
+ if (!rLevel && !treeOpts.showRootLine) {
19763
+ return [];
19764
+ }
19765
+ if (prevRow) {
19766
+ const prevRowRest = fullAllDataRowIdData[getRowid($xeTable, prevRow)] || {};
19767
+ lineHeight = `${prevRowRest.lineHeight || 0}px`;
19768
+ } else if (rLevel && parentRow) {
19769
+ const parentRowRest = fullAllDataRowIdData[getRowid($xeTable, parentRow)] || {};
19770
+ lineHeight = `calc(-1em + ${Math.floor(cellHeight / 2 + getCellRestHeight(parentRowRest, cellOpts, rowOpts, defaultRowHeight) / 2)}px)`;
19771
+ }
19684
19772
  return [h('div', {
19685
19773
  key: 'tl',
19686
19774
  class: 'vxe-tree--line-wrapper'
19687
19775
  }, [h('div', {
19688
19776
  class: 'vxe-tree--line',
19689
19777
  style: {
19690
- height: `${getRowid($xeTable, afterFullData[0]) === rowid ? 1 : calcTreeLine(params, prevRow)}px`,
19778
+ height: lineHeight,
19691
19779
  bottom: `-${Math.floor(cellHeight / 2)}px`,
19692
- left: `${rLevel * treeOpts.indent + (rLevel ? 2 - getOffsetSize($xeTable) : 0) + 16}px`
19780
+ left: `calc(${rLevel * treeOpts.indent}px + 1em)`
19693
19781
  }
19694
19782
  })])];
19695
19783
  }
@@ -25303,16 +25391,16 @@ function insertTreeRow($xeTable, newRecords, isAppend) {
25303
25391
  } = matchObj;
25304
25392
  const parentRest = fullAllDataRowIdData[getRowid($xeTable, parentRow)];
25305
25393
  const parentLevel = parentRest ? parentRest.level : 0;
25306
- let parentChilds = parentRow[childrenField];
25307
- let mapChilds = parentRow[mapChildrenField];
25308
- if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(parentChilds)) {
25309
- parentChilds = parentRow[childrenField] = [];
25394
+ let pChilds = parentRow[childrenField];
25395
+ let pMapChilds = parentRow[mapChildrenField];
25396
+ if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(pChilds)) {
25397
+ pChilds = parentRow[childrenField] = [];
25310
25398
  }
25311
- if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(mapChilds)) {
25312
- mapChilds = parentRow[childrenField] = [];
25399
+ if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(pMapChilds)) {
25400
+ pMapChilds = parentRow[mapChildrenField] = [];
25313
25401
  }
25314
- parentChilds[funcName](item);
25315
- mapChilds[funcName](item);
25402
+ pChilds[funcName](item);
25403
+ pMapChilds[funcName](item);
25316
25404
  const rest = {
25317
25405
  row: item,
25318
25406
  rowid,
@@ -25322,7 +25410,7 @@ function insertTreeRow($xeTable, newRecords, isAppend) {
25322
25410
  $index: -1,
25323
25411
  treeIndex: -1,
25324
25412
  _tIndex: -1,
25325
- items: parentChilds,
25413
+ items: pChilds,
25326
25414
  parent: parentRow,
25327
25415
  level: parentLevel + 1,
25328
25416
  height: 0,
@@ -25505,13 +25593,15 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
25505
25593
  treeRecords.forEach((row, i) => {
25506
25594
  if (parentRow) {
25507
25595
  if (row[parentField] !== parentRow[rowField]) {
25508
- row[parentField] = parentRow[rowField];
25509
25596
  errLog('vxe.error.errProp', [`${parentField}=${row[parentField]}`, `${parentField}=${parentRow[rowField]}`]);
25597
+ row[parentField] = parentRow[rowField];
25510
25598
  }
25511
25599
  } else {
25512
25600
  if (row[parentField] !== null) {
25601
+ if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(row[parentField])) {
25602
+ errLog('vxe.error.errProp', [`${parentField}=${row[parentField]}`, 'null']);
25603
+ }
25513
25604
  row[parentField] = null;
25514
- errLog('vxe.error.errProp', [`${parentField}=${row[parentField]}`, 'null']);
25515
25605
  }
25516
25606
  }
25517
25607
  let targetIndex = matchMapObj.index + i;
@@ -30626,6 +30716,10 @@ function renderBody(h, $xeTable) {
30626
30716
  $xeTabs: {
30627
30717
  default: null
30628
30718
  },
30719
+ $xeParentTable: {
30720
+ from: '$xeTable',
30721
+ default: null
30722
+ },
30629
30723
  $xeGrid: {
30630
30724
  default: null
30631
30725
  },
@@ -31590,7 +31684,7 @@ function renderBody(h, $xeTable) {
31590
31684
  const {
31591
31685
  initStatus
31592
31686
  } = this;
31593
- if (value && value.length >= 50000) {
31687
+ if (value && value.length >= 20000) {
31594
31688
  warnLog('vxe.error.errLargeData', ['loadData(data), reloadData(data)']);
31595
31689
  }
31596
31690
  this.loadTableData(value || [], true).then(() => {
@@ -31737,7 +31831,6 @@ function renderBody(h, $xeTable) {
31737
31831
  exportConfig,
31738
31832
  importConfig,
31739
31833
  treeConfig,
31740
- showOverflow,
31741
31834
  highlightCurrentRow,
31742
31835
  highlightCurrentColumn
31743
31836
  } = props;
@@ -31779,9 +31872,9 @@ function renderBody(h, $xeTable) {
31779
31872
  if (props.editConfig && editOpts.showStatus && !props.keepSource) {
31780
31873
  warnLog('vxe.error.reqProp', ['keep-source']);
31781
31874
  }
31782
- if (treeConfig && (treeOpts.showLine || treeOpts.line) && !showOverflow) {
31783
- warnLog('vxe.error.reqProp', ['show-overflow']);
31784
- }
31875
+ // if (treeConfig && (treeOpts.showLine || treeOpts.line) && !showOverflow) {
31876
+ // warnLog('vxe.error.reqProp', ['show-overflow'])
31877
+ // }
31785
31878
  if (treeConfig && !treeOpts.transform && props.stripe) {
31786
31879
  warnLog('vxe.error.noTree', ['stripe']);
31787
31880
  }