From 0ec2cef5fd740169b32645841bf6c37215961bcb Mon Sep 17 00:00:00 2001 From: AaronWu <2463371514@qq.com> Date: Thu, 29 May 2025 10:00:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E9=95=BF=E5=BA=A6=E9=99=90=E5=88=B65-30?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/user/formSchemas.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/views/system/user/formSchemas.ts b/src/views/system/user/formSchemas.ts index 6a7ed90..4d28825 100644 --- a/src/views/system/user/formSchemas.ts +++ b/src/views/system/user/formSchemas.ts @@ -13,11 +13,18 @@ export const userSchemas: FormSchema[] = [ { 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',