1.0.3 • Published 6 years ago

vue-security-code v1.0.3

Weekly downloads
32
License
MIT
Repository
github
Last release
6 years ago

vue-security-code

An security-code input implement by vue 2.0

npm.io npm.io

Demo

Live Demo >>

Install

npm i -S vue-security-code

Usage

<template>
    <security-code v-model="code"></security-code>
</template>

<script>
    import SecurityCode from 'vue-security-code'

    // Declare
    export default {
        components: { SecurityCode },
        data () {
          return {
            code: ''
          }
        }
    }
</script>

Options

参数说明类型可选值默认值
length长度number4
placeholder占位符string-
theme主题stringblock / lineblock

License

MIT Copyright (c) 2017 liusong

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago