1.0.3 • Published 3 years ago

yf-psd v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

About

关于


How to use ? && what's this .

这是什么?如何去使用

  1. What's this?

    这是什么?

    VUE captcha component - This is a VUE captcha component that helps you quickly record user input captcha

    这是一个VUE验证码组件,帮助你快速记录用户输入的验证码。

  2. How to use ?

    怎么使用?


    1.npm install yf-psd

    npm 安装组件


2.import it in main.js

在vue 入口文件中引入


3.Use it

引入

  import yf-psd from 'yf-psd'

  Vue.use(yf-psd)

  import 'yf-psd/style/yf-psd.css'

4.You can use it

你可以使用它了,在你的 vue 文件中


5.Use v-Model binding

使用 v-model 绑定值


  1. Attribute

    属性

    1.listLength

    type : Number

    explain: You need a few captcha bits ?

    你需要几位验证码(数字类型)


2.radius

type : Boolean

explain : Do you need a round style ?

你是否需要圆角的样式(布尔类型)


3.cursor

type : Boolean

explain : Whether you need to hide the cursor of the input field ?

你是否需要隐藏输入框的光标(布尔类型)


4.newStyle

type : String

explain : If you need a new style, you can use it .

如果你需要写一些新的样式,可以使用这个(字符串类型)


  1. Demo

<yf-psd v-model="code" :newStyle="'background:red'" :radius="true" :listLength="4" :cursor="true" \></yf-psd>

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago