# 验证码组件 **Repository Path**: dinghangxing/verification ## Basic Information - **Project Name**: 验证码组件 - **Description**: No description available - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-01 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # verif ## Project setup ``` yarn install ``` ### Compiles and hot-reloads for development ``` yarn serve ``` ### Compiles and minifies for production ``` yarn build ``` ### Lints and fixes files ``` yarn lint ``` ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). ### 使用方式 ## 引入方式 # import UnifiedValidator from './components/unifiedValidator/index.vue' # conponents:{UnifiedValidator} # 或者是 # import UnifiedValidator from "./components/unifiedValidator/"; # Vue.use(UnifiedValidator) # 使用方式 * 属性 属性名称 描述 类型 默认值 v-model 绑定token baseURL 基础路径 String refreshTime 校验失败后回调事件 Number 2000 showErrTip 组件内部是否展示提示信息 Boolean true 注:baseURL是验证码接口的基础协议域名地址,若和当前系统一致,则可不传; 例:"http://192.168.1.223:81" * 回调函数 verifSucceed -》验证码输入完后验证成功的执行函数,会返回token verifError -》验证码输入完后验证失败的执行函数,会返回Object 自行处理 getVerifError -》获取验证码失败回调函数 会返回Object 自行处理 * 可用 this.$refs[xxx].refresh 进行外部刷新; * 测试环境可能需要做代理到测试地址: http://192.168.1.223:81