1
0
mirror of synced 2025-12-10 07:58:13 +08:00

form 增加参数 vertical

This commit is contained in:
xuliangzhan
2023-09-13 00:32:10 +08:00
parent a47974b282
commit fb90c92d5b
8 changed files with 42 additions and 6 deletions

View File

@@ -54,6 +54,10 @@ export interface VxeFormItemProps {
* 是否显示标题
*/
showTitle?: VxeFormItemPropTypes.ShowTitle
/**
* 使用垂直布局
*/
vertical?: VxeFormItemPropTypes.Vertical
/**
* 给表单项附加 className
*/
@@ -121,6 +125,7 @@ export namespace VxeFormItemPropTypes {
export type TitleColon = VxeFormPropTypes.TitleColon
export type TitleAsterisk = VxeFormPropTypes.TitleAsterisk
export type ShowTitle = boolean
export type Vertical = boolean
interface ClassNameParams {
$form: VxeFormConstructor

3
types/form.d.ts vendored
View File

@@ -76,6 +76,7 @@ export namespace VxeFormPropTypes {
export type TitleColon = boolean
export type TitleAsterisk = boolean
export type TitleOverflow = boolean | 'ellipsis' | 'title' | 'tooltip' | '' | null
export type Vertical = boolean
interface ClassNameParams {
$form: VxeFormConstructor
@@ -128,6 +129,7 @@ export type VxeFormProps<D = any> = {
titleColon?: VxeFormPropTypes.TitleColon
titleAsterisk?: VxeFormPropTypes.TitleAsterisk
titleOverflow?: VxeFormPropTypes.TitleOverflow
vertical?: VxeFormPropTypes.Vertical
className?: VxeFormPropTypes.ClassName
readonly?: VxeFormPropTypes.Readonly
items?: VxeFormPropTypes.Items
@@ -218,6 +220,7 @@ export namespace VxeFormDefines {
titleSuffix: VxeFormItemPropTypes.TitleSuffix
titleOverflow: VxeFormItemPropTypes.TitleOverflow
showTitle: VxeFormItemPropTypes.ShowTitle
vertical: VxeFormItemPropTypes.Vertical
resetValue: VxeFormItemPropTypes.ResetValue
visibleMethod: VxeFormItemPropTypes.VisibleMethod
visible: VxeFormItemPropTypes.Visible