🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

password-keyboard

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

password-keyboard

```vue npm install --save password-keyboard ```

latest
npmnpm
Version
0.1.8
Version published
Maintainers
1
Created
Source

适用于vue的移动端密码输入框插件

安装

npm install --save password-keyboard 

使用

import passwordKeyboard from 'password-keyboard'
components:{
    passwordKeyboard
}

props

属性类型是否必填默认值
showBooleanfalse
tradeAmountString,Number无,不传时不显示
titleString无,不传时不显示
passLengthNumber6
maskBooleantrue

方法

//输入完成后触发,(输入长度为密码长度时完成)
@complet

示例

<template>
  <div id="app">
    <button @click="showHandler">显示密码框</button>
    <passwordKeyboard @complet="completHandler" :show="show">			     </passwordKeyboard>
  </div>
</template>

<script>
import passwordKeyboard from 'vue-password-keyboard'
export default {
  name: 'App',
  components: {
    passwordKeybord
  },
  data() {
    return {
      show: false,
      isHave: null
    }
  },
  mounted() {},
  methods: {
    showHandler() {
      this.show = true
    },
    completHandler(pass) {
      this.show = false
    }
  }
}
</script>

在线预览

https://password-keybord-beryl.vercel.app

源码地址

https://github.com/flyingTodream/password-keybord.git

Keywords

password

FAQs

Package last updated on 07 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts