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