1.0.2 • Published 4 years ago

yj-psw v1.0.2

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

yj-psw

Install

npm:

npm install yj-psw --save

yarn:

yarn add yj-psw

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Customize configuration

  • This is a password entry box component, after installing,you can use it like input component,only allow input Number;

Use

<template>
  <div class="home">
      <yj-psw v-model="value"></yj-psw>
  </div>
</template>

<script>
import YjPsw from "@/components/psw"
export default {
  components: {
    YjPsw
  },
  data(){
    return {
      value:""
    }
  },
}
</script>

params

支持的参数:

参数名参数作用参数类型默认值
num密码框的个数Number6
width密码框的长度Number25
borderColor密码框的边框颜色String#ccc

views

默认情况

1599286351579

获取焦点

1599286412648

正在输入

npm.io

输入完成

1599286520809

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago