vxe-table 4.19.23 → 4.19.25

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.25";
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.25"}`;
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
  // 同一级只能展开一个
@@ -20848,10 +20849,10 @@ var VxeTableComponent = defineVxeComponent({
20848
20849
  return false;
20849
20850
  }
20850
20851
  if (arguments.length > 1) {
20851
- return !eqCellValue(oRow, row, field).result;
20852
+ return !eqCellValue(row, oRow, field).result;
20852
20853
  }
20853
20854
  for (let i = 0; i < keepFields.length; i++) {
20854
- if (!eqCellValue(oRow, row, keepFields[i]).result) {
20855
+ if (!eqCellValue(row, oRow, keepFields[i]).result) {
20855
20856
  return true;
20856
20857
  }
20857
20858
  }
@@ -20880,7 +20881,7 @@ var VxeTableComponent = defineVxeComponent({
20880
20881
  }
20881
20882
  for (let i = 0; i < keepFields.length; i++) {
20882
20883
  const field = keepFields[i];
20883
- const { result, newValue, oldValue } = eqCellValue(oRow, row, field);
20884
+ const { result, newValue, oldValue } = eqCellValue(row, oRow, field);
20884
20885
  if (!result) {
20885
20886
  const column = fullColumnFieldData[field] ? fullColumnFieldData[field].column : null;
20886
20887
  cellList.push({ row, rowid, column, field, newValue, oldValue });