ronds-metadata 1.0.57 → 1.0.58
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.
@@ -38,6 +38,13 @@ var EditableAction = function EditableAction(props) {
|
|
38
38
|
type: 'onSingleSave',
|
39
39
|
payload: record
|
40
40
|
});
|
41
|
+
editableStream.next({
|
42
|
+
type: 'editCellKey',
|
43
|
+
payload: {
|
44
|
+
dataIndex: undefined,
|
45
|
+
rowIndex: undefined
|
46
|
+
}
|
47
|
+
});
|
41
48
|
};
|
42
49
|
|
43
50
|
var onDelete = function onDelete() {
|
@@ -311,6 +311,12 @@ var Editable = function Editable(props) {
|
|
311
311
|
|
312
312
|
var onAddRow = function onAddRow() {
|
313
313
|
if (defaultValue) {
|
314
|
+
if (type === 'freedom' && editRowKey) {
|
315
|
+
_message.warn('请先保存正在编辑的行');
|
316
|
+
|
317
|
+
return;
|
318
|
+
}
|
319
|
+
|
314
320
|
var _records = recordsRef.current;
|
315
321
|
|
316
322
|
if (addPosition === 'top') {
|