File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
client/packages/lowcoder/src/comps/comps/tableComp Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,12 @@ export const SelectionControl = (function () {
74
74
onEvent ( "rowSelectChange" ) ;
75
75
}
76
76
} ,
77
+ onDoubleClick : ( ) => {
78
+ onEvent ( "doubleClick" ) ;
79
+ if ( getKey ( record ) !== props . selectedRowKey ) {
80
+ onEvent ( "rowSelectChange" ) ;
81
+ }
82
+ }
77
83
} ;
78
84
} ,
79
85
} ;
@@ -101,6 +107,10 @@ export const SelectionControl = (function () {
101
107
changeSelectedRowKey ( record ) ;
102
108
onEvent ( "rowClick" ) ;
103
109
} ,
110
+ onDoubleClick : ( ) => {
111
+ changeSelectedRowKey ( record ) ;
112
+ onEvent ( "doubleClick" ) ;
113
+ }
104
114
} ;
105
115
} ,
106
116
} ;
Original file line number Diff line number Diff line change @@ -144,6 +144,11 @@ export const TableEventOptions = [
144
144
value : "refresh" ,
145
145
description : trans ( "table.refresh" ) ,
146
146
} ,
147
+ {
148
+ label : trans ( "event.doubleClick" ) ,
149
+ value : "doubleClick" ,
150
+ description : trans ( "event.doubleClickDesc" ) ,
151
+ }
147
152
] as const ;
148
153
149
154
export type TableEventOptionValues = typeof TableEventOptions [ number ] [ 'value' ] ;
You can’t perform that action at this time.
0 commit comments