File tree Expand file tree Collapse file tree 5 files changed +34
-3
lines changed
client/packages/lowcoder/src Expand file tree Collapse file tree 5 files changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -745,7 +745,10 @@ export function TableCompView(props: {
745
745
setLoading
746
746
)
747
747
}
748
- onDownload = { ( ) => onDownload ( `${ compName } -data` ) }
748
+ onDownload = { ( ) => {
749
+ handleChangeEvent ( "download" ) ;
750
+ onDownload ( `${ compName } -data` )
751
+ } }
749
752
hasChange = { hasChange }
750
753
onSaveChanges = { ( ) => handleChangeEvent ( "saveChanges" ) }
751
754
onCancelChanges = { ( ) => handleChangeEvent ( "cancelChanges" ) }
@@ -778,7 +781,11 @@ export function TableCompView(props: {
778
781
: "OB_CHILDREN_KEY_PLACEHOLDER" ,
779
782
fixed : "left" ,
780
783
onExpand : ( expanded ) => {
781
- if ( expanded ) handleChangeEvent ( 'rowExpand' )
784
+ if ( expanded ) {
785
+ handleChangeEvent ( 'rowExpand' )
786
+ } else {
787
+ handleChangeEvent ( 'rowShrink' )
788
+ }
782
789
}
783
790
} }
784
791
rowColorFn = { compChildren . rowColor . getView ( ) as any }
Original file line number Diff line number Diff line change @@ -78,6 +78,21 @@ export const TableEventOptions = [
78
78
value : "rowExpand" ,
79
79
description : trans ( "table.rowExpand" ) ,
80
80
} ,
81
+ {
82
+ label : trans ( "table.rowShrink" ) ,
83
+ value : "rowShrink" ,
84
+ description : trans ( "table.rowShrink" ) ,
85
+ } ,
86
+ {
87
+ label : trans ( "table.search" ) ,
88
+ value : "search" ,
89
+ description : trans ( "table.search" ) ,
90
+ } ,
91
+ {
92
+ label : trans ( "table.download" ) ,
93
+ value : "download" ,
94
+ description : trans ( "table.download" ) ,
95
+ } ,
81
96
{
82
97
label : trans ( "table.filterChange" ) ,
83
98
value : "filterChange" ,
Original file line number Diff line number Diff line change @@ -1190,7 +1190,10 @@ export const de = {
1190
1190
"cancelChanges" : "Änderungen abbrechen" ,
1191
1191
"rowSelectChange" : "Zeile auswählen Ändern" ,
1192
1192
"rowClick" : "Reihe Klicken" ,
1193
- "rowExpand" : "Reihe Erweitern" ,
1193
+ "rowExpand" : "Reihe verkleinern" ,
1194
+ "rowShrink" : "Zeilenverkleinerung" ,
1195
+ "search" : "Suchen" ,
1196
+ "download" : "Herunterladen" ,
1194
1197
"filterChange" : "Filterwechsel" ,
1195
1198
"sortChange" : "Sortieren Ändern" ,
1196
1199
"pageChange" : "Seitenwechsel" ,
Original file line number Diff line number Diff line change @@ -1296,6 +1296,9 @@ export const en = {
1296
1296
"rowSelectChange" : "Row Select Change" ,
1297
1297
"rowClick" : "Row Click" ,
1298
1298
"rowExpand" : "Row Expand" ,
1299
+ "rowShrink" : "Row Shrink" ,
1300
+ "search" : "Search" ,
1301
+ "download" : "Download" ,
1299
1302
"filterChange" : "Filter Change" ,
1300
1303
"sortChange" : "Sort Change" ,
1301
1304
"pageChange" : "Page Change" ,
Original file line number Diff line number Diff line change @@ -1267,6 +1267,9 @@ table: {
1267
1267
rowSelectChange : "行选中变化" ,
1268
1268
rowClick : "行点击" ,
1269
1269
rowExpand : "行展开" ,
1270
+ rowShrink : "行收缩" ,
1271
+ search : "搜索" ,
1272
+ download : "下载" ,
1270
1273
filterChange : "筛选变化" ,
1271
1274
sortChange : "排序变化" ,
1272
1275
pageChange : "分页变化" ,
You can’t perform that action at this time.
0 commit comments