feat: naive Textarea input
This commit is contained in:
@@ -111,8 +111,9 @@ export function useBasicInfoFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
rows: 3,
|
rows: 3,
|
||||||
placeholder: '请输入备注',
|
placeholder: '请输入备注',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -70,8 +70,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
placeholder: '请输入备注',
|
placeholder: '请输入备注',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -45,8 +45,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
placeholder: '请输入备注',
|
placeholder: '请输入备注',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -62,8 +62,9 @@ export function useTypeFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
placeholder: '请输入备注',
|
placeholder: '请输入备注',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -274,8 +275,9 @@ export function useDataFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
placeholder: '请输入备注',
|
placeholder: '请输入备注',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -92,8 +92,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
placeholder: '请输入备注',
|
placeholder: '请输入备注',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -76,10 +76,11 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'content',
|
fieldName: 'content',
|
||||||
label: '模板内容',
|
label: '模板内容',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
|
rows: 3,
|
||||||
placeholder: '请输入模板内容',
|
placeholder: '请输入模板内容',
|
||||||
height: 300,
|
|
||||||
},
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
@@ -97,8 +98,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
placeholder: '请输入备注',
|
placeholder: '请输入备注',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -120,8 +122,9 @@ export function useSendMailFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'content',
|
fieldName: 'content',
|
||||||
label: '模板内容',
|
label: '模板内容',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
disabled: true,
|
disabled: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
},
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
// TODO @xingyu:测试有问题
|
// TODO @xingyu:富文本待优化
|
||||||
{
|
{
|
||||||
fieldName: 'content',
|
fieldName: 'content',
|
||||||
label: '公告内容',
|
label: '公告内容',
|
||||||
@@ -55,12 +55,12 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
},
|
},
|
||||||
rules: z.number().default(CommonStatusEnum.ENABLE),
|
rules: z.number().default(CommonStatusEnum.ENABLE),
|
||||||
},
|
},
|
||||||
// TODO @xingyu:测试有问题
|
|
||||||
{
|
{
|
||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
placeholder: '请输入备注',
|
placeholder: '请输入备注',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -57,8 +57,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'content',
|
fieldName: 'content',
|
||||||
label: '模板内容',
|
label: '模板内容',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
placeholder: '请输入模板内容',
|
placeholder: '请输入模板内容',
|
||||||
},
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
@@ -90,8 +91,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
placeholder: '请输入备注',
|
placeholder: '请输入备注',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -160,8 +162,9 @@ export function useSendNotifyFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'content',
|
fieldName: 'content',
|
||||||
label: '模板内容',
|
label: '模板内容',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
disabled: true,
|
disabled: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -59,8 +59,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'description',
|
fieldName: 'description',
|
||||||
label: '应用描述',
|
label: '应用描述',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
placeholder: '请输入应用描述',
|
placeholder: '请输入应用描述',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -158,8 +159,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'additionalInformation',
|
fieldName: 'additionalInformation',
|
||||||
label: '附加信息',
|
label: '附加信息',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
placeholder: '请输入附加信息,JSON 格式数据',
|
placeholder: '请输入附加信息,JSON 格式数据',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -55,7 +55,10 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '岗位备注',
|
label: '岗位备注',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,10 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '角色备注',
|
label: '角色备注',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,8 +58,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
placeholder: '请输入备注',
|
placeholder: '请输入备注',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -80,8 +80,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'content',
|
fieldName: 'content',
|
||||||
label: '模板内容',
|
label: '模板内容',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
placeholder: '请输入模板内容',
|
placeholder: '请输入模板内容',
|
||||||
},
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
@@ -98,8 +99,9 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
placeholder: '请输入备注',
|
placeholder: '请输入备注',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -177,8 +179,9 @@ export function useSendSmsFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'content',
|
fieldName: 'content',
|
||||||
label: '模板内容',
|
label: '模板内容',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
disabled: true,
|
disabled: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -51,7 +51,10 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -115,7 +115,10 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
component: 'Textarea',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
type: 'textarea',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user