config.ts
627 Bytes
import { FormSchema } from '/@/components/Form';
export type BasicInfoFormValueType = Record<BasicConfigField, string>;
export enum BasicConfigField {
NAME = 'name',
REMARK = 'remark',
}
export const basicSchema: FormSchema[] = [
{
field: BasicConfigField.NAME,
label: '组件名称',
component: 'Input',
componentProps: {
placeholder: '请输入组件名称',
maxLength: 32,
},
},
{
field: BasicConfigField.REMARK,
label: '组件备注',
component: 'InputTextArea',
componentProps: {
placeholder: '请输入组件备注',
maxLength: 255,
},
},
];