config.ts
850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { FormSchema } from '/@/components/Table';
import { phoneRule, emailRule, chineseAndEnlishRule } from '/@/utils/rules';
export const formSchema: FormSchema[] = [
{
field: 'realName',
label: '用户昵称',
colProps: { span: 13 },
required: true,
component: 'Input',
componentProps: {
placeholder: '请输入用户昵称',
},
rules: chineseAndEnlishRule,
},
{
field: 'phoneNumber',
label: '手机号码',
colProps: { span: 13 },
required: true,
component: 'Input',
componentProps: {
placeholder: '请输入手机号码',
},
rules: phoneRule,
},
{
field: 'email',
label: '邮箱',
colProps: { span: 13 },
required: true,
component: 'Input',
componentProps: {
placeholder: '请输入邮箱',
},
rules: emailRule,
},
];