mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-07-05 01:58:15 +08:00
chore: 🔨 表格行双击查看
[skip ci]
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user