feat: naive Textarea input

pull/105/head^2
xingyu4j 2025-05-14 18:06:31 +08:00
parent 1351702fec
commit 0c9670bab5
15 changed files with 56 additions and 26 deletions

View File

@ -111,8 +111,9 @@ export function useBasicInfoFormSchema(): VbenFormSchema[] {
{
fieldName: 'remark',
label: '备注',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
rows: 3,
placeholder: '请输入备注',
},

View File

@ -70,8 +70,9 @@ export function useFormSchema(): VbenFormSchema[] {
{
fieldName: 'remark',
label: '备注',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
placeholder: '请输入备注',
},
},

View File

@ -45,8 +45,9 @@ export function useFormSchema(): VbenFormSchema[] {
{
fieldName: 'remark',
label: '备注',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
placeholder: '请输入备注',
},
},

View File

@ -62,8 +62,9 @@ export function useTypeFormSchema(): VbenFormSchema[] {
{
fieldName: 'remark',
label: '备注',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
placeholder: '请输入备注',
},
},
@ -274,8 +275,9 @@ export function useDataFormSchema(): VbenFormSchema[] {
{
fieldName: 'remark',
label: '备注',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
placeholder: '请输入备注',
},
},

View File

@ -92,8 +92,9 @@ export function useFormSchema(): VbenFormSchema[] {
{
fieldName: 'remark',
label: '备注',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
placeholder: '请输入备注',
},
},

View File

@ -76,10 +76,11 @@ export function useFormSchema(): VbenFormSchema[] {
{
fieldName: 'content',
label: '模板内容',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
rows: 3,
placeholder: '请输入模板内容',
height: 300,
},
rules: 'required',
},
@ -97,8 +98,9 @@ export function useFormSchema(): VbenFormSchema[] {
{
fieldName: 'remark',
label: '备注',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
placeholder: '请输入备注',
},
},
@ -120,8 +122,9 @@ export function useSendMailFormSchema(): VbenFormSchema[] {
{
fieldName: 'content',
label: '模板内容',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
disabled: true,
},
},

View File

@ -37,7 +37,7 @@ export function useFormSchema(): VbenFormSchema[] {
},
rules: 'required',
},
// TODO @xingyu测试有问题
// TODO @xingyu富文本待优化
{
fieldName: 'content',
label: '公告内容',
@ -55,12 +55,12 @@ export function useFormSchema(): VbenFormSchema[] {
},
rules: z.number().default(CommonStatusEnum.ENABLE),
},
// TODO @xingyu测试有问题
{
fieldName: 'remark',
label: '备注',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
placeholder: '请输入备注',
},
},

View File

@ -57,8 +57,9 @@ export function useFormSchema(): VbenFormSchema[] {
{
fieldName: 'content',
label: '模板内容',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
placeholder: '请输入模板内容',
},
rules: 'required',
@ -90,8 +91,9 @@ export function useFormSchema(): VbenFormSchema[] {
{
fieldName: 'remark',
label: '备注',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
placeholder: '请输入备注',
},
},
@ -160,8 +162,9 @@ export function useSendNotifyFormSchema(): VbenFormSchema[] {
{
fieldName: 'content',
label: '模板内容',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
disabled: true,
},
},

View File

@ -59,8 +59,9 @@ export function useFormSchema(): VbenFormSchema[] {
{
fieldName: 'description',
label: '应用描述',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
placeholder: '请输入应用描述',
},
},
@ -158,8 +159,9 @@ export function useFormSchema(): VbenFormSchema[] {
{
fieldName: 'additionalInformation',
label: '附加信息',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
placeholder: '请输入附加信息JSON 格式数据',
},
},

View File

@ -55,7 +55,10 @@ export function useFormSchema(): VbenFormSchema[] {
{
fieldName: 'remark',
label: '岗位备注',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
},
},
];
}

View File

@ -63,7 +63,10 @@ export function useFormSchema(): VbenFormSchema[] {
{
fieldName: 'remark',
label: '角色备注',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
},
},
];
}

View File

@ -58,8 +58,9 @@ export function useFormSchema(): VbenFormSchema[] {
{
fieldName: 'remark',
label: '备注',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
placeholder: '请输入备注',
},
},

View File

@ -80,8 +80,9 @@ export function useFormSchema(): VbenFormSchema[] {
{
fieldName: 'content',
label: '模板内容',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
placeholder: '请输入模板内容',
},
rules: 'required',
@ -98,8 +99,9 @@ export function useFormSchema(): VbenFormSchema[] {
{
fieldName: 'remark',
label: '备注',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
placeholder: '请输入备注',
},
},
@ -177,8 +179,9 @@ export function useSendSmsFormSchema(): VbenFormSchema[] {
{
fieldName: 'content',
label: '模板内容',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
disabled: true,
},
},

View File

@ -51,7 +51,10 @@ export function useFormSchema(): VbenFormSchema[] {
{
fieldName: 'remark',
label: '备注',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
},
},
];
}

View File

@ -115,7 +115,10 @@ export function useFormSchema(): VbenFormSchema[] {
{
fieldName: 'remark',
label: '备注',
component: 'Textarea',
component: 'Input',
componentProps: {
type: 'textarea',
},
},
];
}