vxe-table 4.19.23 → 4.19.24

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.
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 = "4.19.23";
47
+ const version = "4.19.24";
48
48
  VxeUI.version = version;
49
49
  VxeUI.tableVersion = version;
50
50
  VxeUI.setConfig({
@@ -755,7 +755,7 @@ function wheelScrollTopTo(diffNum, cb) {
755
755
  }
756
756
 
757
757
  const { log } = VxeUI;
758
- const tableVersion = `table v${"4.19.23"}`;
758
+ const tableVersion = `table v${"4.19.24"}`;
759
759
  function createComponentLog(name) {
760
760
  const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : '';
761
761
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
@@ -2593,7 +2593,7 @@ const Cell = {
2593
2593
  const { treeExpandedFlag } = tableReactData;
2594
2594
  const { fullAllDataRowIdData, treeExpandedMaps, treeExpandLazyLoadedMaps } = tableInternalData;
2595
2595
  const treeOpts = computeTreeOpts.value;
2596
- const { padding, indent, lazy, trigger, iconLoaded, showIcon, iconOpen, iconClose } = treeOpts;
2596
+ const { padding, indent, lazy, trigger, visibleMethod, iconLoaded, showIcon, iconOpen, iconClose } = treeOpts;
2597
2597
  const childrenField = treeOpts.children || treeOpts.childrenField;
2598
2598
  const hasChildField = treeOpts.hasChild || treeOpts.hasChildField;
2599
2599
  const rowChilds = row[childrenField];
@@ -2628,7 +2628,7 @@ const Cell = {
2628
2628
  }
2629
2629
  : undefined
2630
2630
  }, [
2631
- showIcon && (lazy ? (isLazyLoaded ? hasChild : (hasChild || hasLazyChilds)) : hasChild)
2631
+ showIcon && (lazy ? (isLazyLoaded ? hasChild : (hasChild || hasLazyChilds)) : hasChild) && (!visibleMethod || visibleMethod(params))
2632
2632
  ? [
2633
2633
  h('div', Object.assign({ class: 'vxe-cell--tree-btn' }, ons), [
2634
2634
  h('i', {
@@ -19410,8 +19410,9 @@ var VxeTableComponent = defineVxeComponent({
19410
19410
  const result = [];
19411
19411
  const columnIndex = $xeTable.getColumnIndex(treeNodeColumn);
19412
19412
  const $columnIndex = $xeTable.getVMColumnIndex(treeNodeColumn);
19413
+ const _columnIndex = $xeTable.getVTColumnIndex(treeNodeColumn);
19413
19414
  const { handleGetRowId } = createHandleGetRowId($xeTable);
19414
- let validRows = toggleMethod ? rows.filter((row) => toggleMethod({ $table: $xeTable, expanded, column: treeNodeColumn, columnIndex, $columnIndex, row })) : rows;
19415
+ let validRows = toggleMethod ? rows.filter((row) => toggleMethod({ $table: $xeTable, expanded, column: treeNodeColumn, columnIndex, $columnIndex, _columnIndex, row })) : rows;
19415
19416
  if (accordion) {
19416
19417
  validRows = validRows.length ? [validRows[validRows.length - 1]] : [];
19417
19418
  // 同一级只能展开一个