mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-17 16:35:53 +08:00
各种页面校验功能补充优化
This commit is contained in:
@@ -61,7 +61,8 @@ export const TEL = /0\d{2,3}-\d{7,8}/
|
||||
|
||||
// 正整数
|
||||
export const INTEGER = {
|
||||
pattern: /^[0-9]\d*$/,
|
||||
|
||||
pattern: /^[0-9]\d{0,10}|0$/,
|
||||
message:'请输入正整数'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user