feat: naive Textarea input
							parent
							
								
									1351702fec
								
							
						
					
					
						commit
						0c9670bab5
					
				|  | @ -111,8 +111,9 @@ export function useBasicInfoFormSchema(): VbenFormSchema[] { | |||
|     { | ||||
|       fieldName: 'remark', | ||||
|       label: '备注', | ||||
|       component: 'Textarea', | ||||
|       component: 'Input', | ||||
|       componentProps: { | ||||
|         type: 'textarea', | ||||
|         rows: 3, | ||||
|         placeholder: '请输入备注', | ||||
|       }, | ||||
|  |  | |||
|  | @ -70,8 +70,9 @@ export function useFormSchema(): VbenFormSchema[] { | |||
|     { | ||||
|       fieldName: 'remark', | ||||
|       label: '备注', | ||||
|       component: 'Textarea', | ||||
|       component: 'Input', | ||||
|       componentProps: { | ||||
|         type: 'textarea', | ||||
|         placeholder: '请输入备注', | ||||
|       }, | ||||
|     }, | ||||
|  |  | |||
|  | @ -45,8 +45,9 @@ export function useFormSchema(): VbenFormSchema[] { | |||
|     { | ||||
|       fieldName: 'remark', | ||||
|       label: '备注', | ||||
|       component: 'Textarea', | ||||
|       component: 'Input', | ||||
|       componentProps: { | ||||
|         type: 'textarea', | ||||
|         placeholder: '请输入备注', | ||||
|       }, | ||||
|     }, | ||||
|  |  | |||
|  | @ -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: '请输入备注', | ||||
|       }, | ||||
|     }, | ||||
|  |  | |||
|  | @ -92,8 +92,9 @@ export function useFormSchema(): VbenFormSchema[] { | |||
|     { | ||||
|       fieldName: 'remark', | ||||
|       label: '备注', | ||||
|       component: 'Textarea', | ||||
|       component: 'Input', | ||||
|       componentProps: { | ||||
|         type: 'textarea', | ||||
|         placeholder: '请输入备注', | ||||
|       }, | ||||
|     }, | ||||
|  |  | |||
|  | @ -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, | ||||
|       }, | ||||
|     }, | ||||
|  |  | |||
|  | @ -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: '请输入备注', | ||||
|       }, | ||||
|     }, | ||||
|  |  | |||
|  | @ -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, | ||||
|       }, | ||||
|     }, | ||||
|  |  | |||
|  | @ -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 格式数据', | ||||
|       }, | ||||
|     }, | ||||
|  |  | |||
|  | @ -55,7 +55,10 @@ export function useFormSchema(): VbenFormSchema[] { | |||
|     { | ||||
|       fieldName: 'remark', | ||||
|       label: '岗位备注', | ||||
|       component: 'Textarea', | ||||
|       component: 'Input', | ||||
|       componentProps: { | ||||
|         type: 'textarea', | ||||
|       }, | ||||
|     }, | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
|  | @ -63,7 +63,10 @@ export function useFormSchema(): VbenFormSchema[] { | |||
|     { | ||||
|       fieldName: 'remark', | ||||
|       label: '角色备注', | ||||
|       component: 'Textarea', | ||||
|       component: 'Input', | ||||
|       componentProps: { | ||||
|         type: 'textarea', | ||||
|       }, | ||||
|     }, | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
|  | @ -58,8 +58,9 @@ export function useFormSchema(): VbenFormSchema[] { | |||
|     { | ||||
|       fieldName: 'remark', | ||||
|       label: '备注', | ||||
|       component: 'Textarea', | ||||
|       component: 'Input', | ||||
|       componentProps: { | ||||
|         type: 'textarea', | ||||
|         placeholder: '请输入备注', | ||||
|       }, | ||||
|     }, | ||||
|  |  | |||
|  | @ -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, | ||||
|       }, | ||||
|     }, | ||||
|  |  | |||
|  | @ -51,7 +51,10 @@ export function useFormSchema(): VbenFormSchema[] { | |||
|     { | ||||
|       fieldName: 'remark', | ||||
|       label: '备注', | ||||
|       component: 'Textarea', | ||||
|       component: 'Input', | ||||
|       componentProps: { | ||||
|         type: 'textarea', | ||||
|       }, | ||||
|     }, | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
|  | @ -115,7 +115,10 @@ export function useFormSchema(): VbenFormSchema[] { | |||
|     { | ||||
|       fieldName: 'remark', | ||||
|       label: '备注', | ||||
|       component: 'Textarea', | ||||
|       component: 'Input', | ||||
|       componentProps: { | ||||
|         type: 'textarea', | ||||
|       }, | ||||
|     }, | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 xingyu4j
						xingyu4j