chore: 🔨 表格行双击查看

[skip ci]
This commit is contained in:
tk
2024-12-20 10:34:53 +08:00
committed by nsnail
parent f3651f1432
commit 4d45a72243
2 changed files with 8 additions and 2 deletions

View File

@ -16,6 +16,7 @@
@cell-click="cellClickMethod"
@filter-change="filterChange"
@row-contextmenu="rowContextmenu"
@row-dblclick="dbClick"
@sort-change="sortChange"
ref="scTable"
tooltip-effect="light">
@ -361,6 +362,11 @@ export default {
this.isActivate = false
},
methods: {
dbClick(row) {
if (this.vue.dialog) {
this.vue.dialog.save = { mode: 'view', row: { id: row.id } }
}
},
async contextMenuCommand(command) {
if (typeof command === 'object') {
return command.action(this.vue, this.current.row)