mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 20:26:56 +00:00
feat: Add prev and next icon in expanded form
re #501 Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -463,10 +463,13 @@
|
||||
:available-columns="availableColumns"
|
||||
:nodes="nodes"
|
||||
:query-params="queryParams"
|
||||
:show-next-prev="true"
|
||||
@cancel="showExpandModal = false;"
|
||||
@input="showExpandModal = false; (data[selectedExpandRowIndex] && data[selectedExpandRowIndex].rowMeta && delete data[selectedExpandRowIndex].rowMeta.new) ; loadTableData()"
|
||||
@commented="reloadComments"
|
||||
@loadTableData="loadTableData"
|
||||
@next="loadNext"
|
||||
@prev="loadPrev"
|
||||
/>
|
||||
</v-dialog>
|
||||
|
||||
@@ -642,6 +645,12 @@ export default {
|
||||
...mapActions({
|
||||
loadTablesFromChildTreeNode: 'project/loadTablesFromChildTreeNode'
|
||||
}),
|
||||
loadNext() {
|
||||
this.selectedExpandRowIndex = ++this.selectedExpandRowIndex % this.data.length
|
||||
},
|
||||
loadPrev() {
|
||||
this.selectedExpandRowIndex = --this.selectedExpandRowIndex === -1 ? this.data.length - 1 : this.selectedExpandRowIndex
|
||||
},
|
||||
checkAndDeleteTable() {
|
||||
if (
|
||||
!this.meta || (
|
||||
@@ -992,7 +1001,9 @@ export default {
|
||||
this.loadingData = false
|
||||
},
|
||||
showRowContextMenu(e, row, rowMeta, index, colIndex, col) {
|
||||
if (!this._isUIAllowed('table-grid-context-menu')) { return }
|
||||
if (!this._isUIAllowed('table-grid-context-menu')) {
|
||||
return
|
||||
}
|
||||
e.preventDefault()
|
||||
this.rowContextMenu = false
|
||||
this.$nextTick(() => {
|
||||
|
||||
Reference in New Issue
Block a user