Skip to content

Commit 9efa29a

Browse files
committed
small fix for crud and EventAction
1 parent ec67e71 commit 9efa29a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

comp/crud.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (c crud) Footer(value string) crud {
6767
}
6868

6969
// HeaderToolbar 设置顶部区域
70-
func (c crud) HeaderToolbar(value string) crud {
70+
func (c crud) HeaderToolbar(value ...any) crud {
7171
return c.set("headerToolbar", value)
7272
}
7373

@@ -174,7 +174,7 @@ func (c crud) EditorSetting(value string) crud {
174174
}
175175

176176
// FooterToolbar 设置底部区域
177-
func (c crud) FooterToolbar(value string) crud {
177+
func (c crud) FooterToolbar(value ...any) crud {
178178
return c.set("footerToolbar", value)
179179
}
180180

@@ -394,7 +394,7 @@ func (c crud) AutoGenerateFilter(value any) crud {
394394
}
395395

396396
// BulkActions 设置批量操作
397-
func (c crud) BulkActions(value string) crud {
397+
func (c crud) BulkActions(value ...any) crud {
398398
return c.set("bulkActions", value)
399399
}
400400

comp/i_EventAction.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ func (la MEventAction) ActionType(value string) MEventAction {
2424
return la.set("actionType", value)
2525
}
2626

27+
// Drawer 定义弹出的抽屉
28+
func (ea MEventAction) Drawer(value any) MEventAction {
29+
return ea.set("drawer", value)
30+
}
31+
32+
// TODO all components
33+
2734
// Script 在 actionType 为 custom 时设置自定义脚本
2835
func (ea MEventAction) Script(value string) MEventAction {
2936
return ea.set("script", value)

0 commit comments

Comments
 (0)