antdv-password-progress
v1.0.0
Published
antd-vue 密码框安全度进度条
Downloads
2
Readme
antdv-password-progress
antd-vue 密码框安全度进度条
安装
> npm install antdv-password-progress
使用
import Vue from 'vue'
import AntdvPasswordProgress from 'antdv-password-progress'
Vue.use(AntdvPasswordProgress)
test.vue
<a-form-item>
<a-input
...
v-verify="[
{ min: 8, message: '密码最小长度为8' },
{ max: 30, message: '密码最大长度为30' },
{ reg: /\d/, message: '只允许输入数字' }
]"
>
</a-input>
</a-form-item>
获取校验结果
const passVerify=this.$verifyPass(rules,password)
passVerify:bool