1.1.1 • Published 5 months ago

@yeepay/virtual-keyboard v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

Vue 2.6.14

Introduction

虚拟键盘组件

Installation

npm install @yeepay/virtual-keyboard

Usage

Global

import YeepayKeyboard from '@yeepay/virtual-keyboard'
import Vue from 'vue'
import '@yeepay/virtual-keyboard/dist/style.css'

Vue.use(YeepayKeyboard)

Local

<template>
  <div>
    <YeepayKeyboard
      style="width: 400px;"
      :max-length="12"
      algorithms="RSA2048"
      @confirm="handleConfirm"
    />
  </div>
</template>
import YeepayKeyboard from '@yeepay/virtual-keyboard'

export default {
  components: {
    YeepayKeyboard
  },
  data() {
    return {
      value: ''
    }
  },
  methods: {
    handleConfirm(value) {
      this.value = value
      // {raw: 'xxxxx'}
    }
  }
}

Options

参数说明类型默认值
algorithms键盘算法 'SM2', 'RSA2048'string'RSA2048'
max-length最大输入长度number12
1.1.1

5 months ago

1.1.0

5 months ago

1.0.11

5 months ago

1.0.12

5 months ago

1.0.10

5 months ago

1.0.2

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago