🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

jx-vue2-keyboard

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jx-vue2-keyboard

A Vue.js project,vue-keyboard,vuejs,vue

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

介绍

基于vue2.0的数字键盘组件

组件使用

安装

npm install jx-vue2-keyboard --save

使用

<template>
  <div id="app">
    <keyboard 
    :show="showKeyBoard"
    title="请输入数字"
    :decimalsLen="3"
    btnColor="#F23838"
    @getVal="getKeyBoardVal"
    @close="showKeyBoard=false" 
		></keyboard>
  </div>
</template>
 <script>
 import keyboard from 'jx-vue2-keyboard'; 
 export default {
  name: 'App', 
  data() {
    return {
      showKeyBoard: false,
      amount: ''
    }
  },
  components: {
    keyboard
  },
  methods: {
    getKeyBoardVal(val) {
      this.showKeyBoard = true; 
      this.amount = val;
    } 
  } 
 }
 </script>

属性配置说明

show  是否显示键盘;
title 键盘标题;
decimalsLen 数字最大位小数;
btnColor 确定按钮颜色;
@getVal 获取输入的值;
@close 关闭键盘


Keywords

keyboard

FAQs

Package last updated on 11 Nov 2022

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