|
|
@ -117,7 +117,7 @@ const { |
|
|
|
formattedData: data, |
|
|
|
formattedData: data, |
|
|
|
updateOrSaveRow, |
|
|
|
updateOrSaveRow, |
|
|
|
changePage, |
|
|
|
changePage, |
|
|
|
addEmptyRow, |
|
|
|
addEmptyRow: _addEmptyRow, |
|
|
|
deleteRow, |
|
|
|
deleteRow, |
|
|
|
deleteSelectedRows, |
|
|
|
deleteSelectedRows, |
|
|
|
selectedAllRecords, |
|
|
|
selectedAllRecords, |
|
|
@ -200,6 +200,7 @@ const { |
|
|
|
isCellActive, |
|
|
|
isCellActive, |
|
|
|
tbodyEl, |
|
|
|
tbodyEl, |
|
|
|
resetSelectedRange, |
|
|
|
resetSelectedRange, |
|
|
|
|
|
|
|
makeActive, |
|
|
|
selectedRange, |
|
|
|
selectedRange, |
|
|
|
} = useMultiSelect( |
|
|
|
} = useMultiSelect( |
|
|
|
meta, |
|
|
|
meta, |
|
|
@ -804,6 +805,14 @@ const deleteSelectedRangeOfRows = () => { |
|
|
|
activeCell.col = null |
|
|
|
activeCell.col = null |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function addEmptyRow(row?: number) { |
|
|
|
|
|
|
|
_addEmptyRow(row) |
|
|
|
|
|
|
|
nextTick().then(() => { |
|
|
|
|
|
|
|
makeActive(row ?? data.value.length - 1, 0) |
|
|
|
|
|
|
|
scrollToCell?.() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
@ -1009,6 +1018,7 @@ const deleteSelectedRangeOfRows = () => { |
|
|
|
v-e="['c:row:add:grid-bottom']" |
|
|
|
v-e="['c:row:add:grid-bottom']" |
|
|
|
:colspan="visibleColLength + 1" |
|
|
|
:colspan="visibleColLength + 1" |
|
|
|
class="text-left pointer nc-grid-add-new-cell cursor-pointer" |
|
|
|
class="text-left pointer nc-grid-add-new-cell cursor-pointer" |
|
|
|
|
|
|
|
@mouseup.stop |
|
|
|
@click="addEmptyRow()" |
|
|
|
@click="addEmptyRow()" |
|
|
|
> |
|
|
|
> |
|
|
|
<div class="px-2 w-full flex items-center text-gray-500"> |
|
|
|
<div class="px-2 w-full flex items-center text-gray-500"> |
|
|
|