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

View File

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