vxe-table 4.1.15 → 4.1.16

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.
@@ -1107,7 +1107,7 @@ export default defineComponent({
1107
1107
  fullAllDataRowIdData[rowid] = rest;
1108
1108
  fullDataRowIdData[rowid] = rest;
1109
1109
  }
1110
- }, { children: treeOpts.mapChildren });
1110
+ }, { children: treeOpts.transform ? treeOpts.mapChildren : treeOpts.children });
1111
1111
  }
1112
1112
  else {
1113
1113
  afterFullData.forEach(function (row, index) {
@@ -2433,7 +2433,7 @@ export default defineComponent({
2433
2433
  }
2434
2434
  XEUtils.eachTree(rows, function (childRow, index, items, path, parent, nodes) {
2435
2435
  var rowid = getRowid($xetable, childRow);
2436
- var rest = { row: childRow, rowid: rowid, seq: -1, index: -1, _index: -1, $index: -1, items: items, parent: parent, level: parentLevel + nodes.length };
2436
+ var rest = { row: childRow, rowid: rowid, seq: -1, index: index, _index: -1, $index: -1, items: items, parent: parent, level: parentLevel + nodes.length };
2437
2437
  fullDataRowIdData[rowid] = rest;
2438
2438
  fullAllDataRowIdData[rowid] = rest;
2439
2439
  }, treeOpts);
@@ -2441,6 +2441,7 @@ export default defineComponent({
2441
2441
  if (transform) {
2442
2442
  row[mapChildren] = rows;
2443
2443
  }
2444
+ updateAfterDataIndex();
2444
2445
  return rows;
2445
2446
  });
2446
2447
  },
package/lib/index.umd.js CHANGED
@@ -33082,7 +33082,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
33082
33082
  fullDataRowIdData[rowid] = rest;
33083
33083
  }
33084
33084
  }, {
33085
- children: treeOpts.mapChildren
33085
+ children: treeOpts.transform ? treeOpts.mapChildren : treeOpts.children
33086
33086
  });
33087
33087
  } else {
33088
33088
  afterFullData.forEach(function (row, index) {
@@ -34836,7 +34836,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
34836
34836
  row: childRow,
34837
34837
  rowid: rowid,
34838
34838
  seq: -1,
34839
- index: -1,
34839
+ index: index,
34840
34840
  _index: -1,
34841
34841
  $index: -1,
34842
34842
  items: items,
@@ -34852,6 +34852,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
34852
34852
  row[mapChildren] = rows;
34853
34853
  }
34854
34854
 
34855
+ updateAfterDataIndex();
34855
34856
  return rows;
34856
34857
  });
34857
34858
  },