Vxe UI plug-in supports common validator configurations.
npm install @vxe-ui/plugin-validatorVxe UI plug-in supports common validator configurations.
It corresponds to vxe-table v4 or vxe-pc-ui v4
``shell`
npm install @vxe-ui/plugin-validator
`javascript
// ...
// Use vxe-pc-ui
import { VxeUI } from 'vxe-pc-ui'
// Use vxe-table
// import { VxeUI } from 'vxe-table'
import VxeUIPluginValidator from '@vxe-ui/plugin-validator'
// ...
VxeUI.use(VxeUIPluginValidator, {
// Custom regular expression rules
// customRegExp: {
// email: /^([A-Za-z0-9_\-.])+@([A-Za-z0-9_\-.])+\.([A-Za-z]{2,4})$/
// }
})
`
Support for table and form.
| code 编码 | describe 描述 | params 参数 |
|------|------|------|
| MOBILE_NUMBER | 手机号13位 | — |
| EMAIL_ADDRESS | 邮箱地址 | — |
| IDENTITY_CARD | 身份证号码 | — |
| IP_ADDRESS | IP地址 | — |
| URL | URL地址 | — |
| PLATE_NUMBER | 车牌号 | — |
`html
:edit-config="{trigger: 'click', mode: 'cell'}"
:edit-rules="editRules">
``
Thank you to everyone who contributed to this project.

MIT © 2019-present, Xu Liangzhan