1.0.3 • Published 4 years ago

vue-image-verifycode v1.0.3

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

vue-image-verifycode

An Image VerifyCode Component based on Vue.js and Element UI

Install

# install dependencies
npm install vue-image-verifycode --save

Example

main.js

import ImageVerifyCode from 'vue-image-verifycode'
Vue.use(ImageVerifyCode)

App.vue

<vue-image-verifycode :url="url"></vue-image-verifycode>
data() {
  return {
     url: 'https://xxxx' //Change to your image URL
   }
 }

demo

demo

Attribute

参数说明类型可选值默认值
url图形验证码接口地址,必填属性string
radius验证码容器的圆角大小,建议4px,和element ui的组件圆角大小保持一致string/number4px/4
mask鼠标悬浮时是否显示遮罩层booleantrue
mask-color遮罩层背景颜色,支持RGB,RGBA,16进制颜色stringrgba(87, 87, 87, 0.5)
refresh点击是否刷新验证码booleantrue
icon-src遮罩层中的刷新图标,使用element ui icon的class名称stringel-icon-refresh-right
icon-color遮罩层中的刷新图标颜色,与mask-color使用方法一致stringrgba(255, 255, 255, 0.8)
icon-size遮罩层中的刷新图标大小,建议24pxstring/number24px/24

More detail

If you want to know more, you can come to this website! vue-image-verifycode

1.0.2

4 years ago

1.0.1

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago