ztxkui 4.2.23-528 → 4.2.23-528-1

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.
@@ -926,7 +926,8 @@ function useColumns(props) {
926
926
  var innerIndex = getInnerIndex(currentPage, index);
927
927
  // 通过key来查找具体的索引
928
928
  var rowKeyIndex = null;
929
- if (typeof rowKey === 'string' && filterSearchValuesRef.current) {
929
+ if (typeof rowKey === 'string' &&
930
+ Object.keys(filterSearchValuesRef.current)) {
930
931
  var record_1 = (otherInfo || {}).record;
931
932
  rowKeyIndex = (_a = dataSourceRef.current) === null || _a === void 0 ? void 0 : _a.findIndex(function (item) {
932
933
  return (item === null || item === void 0 ? void 0 : item[rowKey]) &&
@@ -935,7 +936,9 @@ function useColumns(props) {
935
936
  });
936
937
  }
937
938
  onAddAndDelHandle &&
938
- onAddAndDelHandle(type, rowKeyIndex ? rowKeyIndex : innerIndex, otherInfo);
939
+ onAddAndDelHandle(type, rowKeyIndex !== null && rowKeyIndex !== -1
940
+ ? rowKeyIndex
941
+ : innerIndex, otherInfo);
939
942
  });
940
943
  },
941
944
  // eslint-disable-next-line react-hooks/exhaustive-deps
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "4.2.23-528",
3
+ "version": "4.2.23-528-1",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",