refactor: 重新生成单表代码生成预览

This commit is contained in:
puhui999
2025-04-22 14:57:11 +08:00
parent 062111502f
commit 6ca22ff155
4 changed files with 19 additions and 24 deletions

View File

@@ -52,22 +52,16 @@ export function useFormSchema(): VbenFormSchema[] {
valueFormat: 'x',
},
},
// TODO 【富文本】@puhui999@芋艿:后续要封装下;单独 pr
{
fieldName: 'description',
label: '简介',
rules: 'required',
component: 'Editor',
component: 'RichTextarea',
},
// TODO 【文件上传】@puhui999@芋艿:后续要封装下;单独 pr
{
fieldName: 'avatar',
label: '头像',
component: 'FileUpload',
componentProps: {
fileType: 'image',
maxCount: 1,
},
component: 'ImageUpload',
},
];
}
@@ -91,6 +85,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
componentProps: {
allowClear: true,
options: getDictOptions(DICT_TYPE.SYSTEM_USER_SEX, 'number'),
placeholder: '请选择性别',
},
},
{