feat:【antd/ele】useFormSchema 的 placeholder

This commit is contained in:
YunaiV
2025-11-19 10:40:59 +08:00
parent 6b1a054e11
commit b67c24021c
28 changed files with 92 additions and 0 deletions

View File

@@ -28,6 +28,9 @@ export function useFormSchema(): VbenFormSchema[] {
fieldName: 'username',
label: '用户名称',
component: 'Input',
componentProps: {
placeholder: '请输入用户名称',
},
rules: 'required',
},
{
@@ -44,6 +47,9 @@ export function useFormSchema(): VbenFormSchema[] {
fieldName: 'nickname',
label: '用户昵称',
component: 'Input',
componentProps: {
placeholder: '请输入用户昵称',
},
rules: 'required',
},
{
@@ -117,6 +123,9 @@ export function useFormSchema(): VbenFormSchema[] {
fieldName: 'remark',
label: '备注',
component: 'Textarea',
componentProps: {
placeholder: '请输入备注',
},
},
];
}