ronds-metadata 1.0.96 → 1.0.97

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.
@@ -137,16 +137,15 @@ var Editable = function Editable(props) {
137
137
  break;
138
138
 
139
139
  case 'onSingleSave':
140
+ onRowConfirm && onRowConfirm({
141
+ rowIdx: lastValueRef.current.rowIdx,
142
+ values: lastValueRef.current.values,
143
+ allValues: _objectSpread(_objectSpread({}, recordsRef.current[lastValueRef.current.rowIdx]), lastValueRef.current.allValues)
144
+ });
145
+
140
146
  if (lastValueRef.current && lastValueRef.current.rowIdx === data.payload._rowKey_) {
141
- onRowConfirm && onRowConfirm({
142
- rowIdx: lastValueRef.current.rowIdx,
143
- values: lastValueRef.current.values,
144
- allValues: _objectSpread(_objectSpread({}, recordsRef.current[lastValueRef.current.rowIdx]), lastValueRef.current.allValues)
145
- });
146
147
  editRowKeyRef.current = undefined;
147
148
  setEditRowkey(undefined);
148
- } else {
149
- _message.warn('当前值无修改');
150
149
  }
151
150
 
152
151
  break;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.0.96",
4
+ "version": "1.0.97",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",