config.ts
654 Bytes
import { FormSchema } from '/@/components/Form';
import { useI18n } from '/@/hooks/web/useI18n';
export type BasicInfoFormValueType = Record<BasicConfigField, string>;
export enum BasicConfigField {
NAME = 'name',
REMARK = 'remark',
}
const { t } = useI18n();
export const basicSchema: FormSchema[] = [
{
field: BasicConfigField.NAME,
label: t('visual.board.custom.name'),
component: 'Input',
componentProps: {
maxLength: 32,
},
},
{
field: BasicConfigField.REMARK,
label: t('visual.board.custom.componentRemark'),
component: 'InputTextArea',
componentProps: {
maxLength: 255,
},
},
];