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 {
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
Original file line number Diff line number Diff 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 时设置自定义脚本
2835func (ea MEventAction ) Script (value string ) MEventAction {
2936 return ea .set ("script" , value )
You can’t perform that action at this time.
0 commit comments