ronds-metadata 1.0.97 → 1.0.98

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,15 +137,16 @@ 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
-
146
140
  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
+ });
147
146
  editRowKeyRef.current = undefined;
148
147
  setEditRowkey(undefined);
148
+ } else {
149
+ _message.warn(tr('当前值无修改'));
149
150
  }
150
151
 
151
152
  break;
@@ -11,5 +11,6 @@ declare const _default: {
11
11
  请输入key: string;
12
12
  请输入title: string;
13
13
  确认会删除该列: string;
14
+ 当前值无修改: string;
14
15
  };
15
16
  export default _default;
@@ -10,5 +10,6 @@ export default {
10
10
  请先保存正在编辑的行: 'Please save the line being edited first',
11
11
  请输入key: 'Please enter key',
12
12
  请输入title: 'Please enter title',
13
- 确认会删除该列: 'Confirm will delete the column?'
13
+ 确认会删除该列: 'Confirm will delete the column?',
14
+ 当前值无修改: 'No change to current value'
14
15
  };
@@ -11,5 +11,6 @@ declare const _default: {
11
11
  请输入key: string;
12
12
  请输入title: string;
13
13
  确认会删除该列: string;
14
+ 当前值无修改: string;
14
15
  };
15
16
  export default _default;
@@ -10,5 +10,6 @@ export default {
10
10
  请先保存正在编辑的行: '请先保存正在编辑的行',
11
11
  请输入key: '请输入key',
12
12
  请输入title: '请输入title',
13
- 确认会删除该列: '确认会删除该列?'
13
+ 确认会删除该列: '确认会删除该列?',
14
+ 当前值无修改: '当前值无修改'
14
15
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.0.97",
4
+ "version": "1.0.98",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",