Commit 56f8751f authored by 田翔's avatar 田翔

fix: 电话号码正常修改

parent 93fd2449
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "5.7.1", "version": "5.7.2",
"description": "5.7.1 表单布局样式优化", "description": "5.7.2 电话号码正常修改",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -4,25 +4,25 @@ import { Select } from 'antd' ...@@ -4,25 +4,25 @@ import { Select } from 'antd'
const options = [ const options = [
{ {
name: 'email', name: 'email',
label: '邮箱(email)', label: '邮箱',
value: '^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(.[a-zA-Z0-9_-]+)+$', value: '^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(.[a-zA-Z0-9_-]+)+$',
message: '邮箱校验未通过', message: '邮箱校验未通过',
}, },
{ {
name: 'identity', name: 'identity',
label: '身份证号(identity)', label: '身份证号',
value: '(^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x)$)', value: '(^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x)$)',
message: '身份证号校验未通过', message: '身份证号校验未通过',
}, },
{ {
name: 'mobile', name: 'mobile',
label: '手机号(mobile)', label: '手机号/固话',
value: '^[1][3,4,5,6,7,8,9][0-9]{9}$', value: '^[1][3,4,5,6,7,8,9][0-9]{9}$|^(0[0-9]{2,3})?(\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,6})?$',
message: '手机号校验未通过', message: '手机号/固话校验未通过',
}, },
{ {
name: 'bankAccount', name: 'bankAccount',
label: '银行卡号(bankAccount)', label: '银行卡号',
value: '^(\\d{16}|\\d{19})$', 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