|
|
@ -13,11 +13,18 @@ export const userSchemas: FormSchema<API.CreateUserParams>[] = [ |
|
|
|
{ |
|
|
|
field: 'account', |
|
|
|
component: 'Input', |
|
|
|
componentProps: { |
|
|
|
// 限制长度 5-30位
|
|
|
|
}, |
|
|
|
label: '账号', |
|
|
|
colProps: { |
|
|
|
span: 12, |
|
|
|
}, |
|
|
|
rules: [{ required: true }], |
|
|
|
rules: [ |
|
|
|
{ required: true, message: '请输入内容' }, |
|
|
|
{ min: 5, max: 30, message: '请输入5到30个字符' }, |
|
|
|
|
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'username', |
|
|
|