react-table-edit 0.3.9 → 0.4.0

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/index.js CHANGED
@@ -1622,7 +1622,7 @@ var TableEdit = (0, import_react12.forwardRef)((props, ref) => {
1622
1622
  };
1623
1623
  const handleDataChange = (row, col, indexRow) => {
1624
1624
  if (rowChange) {
1625
- const rs = rowChange(dataSource, row, indexRow, col.field);
1625
+ const rs = rowChange(row, indexRow, col.field);
1626
1626
  if (rs && rs?.then) {
1627
1627
  rs.then(() => {
1628
1628
  for (let index = 0; index <= contentColumns.length; index++) {
package/dist/index.mjs CHANGED
@@ -1581,7 +1581,7 @@ var TableEdit = forwardRef2((props, ref) => {
1581
1581
  };
1582
1582
  const handleDataChange = (row, col, indexRow) => {
1583
1583
  if (rowChange) {
1584
- const rs = rowChange(dataSource, row, indexRow, col.field);
1584
+ const rs = rowChange(row, indexRow, col.field);
1585
1585
  if (rs && rs?.then) {
1586
1586
  rs.then(() => {
1587
1587
  for (let index = 0; index <= contentColumns.length; index++) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-table-edit",
3
3
  "license": "MIT",
4
- "version": "0.3.9",
4
+ "version": "0.4.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",