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;
|
@@ -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
|
};
|