diff --git a/packages/amis-editor/src/tpl/options.tsx b/packages/amis-editor/src/tpl/options.tsx index 0b507d6f6..88fabc7d8 100644 --- a/packages/amis-editor/src/tpl/options.tsx +++ b/packages/amis-editor/src/tpl/options.tsx @@ -545,40 +545,52 @@ setSchemaTpl('optionAddControl', (params: OptionControlParams) => { }; return ( - + onBulkChange({addApi, addDialog, addControls}); + } + }); + }} + > + {value ? '已配置新增表单' : '配置新增表单'} + + {value && ( + + )} + ); } } @@ -669,46 +681,58 @@ setSchemaTpl('optionEditControl', (params: OptionControlParams) => { }; return ( - + onBulkChange({ + editApi, + editInitApi, + editDialog, + editControls + }); + } + }); + }} + > + {value ? '已配置编辑表单' : '配置编辑表单'} + + {value && ( + + )} + ); } }