config.ts
778 Bytes
import { FormSchema } from '/@/components/Table';
import { phoneRule, emailRule } from '/@/utils/rules';
import { useI18n } from '/@/hooks/web/useI18n';
const { t } = useI18n();
export const formSchema: FormSchema[] = [
{
field: 'realName',
label: t('personal.index.schema.t4'),
colProps: { span: 13 },
required: true,
component: 'Input',
componentProps: {},
},
{
field: 'phoneNumber',
label: t('personal.index.schema.t2'),
colProps: { span: 13 },
required: true,
component: 'Input',
componentProps: {},
rules: phoneRule,
},
{
field: 'email',
label: t('personal.index.schema.t3'),
colProps: { span: 13 },
required: true,
component: 'Input',
componentProps: {},
rules: emailRule,
},
];