vxe-table 3.19.2 → 3.19.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 (34) hide show
  1. package/es/style.css +1 -1
  2. package/es/table/src/body.js +30 -14
  3. package/es/table/src/methods.js +118 -8
  4. package/es/table/src/table.js +4 -4
  5. package/es/table/src/util.js +0 -61
  6. package/es/ui/index.js +3 -2
  7. package/es/ui/src/log.js +1 -1
  8. package/lib/index.umd.js +171 -109
  9. package/lib/index.umd.min.js +1 -1
  10. package/lib/style.css +1 -1
  11. package/lib/table/src/body.js +28 -15
  12. package/lib/table/src/body.min.js +1 -1
  13. package/lib/table/src/methods.js +136 -8
  14. package/lib/table/src/methods.min.js +1 -1
  15. package/lib/table/src/table.js +3 -4
  16. package/lib/table/src/table.min.js +1 -1
  17. package/lib/table/src/util.js +0 -81
  18. package/lib/table/src/util.min.js +1 -1
  19. package/lib/ui/index.js +3 -2
  20. package/lib/ui/index.min.js +1 -1
  21. package/lib/ui/src/log.js +1 -1
  22. package/lib/ui/src/log.min.js +1 -1
  23. package/package.json +2 -2
  24. package/packages/table/src/body.ts +29 -14
  25. package/packages/table/src/methods.ts +122 -8
  26. package/packages/table/src/table.ts +4 -4
  27. package/packages/table/src/util.ts +0 -66
  28. package/packages/ui/index.ts +2 -1
  29. /package/es/{iconfont.1761269884508.ttf → iconfont.1761699967297.ttf} +0 -0
  30. /package/es/{iconfont.1761269884508.woff → iconfont.1761699967297.woff} +0 -0
  31. /package/es/{iconfont.1761269884508.woff2 → iconfont.1761699967297.woff2} +0 -0
  32. /package/lib/{iconfont.1761269884508.ttf → iconfont.1761699967297.ttf} +0 -0
  33. /package/lib/{iconfont.1761269884508.woff → iconfont.1761699967297.woff} +0 -0
  34. /package/lib/{iconfont.1761269884508.woff2 → iconfont.1761699967297.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.2";
2008
+ const version = "3.19.4";
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',
@@ -2695,7 +2696,7 @@ function isNodeElement(elem) {
2695
2696
  const {
2696
2697
  log: log_log
2697
2698
  } = core_.VxeUI;
2698
- const log_version = `table v${"3.19.2"}`;
2699
+ const log_version = `table v${"3.19.4"}`;
2699
2700
  const warnLog = log_log.create('warn', log_version);
2700
2701
  const errLog = log_log.create('error', log_version);
2701
2702
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -3477,85 +3478,6 @@ function getLastChildColumn(column) {
3477
3478
  }
3478
3479
  return column;
3479
3480
  }
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
3481
  function getCellValue(row, column) {
3560
3482
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
3561
3483
  }
@@ -6100,7 +6022,7 @@ function handleCustomRestore($xeTable, storeData) {
6100
6022
  storeOptions
6101
6023
  } = customOpts;
6102
6024
  const isAllCustom = storage === true;
6103
- const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {}, storeOptions);
6025
+ const storageOpts = Object.assign({}, isAllCustom ? {} : storage || {}, storeOptions);
6104
6026
  const isCustomResizable = hangleStorageDefaultValue(storageOpts.resizable, isAllCustom);
6105
6027
  const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom);
6106
6028
  const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom);
@@ -6222,7 +6144,7 @@ function restoreCustomStorage($xeTable) {
6222
6144
  storeOptions
6223
6145
  } = customOpts;
6224
6146
  const isAllCustom = storage === true;
6225
- const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {}, storeOptions);
6147
+ const storageOpts = Object.assign({}, isAllCustom ? {} : storage || {}, storeOptions);
6226
6148
  const isCustomResizable = hangleStorageDefaultValue(storageOpts.resizable, isAllCustom);
6227
6149
  const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom);
6228
6150
  const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom);
@@ -6531,6 +6453,7 @@ function handleBaseTreeExpand($xeTable, rows, expanded) {
6531
6453
  }
6532
6454
  reactData.treeExpandedFlag++;
6533
6455
  return Promise.all(result).then(() => {
6456
+ updateTreeLineStyle($xeTable);
6534
6457
  return $xeTable.recalculate();
6535
6458
  });
6536
6459
  }
@@ -8877,6 +8800,9 @@ function autoCellWidth($xeTable) {
8877
8800
  updateColumnOffsetLeft($xeTable);
8878
8801
  updateHeight($xeTable);
8879
8802
  }
8803
+ /**
8804
+ * 计算自适应行高
8805
+ */
8880
8806
  const calcCellAutoHeight = (rowRest, wrapperEl) => {
8881
8807
  const cellElemList = wrapperEl.querySelectorAll(`.vxe-cell--wrapper[rowid="${rowRest.rowid}"]`);
8882
8808
  let colHeight = rowRest.height;
@@ -8894,9 +8820,16 @@ const calcCellAutoHeight = (rowRest, wrapperEl) => {
8894
8820
  }
8895
8821
  return colHeight;
8896
8822
  };
8823
+ /**
8824
+ * 自适应行高
8825
+ */
8897
8826
  const calcCellHeight = $xeTable => {
8827
+ const props = $xeTable;
8898
8828
  const reactData = $xeTable;
8899
8829
  const internalData = $xeTable;
8830
+ const {
8831
+ treeConfig
8832
+ } = props;
8900
8833
  const {
8901
8834
  tableData,
8902
8835
  isAllOverflow,
@@ -8906,9 +8839,10 @@ const calcCellHeight = $xeTable => {
8906
8839
  const {
8907
8840
  fullAllDataRowIdData
8908
8841
  } = internalData;
8842
+ const treeOpts = $xeTable.computeTreeOpts;
8909
8843
  const defaultRowHeight = $xeTable.computeDefaultRowHeight;
8910
8844
  const el = $xeTable.$refs.refElem;
8911
- if (!isAllOverflow && (scrollYLoad || scrollXLoad) && el) {
8845
+ if (!isAllOverflow && (scrollYLoad || scrollXLoad || treeConfig && treeOpts.showLine) && el) {
8912
8846
  const {
8913
8847
  handleGetRowId
8914
8848
  } = createHandleGetRowId($xeTable);
@@ -9424,6 +9358,9 @@ function handleRecalculateStyle($xeTable, reFull, reWidth, reHeight) {
9424
9358
  calcScrollbar($xeTable);
9425
9359
  updateStyle($xeTable);
9426
9360
  updateRowExpandStyle($xeTable);
9361
+ if (reFull) {
9362
+ updateTreeLineStyle($xeTable);
9363
+ }
9427
9364
  return computeScrollLoad($xeTable).then(() => {
9428
9365
  // 初始化时需要在列计算之后再执行优化运算,达到最优显示效果
9429
9366
  if (reWidth) {
@@ -9441,6 +9378,9 @@ function handleRecalculateStyle($xeTable, reFull, reWidth, reHeight) {
9441
9378
  updateRowOffsetTop($xeTable);
9442
9379
  }
9443
9380
  updateRowExpandStyle($xeTable);
9381
+ if (reFull) {
9382
+ updateTreeLineStyle($xeTable);
9383
+ }
9444
9384
  if (reFull) {
9445
9385
  return computeScrollLoad($xeTable);
9446
9386
  }
@@ -9826,6 +9766,7 @@ function loadTableData($xeTable, datas, isReset) {
9826
9766
  }
9827
9767
  reactData.isRowLoading = false;
9828
9768
  handleRecalculateStyle($xeTable, false, false, false);
9769
+ updateTreeLineStyle($xeTable);
9829
9770
  // 如果是自动行高,特殊情况需调用 recalculate 手动刷新
9830
9771
  if (!props.showOverflow) {
9831
9772
  setTimeout(() => {
@@ -9838,6 +9779,7 @@ function loadTableData($xeTable, datas, isReset) {
9838
9779
  restoreScrollLocation($xeTable, targetScrollLeft, targetScrollTop).then(() => {
9839
9780
  handleRecalculateStyle($xeTable, false, true, true);
9840
9781
  updateRowOffsetTop($xeTable);
9782
+ updateTreeLineStyle($xeTable);
9841
9783
  resolve();
9842
9784
  });
9843
9785
  } else {
@@ -9845,6 +9787,7 @@ function loadTableData($xeTable, datas, isReset) {
9845
9787
  restoreScrollLocation($xeTable, targetScrollLeft, targetScrollTop).then(() => {
9846
9788
  handleRecalculateStyle($xeTable, false, true, true);
9847
9789
  updateRowOffsetTop($xeTable);
9790
+ updateTreeLineStyle($xeTable);
9848
9791
  resolve();
9849
9792
  });
9850
9793
  });
@@ -10410,6 +10353,9 @@ function updateHeight($xeTable) {
10410
10353
  internalData.customHeight = 300;
10411
10354
  }
10412
10355
  }
10356
+ /**
10357
+ * 计算自适应列宽
10358
+ */
10413
10359
  function calcColumnAutoWidth($xeTable, column, wrapperEl) {
10414
10360
  const columnOpts = $xeTable.computeColumnOpts;
10415
10361
  const {
@@ -10444,6 +10390,9 @@ function calcColumnAutoWidth($xeTable, column, wrapperEl) {
10444
10390
  }
10445
10391
  return colWidth + leftRightPadding;
10446
10392
  }
10393
+ /**
10394
+ * 自适应列宽
10395
+ */
10447
10396
  function calcCellWidth($xeTable) {
10448
10397
  const internalData = $xeTable;
10449
10398
  const autoWidthColumnList = $xeTable.computeAutoWidthColumnList;
@@ -10605,9 +10554,109 @@ function updateRowExpandStyle($xeTable) {
10605
10554
  /**
10606
10555
  * 更新树连接线样式
10607
10556
  */
10608
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
10609
10557
  function updateTreeLineStyle($xeTable) {
10610
- // 待优化
10558
+ const props = $xeTable;
10559
+ const reactData = $xeTable;
10560
+ const internalData = $xeTable;
10561
+ const {
10562
+ treeConfig
10563
+ } = props;
10564
+ if (!treeConfig) {
10565
+ return;
10566
+ }
10567
+ const {
10568
+ tableData
10569
+ } = reactData;
10570
+ const {
10571
+ fullAllDataRowIdData,
10572
+ treeExpandedMaps
10573
+ } = internalData;
10574
+ const cellOpts = $xeTable.computeCellOpts;
10575
+ const rowOpts = $xeTable.computeRowOpts;
10576
+ const defaultRowHeight = $xeTable.computeDefaultRowHeight;
10577
+ const treeOpts = $xeTable.computeTreeOpts;
10578
+ const {
10579
+ transform,
10580
+ mapChildrenField
10581
+ } = treeOpts;
10582
+ const childrenField = treeOpts.children || treeOpts.childrenField;
10583
+ const {
10584
+ handleGetRowId
10585
+ } = createHandleGetRowId($xeTable);
10586
+ const expParentList = [];
10587
+ const handleNodeRow = (row, rIndex, rows) => {
10588
+ const rowid = handleGetRowId(row);
10589
+ const rowRest = fullAllDataRowIdData[rowid] || {};
10590
+ const childList = row[transform ? mapChildrenField : childrenField];
10591
+ const prevRow = rows[rIndex - 1] || null;
10592
+ const nextRow = rows[rIndex + 1] || null;
10593
+ if (childList && childList.length && treeExpandedMaps[rowid]) {
10594
+ expParentList.push({
10595
+ row,
10596
+ prevRow,
10597
+ nextRow
10598
+ });
10599
+ childList.forEach((childRow, crIndex) => {
10600
+ const childRowid = handleGetRowId(childRow);
10601
+ if (treeExpandedMaps[childRowid]) {
10602
+ handleNodeRow(childRow, crIndex, childList);
10603
+ }
10604
+ });
10605
+ } else {
10606
+ if (nextRow) {
10607
+ const nextRowid = handleGetRowId(nextRow);
10608
+ const nextRowRest = fullAllDataRowIdData[nextRowid] || {};
10609
+ const currCellHeight = getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
10610
+ const nextCellHeight = getCellRestHeight(nextRowRest, cellOpts, rowOpts, defaultRowHeight);
10611
+ rowRest.oHeight = currCellHeight;
10612
+ rowRest.lineHeight = Math.floor(currCellHeight / 2 + nextCellHeight / 2);
10613
+ } else {
10614
+ rowRest.oHeight = 0;
10615
+ rowRest.lineHeight = 0;
10616
+ }
10617
+ }
10618
+ };
10619
+ tableData.forEach((row, rIndex) => {
10620
+ handleNodeRow(row, rIndex, tableData);
10621
+ });
10622
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().lastArrayEach(expParentList, ({
10623
+ row,
10624
+ nextRow
10625
+ }) => {
10626
+ const rowid = handleGetRowId(row);
10627
+ const childList = row[transform ? mapChildrenField : childrenField];
10628
+ const rowRest = fullAllDataRowIdData[rowid];
10629
+ if (rowRest) {
10630
+ const currCellHeight = getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
10631
+ let countOffsetHeight = currCellHeight;
10632
+ let countLineHeight = 0;
10633
+ childList.forEach(childRow => {
10634
+ const childRowid = handleGetRowId(childRow);
10635
+ const childRowRest = fullAllDataRowIdData[childRowid] || {};
10636
+ const childList = childRow[transform ? mapChildrenField : childrenField];
10637
+ if (treeExpandedMaps[childRowid] && childList && childList.length) {
10638
+ countOffsetHeight += childRowRest.oHeight || 0;
10639
+ countLineHeight += childRowRest.oHeight || 0;
10640
+ } else {
10641
+ const cellHeight = getCellRestHeight(childRowRest, cellOpts, rowOpts, defaultRowHeight);
10642
+ childRowRest.oHeight = cellHeight;
10643
+ childRowRest.lineHeight = cellHeight;
10644
+ countOffsetHeight += cellHeight;
10645
+ countLineHeight += cellHeight;
10646
+ }
10647
+ });
10648
+ if (nextRow) {
10649
+ const nextRowid = handleGetRowId(nextRow);
10650
+ const nextRowRest = fullAllDataRowIdData[nextRowid] || {};
10651
+ const currCellHeight = getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight);
10652
+ const nextCellHeight = getCellRestHeight(nextRowRest, cellOpts, rowOpts, defaultRowHeight);
10653
+ countOffsetHeight += currCellHeight;
10654
+ countLineHeight += Math.floor(currCellHeight / 2 + nextCellHeight / 2);
10655
+ }
10656
+ rowRest.lineHeight = countLineHeight;
10657
+ rowRest.oHeight = countOffsetHeight;
10658
+ }
10659
+ });
10611
10660
  }
10612
10661
  function handleRowExpandScroll($xeTable) {
10613
10662
  const internalData = $xeTable;
@@ -12277,7 +12326,7 @@ const Methods = {
12277
12326
  storeOptions
12278
12327
  } = customOpts;
12279
12328
  const isAllCustom = storage === true;
12280
- const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {}, storeOptions);
12329
+ const storageOpts = Object.assign({}, isAllCustom ? {} : storage || {}, storeOptions);
12281
12330
  const isCustomResizable = hangleStorageDefaultValue(storageOpts.resizable, isAllCustom);
12282
12331
  const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom);
12283
12332
  const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom);
@@ -12329,7 +12378,7 @@ const Methods = {
12329
12378
  storeOptions
12330
12379
  } = customOpts;
12331
12380
  const isAllCustom = storage === true;
12332
- const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {}, storeOptions);
12381
+ const storageOpts = Object.assign({}, isAllCustom ? {} : storage || {}, storeOptions);
12333
12382
  const isCustomResizable = hangleStorageDefaultValue(storageOpts.resizable, isAllCustom);
12334
12383
  const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom);
12335
12384
  const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom);
@@ -12461,7 +12510,7 @@ const Methods = {
12461
12510
  storeOptions
12462
12511
  } = customOpts;
12463
12512
  const isAllCustom = storage === true;
12464
- const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {}, storeOptions);
12513
+ const storageOpts = Object.assign({}, isAllCustom ? {} : storage || {}, storeOptions);
12465
12514
  const isCustomResizable = hangleStorageDefaultValue(storageOpts.resizable, isAllCustom);
12466
12515
  const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom);
12467
12516
  const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom);
@@ -18196,6 +18245,7 @@ const Methods = {
18196
18245
  }
18197
18246
  reactData.treeExpandedFlag++;
18198
18247
  }).then(() => {
18248
+ updateTreeLineStyle($xeTable);
18199
18249
  if (expList.length) {
18200
18250
  $xeTable.recalculate();
18201
18251
  }
@@ -19648,12 +19698,12 @@ function renderLine(h, $xeTable, rowid, params, cellHeight) {
19648
19698
  const {
19649
19699
  column
19650
19700
  } = params;
19651
- const {
19652
- afterFullData
19653
- } = tableInternalData;
19654
19701
  const {
19655
19702
  treeConfig
19656
19703
  } = tableProps;
19704
+ const cellOpts = $xeTable.computeCellOpts;
19705
+ const rowOpts = $xeTable.computeRowOpts;
19706
+ const defaultRowHeight = $xeTable.computeDefaultRowHeight;
19657
19707
  const treeOpts = $xeTable.computeTreeOpts;
19658
19708
  const {
19659
19709
  slots,
@@ -19662,26 +19712,39 @@ function renderLine(h, $xeTable, rowid, params, cellHeight) {
19662
19712
  const {
19663
19713
  fullAllDataRowIdData
19664
19714
  } = tableInternalData;
19665
- if (slots && slots.line) {
19666
- return $xeTable.callSlot(slots.line, params, h);
19667
- }
19668
- const rowRest = fullAllDataRowIdData[rowid];
19669
- let rLevel = 0;
19670
- let prevRow = null;
19671
- if (rowRest) {
19672
- rLevel = rowRest.level;
19673
- prevRow = rowRest.items[rowRest.treeIndex - 1];
19674
- }
19675
19715
  if (treeConfig && treeNode && (treeOpts.showLine || treeOpts.line)) {
19716
+ if (slots && slots.line) {
19717
+ return $xeTable.callSlot(slots.line, params, h);
19718
+ }
19719
+ const rowRest = fullAllDataRowIdData[rowid];
19720
+ let rLevel = 0;
19721
+ let prevRow = null;
19722
+ let parentRow = null;
19723
+ let lineHeight = '';
19724
+ if (rowRest) {
19725
+ rLevel = rowRest.level;
19726
+ prevRow = rowRest.items[rowRest.treeIndex - 1];
19727
+ parentRow = rowRest.parent;
19728
+ }
19729
+ if (!rLevel && !treeOpts.showRootLine) {
19730
+ return [];
19731
+ }
19732
+ if (prevRow) {
19733
+ const prevRowRest = fullAllDataRowIdData[getRowid($xeTable, prevRow)] || {};
19734
+ lineHeight = `${prevRowRest.lineHeight || 0}px`;
19735
+ } else if (rLevel && parentRow) {
19736
+ const parentRowRest = fullAllDataRowIdData[getRowid($xeTable, parentRow)] || {};
19737
+ lineHeight = `calc(-1em + ${Math.floor(cellHeight / 2 + getCellRestHeight(parentRowRest, cellOpts, rowOpts, defaultRowHeight) / 2)}px)`;
19738
+ }
19676
19739
  return [h('div', {
19677
19740
  key: 'tl',
19678
19741
  class: 'vxe-tree--line-wrapper'
19679
19742
  }, [h('div', {
19680
19743
  class: 'vxe-tree--line',
19681
19744
  style: {
19682
- height: `${getRowid($xeTable, afterFullData[0]) === rowid ? 1 : calcTreeLine(params, prevRow)}px`,
19745
+ height: lineHeight,
19683
19746
  bottom: `-${Math.floor(cellHeight / 2)}px`,
19684
- left: `${rLevel * treeOpts.indent + (rLevel ? 2 - getOffsetSize($xeTable) : 0) + 16}px`
19747
+ left: `calc(${rLevel * treeOpts.indent}px + 1em)`
19685
19748
  }
19686
19749
  })])];
19687
19750
  }
@@ -31729,7 +31792,6 @@ function renderBody(h, $xeTable) {
31729
31792
  exportConfig,
31730
31793
  importConfig,
31731
31794
  treeConfig,
31732
- showOverflow,
31733
31795
  highlightCurrentRow,
31734
31796
  highlightCurrentColumn
31735
31797
  } = props;
@@ -31771,9 +31833,9 @@ function renderBody(h, $xeTable) {
31771
31833
  if (props.editConfig && editOpts.showStatus && !props.keepSource) {
31772
31834
  warnLog('vxe.error.reqProp', ['keep-source']);
31773
31835
  }
31774
- if (treeConfig && (treeOpts.showLine || treeOpts.line) && !showOverflow) {
31775
- warnLog('vxe.error.reqProp', ['show-overflow']);
31776
- }
31836
+ // if (treeConfig && (treeOpts.showLine || treeOpts.line) && !showOverflow) {
31837
+ // warnLog('vxe.error.reqProp', ['show-overflow'])
31838
+ // }
31777
31839
  if (treeConfig && !treeOpts.transform && props.stripe) {
31778
31840
  warnLog('vxe.error.noTree', ['stripe']);
31779
31841
  }