phoneverification
v1.0.1
Published
移动端验证码组件
Downloads
5
Maintainers
Readme
verification
移动端验证码组件
插件的安装
NPM
npm i phoneverification
引入插件
import Vue from 'vue';
import verification from 'phoneverification';
Vue.use(verification);
API
| 参数 | 说明 | 类型 | 默认值 |
| - | :- | :- | :-: |
| number | 验证码位数 | number | 6 |
| cipher | 是否使用密文 | Boolean | false |
| dialog | 是否使用弹框模式 | Boolean | false |
| visible | 弹框模式下的显示隐藏(弹框模式下必填) | Boolean | false |
| title | 标题 | String | - |
| desc | 描述 | String | - |
Event
| 事件名 | 说明 | 参数 |
| :- | :- | :- |
| ok | 完成填写验证码的回调 | password |
| resend | 点击重新发送验证码回调 | - |
| cancel | 关闭弹框回调 | - |
author
zongriyue