feat(form): form-dialog,form-drawer新增inline,label-position配置

This commit is contained in:
roymondchen 2023-09-06 16:59:22 +08:00
parent 2bd1033665
commit 7bf59929b0
2 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,8 @@
:init-values="values" :init-values="values"
:parent-values="parentValues" :parent-values="parentValues"
:label-width="labelWidth" :label-width="labelWidth"
:label-position="labelPosition"
:inline="inline"
@change="changeHandler" @change="changeHandler"
></Form> ></Form>
<slot></slot> <slot></slot>
@ -78,6 +80,8 @@ const props = withDefaults(
fullscreen?: boolean; fullscreen?: boolean;
disabled?: boolean; disabled?: boolean;
title?: string; title?: string;
inline?: boolean;
labelPosition?: string;
zIndex?: number; zIndex?: number;
size?: 'small' | 'default' | 'large'; size?: 'small' | 'default' | 'large';
confirmText?: string; confirmText?: string;

View File

@ -21,6 +21,8 @@
:init-values="values" :init-values="values"
:parent-values="parentValues" :parent-values="parentValues"
:label-width="labelWidth" :label-width="labelWidth"
:label-position="labelPosition"
:inline="inline"
@change="changeHandler" @change="changeHandler"
></Form> ></Form>
<slot></slot> <slot></slot>
@ -71,6 +73,8 @@ withDefaults(
zIndex?: number; zIndex?: number;
size?: 'small' | 'default' | 'large'; size?: 'small' | 'default' | 'large';
confirmText?: string; confirmText?: string;
inline?: boolean;
labelPosition?: string;
}>(), }>(),
{ {
closeOnPressEscape: true, closeOnPressEscape: true,