1.1.1 • Published 11 months ago

@yeepay/virtual-keyboard v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
11 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

11 months ago

1.1.0

12 months ago

1.0.11

12 months ago

1.0.12

12 months ago

1.0.10

12 months ago

1.0.2

12 months ago

1.0.9

12 months ago

1.0.8

12 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago