|
|
@ -942,6 +942,19 @@ const refreshFillHandle = () => { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const addRowExpandOnClose = (row: Row) => { |
|
|
|
|
|
|
|
if (!skipRowRemovalOnCancel.value) { |
|
|
|
|
|
|
|
const removed = removeRowIfNew(row) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (removed) { |
|
|
|
|
|
|
|
clearSelectedRange() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
activeCell.row = null |
|
|
|
|
|
|
|
activeCell.col = null |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
watch( |
|
|
|
watch( |
|
|
|
[() => selectedRange.end.row, () => selectedRange.end.col, () => activeCell.row, () => activeCell.col], |
|
|
|
[() => selectedRange.end.row, () => selectedRange.end.col, () => activeCell.row, () => activeCell.col], |
|
|
|
([sr, sc, ar, ac], [osr, osc, oar, oac]) => { |
|
|
|
([sr, sc, ar, ac], [osr, osc, oar, oac]) => { |
|
|
@ -1311,7 +1324,7 @@ useEventListener(document, 'mouseup', () => { |
|
|
|
:state="expandedFormRowState" |
|
|
|
:state="expandedFormRowState" |
|
|
|
:meta="meta" |
|
|
|
:meta="meta" |
|
|
|
:view="view" |
|
|
|
:view="view" |
|
|
|
@update:model-value="!skipRowRemovalOnCancel && removeRowIfNew(expandedFormRow)" |
|
|
|
@update:model-value="addRowExpandOnClose(expandedFormRow)" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</Suspense> |
|
|
|
</Suspense> |
|
|
|
|
|
|
|
|
|
|
|