Skip to content

Commit 8d2895e

Browse files
feat: row expand event
1 parent 5358d9e commit 8d2895e

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

client/packages/lowcoder/src/comps/comps/tableComp/tableCompView.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,9 @@ export function TableCompView(props: {
643643
? COLUMN_CHILDREN_KEY
644644
: "OB_CHILDREN_KEY_PLACEHOLDER",
645645
fixed: "left",
646+
onExpand: (expanded) => {
647+
if(expanded) handleChangeEvent('rowExpand')
648+
}
646649
}}
647650
rowColor={compChildren.rowColor.getView() as any}
648651
{...compChildren.selection.getView()(onEvent)}

client/packages/lowcoder/src/comps/comps/tableComp/tableTypes.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ export const TableEventOptions = [
6969
value: "rowClick",
7070
description: trans("table.rowClick"),
7171
},
72+
{
73+
label: trans("table.rowExpand"),
74+
value: "rowExpand",
75+
description: trans("table.rowExpand"),
76+
},
7277
{
7378
label: trans("table.filterChange"),
7479
value: "filterChange",

client/packages/lowcoder/src/i18n/locales/en.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,6 +1266,7 @@ export const en = {
12661266
cancelChanges: "Cancel changes",
12671267
rowSelectChange: "Row select change",
12681268
rowClick: "Row click",
1269+
rowExpand: "Row expand",
12691270
filterChange: "Filter change",
12701271
sortChange: "Sort change",
12711272
pageChange: "Page change",

client/packages/lowcoder/src/i18n/locales/zh.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,7 @@ table: {
11971197
cancelChanges: "取消更改",
11981198
rowSelectChange: "行选中变化",
11991199
rowClick: "行点击",
1200+
rowExpand: "行展开",
12001201
filterChange: "筛选变化",
12011202
sortChange: "排序变化",
12021203
pageChange: "分页变化",

0 commit comments

Comments
 (0)