File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ func (c crud) Footer(value string) crud {
67
67
}
68
68
69
69
// HeaderToolbar 设置顶部区域
70
- func (c crud ) HeaderToolbar (value string ) crud {
70
+ func (c crud ) HeaderToolbar (value ... any ) crud {
71
71
return c .set ("headerToolbar" , value )
72
72
}
73
73
@@ -174,7 +174,7 @@ func (c crud) EditorSetting(value string) crud {
174
174
}
175
175
176
176
// FooterToolbar 设置底部区域
177
- func (c crud ) FooterToolbar (value string ) crud {
177
+ func (c crud ) FooterToolbar (value ... any ) crud {
178
178
return c .set ("footerToolbar" , value )
179
179
}
180
180
@@ -394,7 +394,7 @@ func (c crud) AutoGenerateFilter(value any) crud {
394
394
}
395
395
396
396
// BulkActions 设置批量操作
397
- func (c crud ) BulkActions (value string ) crud {
397
+ func (c crud ) BulkActions (value ... any ) crud {
398
398
return c .set ("bulkActions" , value )
399
399
}
400
400
Original file line number Diff line number Diff line change @@ -24,6 +24,13 @@ func (la MEventAction) ActionType(value string) MEventAction {
24
24
return la .set ("actionType" , value )
25
25
}
26
26
27
+ // Drawer 定义弹出的抽屉
28
+ func (ea MEventAction ) Drawer (value any ) MEventAction {
29
+ return ea .set ("drawer" , value )
30
+ }
31
+
32
+ // TODO all components
33
+
27
34
// Script 在 actionType 为 custom 时设置自定义脚本
28
35
func (ea MEventAction ) Script (value string ) MEventAction {
29
36
return ea .set ("script" , value )
You can’t perform that action at this time.
0 commit comments