|
|
@ -421,10 +421,13 @@ const onFieldDelete = (state: TableExplorerColumn) => { |
|
|
|
field.column = state |
|
|
|
field.column = state |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
ops.value.push({ |
|
|
|
ops.value = [ |
|
|
|
|
|
|
|
...ops.value, |
|
|
|
|
|
|
|
{ |
|
|
|
op: 'delete', |
|
|
|
op: 'delete', |
|
|
|
column: state, |
|
|
|
column: state, |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -440,7 +443,7 @@ const onFieldAdd = (state: TableExplorerColumn) => { |
|
|
|
op: 'add', |
|
|
|
op: 'add', |
|
|
|
column: state, |
|
|
|
column: state, |
|
|
|
}) |
|
|
|
}) |
|
|
|
newFields.value.push(state) |
|
|
|
newFields.value = [...newFields.value, state] |
|
|
|
|
|
|
|
|
|
|
|
if (addFieldMoveHook.value) { |
|
|
|
if (addFieldMoveHook.value) { |
|
|
|
moveOps.value.push({ |
|
|
|
moveOps.value.push({ |
|
|
|