mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-11-29 22:12:11 +08:00
feat(form): form dialog新增props
This commit is contained in:
parent
6a7f80c48d
commit
bf6598c871
@ -8,7 +8,9 @@
|
||||
:width="width"
|
||||
:zIndex="zIndex"
|
||||
:fullscreen="fullscreen"
|
||||
:close-on-click-modal="false"
|
||||
:close-on-click-modal="closeOnClickModal"
|
||||
:close-on-press-escape="closeOnPressEscape"
|
||||
:destroy-on-close="destroyOnClose"
|
||||
@close="closeHandler"
|
||||
>
|
||||
<div
|
||||
@ -87,11 +89,17 @@ const props = withDefaults(
|
||||
size?: 'small' | 'default' | 'large';
|
||||
confirmText?: string;
|
||||
preventSubmitDefault?: boolean;
|
||||
closeOnClickModal?: boolean;
|
||||
closeOnPressEscape?: boolean;
|
||||
destroyOnClose?: boolean;
|
||||
}>(),
|
||||
{
|
||||
config: () => [],
|
||||
values: () => ({}),
|
||||
confirmText: '确定',
|
||||
closeOnClickModal: false,
|
||||
closeOnPressEscape: false,
|
||||
destroyOnClose: false,
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user