Commit 2ab288bb authored by 田翔's avatar 田翔

fix: 手机号正则校验

parent 4fec8167
......@@ -63,7 +63,6 @@ const textWidgets = [
type: 'string',
widget: 'TextInput',
placeholder: '请输入内容'
},
setting: {
widget: {
......
......@@ -6,13 +6,13 @@ const options = [
name: 'email',
label: '邮箱(email)',
value: '^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(.[a-zA-Z0-9_-]+)+$',
message: '邮箱校验未通过'
message: '邮箱校验未通过',
},
{
name: 'identity',
label: '身份证号(identity)',
value: '(^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x)$)',
message: '手机号校验未通过'
message: '身份证号校验未通过',
},
{
name: 'mobile',
......@@ -24,7 +24,7 @@ const options = [
name: 'bankAccount',
label: '银行卡号(bankAccount)',
value: '^(\\d{16}|\\d{19})$',
message: '银行卡号校验未通过'
message: '银行卡号校验未通过',
},
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment