@hw-component/table 1.9.28 → 1.9.29

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.
@@ -139,13 +139,16 @@ var RowSelectionBox = function RowSelectionBox(_ref5) {
139
139
  if (checked) {
140
140
  newKeys.push(key);
141
141
  newRowData.push(data);
142
+ console.log(newKeys, newRowData, "newKeys,newRowData");
142
143
  rowOnChange(newKeys, newRowData);
143
144
  onChange === null || onChange === void 0 || onChange(newKeys, newRowData);
144
145
  return;
145
146
  }
146
147
  var keyIndex = _indexOfInstanceProperty(newKeys).call(newKeys, key);
148
+ console.log(keyIndex, "keyIndex");
147
149
  _spliceInstanceProperty(newKeys).call(newKeys, keyIndex, 1);
148
150
  _spliceInstanceProperty(newRowData).call(newRowData, keyIndex, 1);
151
+ console.log(newKeys, newRowData, "newKeys,newRowData");
149
152
  rowOnChange(newKeys, newRowData);
150
153
  onChange === null || onChange === void 0 || onChange(newKeys, newRowData);
151
154
  };
@@ -140,13 +140,16 @@ var RowSelectionBox = function RowSelectionBox(_ref5) {
140
140
  if (checked) {
141
141
  newKeys.push(key);
142
142
  newRowData.push(data);
143
+ console.log(newKeys, newRowData, "newKeys,newRowData");
143
144
  rowOnChange(newKeys, newRowData);
144
145
  onChange === null || onChange === void 0 || onChange(newKeys, newRowData);
145
146
  return;
146
147
  }
147
148
  var keyIndex = _indexOfInstanceProperty(newKeys).call(newKeys, key);
149
+ console.log(keyIndex, "keyIndex");
148
150
  _spliceInstanceProperty(newKeys).call(newKeys, keyIndex, 1);
149
151
  _spliceInstanceProperty(newRowData).call(newRowData, keyIndex, 1);
152
+ console.log(newKeys, newRowData, "newKeys,newRowData");
150
153
  rowOnChange(newKeys, newRowData);
151
154
  onChange === null || onChange === void 0 || onChange(newKeys, newRowData);
152
155
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/table",
3
- "version": "1.9.28",
3
+ "version": "1.9.29",
4
4
  "description": "基于antd二次开发table组件",
5
5
  "keywords": [
6
6
  "table"
@@ -126,13 +126,16 @@ export const RowSelectionBox = ({
126
126
  if (checked) {
127
127
  newKeys.push(key);
128
128
  newRowData.push(data);
129
+ console.log(newKeys,newRowData,"newKeys,newRowData")
129
130
  rowOnChange(newKeys, newRowData);
130
131
  onChange?.(newKeys, newRowData);
131
132
  return;
132
133
  }
133
134
  const keyIndex = newKeys.indexOf(key);
135
+ console.log(keyIndex,"keyIndex")
134
136
  newKeys.splice(keyIndex, 1);
135
137
  newRowData.splice(keyIndex, 1);
138
+ console.log(newKeys,newRowData,"newKeys,newRowData")
136
139
  rowOnChange(newKeys, newRowData);
137
140
  onChange?.(newKeys, newRowData);
138
141
  };