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

@ -19,11 +19,11 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Roslynator.Analyzers" Version="4.12.9">
<PackageReference Include="Roslynator.Analyzers" Version="4.12.10">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.3.0.106239">
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.4.0.108396">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>

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)