1.0.2 • Published 5 years ago
yj-psw v1.0.2
yj-psw
Install
npm:
npm install yj-psw --saveyarn:
yarn add yj-pswCompiles and hot-reloads for development
yarn serveCompiles and minifies for production
yarn buildCustomize 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 | 密码框的个数 | Number | 6 |
| width | 密码框的长度 | Number | 25 |
| borderColor | 密码框的边框颜色 | String | #ccc |
views
默认情况

获取焦点

正在输入

输入完成
