All Projects → helicopters → wc-keyboard

helicopters / wc-keyboard

Licence: other
自定义数字键盘, 仿照大众点评闪惠买单的键盘

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to wc-keyboard

PianoView
Fully custumisable piano keyboard view with IBDesignable properties in swift
Stars: ✭ 34 (-49.25%)
Mutual labels:  keyboard
launchlet
Make the web yours.
Stars: ✭ 34 (-49.25%)
Mutual labels:  keyboard
rasp vusb
This repo explains how to turn your Raspberry Pi Zero into USB Keyboard and Mouse. Also provides sample code and binaries to control them.
Stars: ✭ 85 (+26.87%)
Mutual labels:  keyboard
keynavish
Control the mouse with the keyboard, on Windows.
Stars: ✭ 59 (-11.94%)
Mutual labels:  keyboard
react-native-sticky-keyboard-accessory
📎 A sticky wrapper above keyboard to include whatever you want.
Stars: ✭ 22 (-67.16%)
Mutual labels:  keyboard
aframe-keyboard
An Aframe component that renders a fully functional 3D keyboard, that works on mobile, desktop browers, and VR headsets!
Stars: ✭ 23 (-65.67%)
Mutual labels:  keyboard
DialogUi
关于toast、等待框、对话框、选择框、地址选择框、软键盘等工具的封装
Stars: ✭ 49 (-26.87%)
Mutual labels:  keyboard
cAndroid
cAndroid is tool for control your PC by Android phone
Stars: ✭ 23 (-65.67%)
Mutual labels:  keyboard
hotkey
⌨️ cross-platform hotkey package
Stars: ✭ 82 (+22.39%)
Mutual labels:  keyboard
waffle microdox
Microdox Keyboard Build Guides
Stars: ✭ 19 (-71.64%)
Mutual labels:  keyboard
uchroma
An advanced driver for Razer Chroma hardware in Linux
Stars: ✭ 45 (-32.84%)
Mutual labels:  keyboard
react-keyevent
An easy-to-use keyboard event react component, Package size less than 3kb
Stars: ✭ 38 (-43.28%)
Mutual labels:  keyboard
react-native-awesome-pin
A highly interactive and customisable PIN code screen for React Native.
Stars: ✭ 28 (-58.21%)
Mutual labels:  keyboard
masterkeys-linux
MasterKeys SDK for Linux
Stars: ✭ 22 (-67.16%)
Mutual labels:  keyboard
keyd
A key remapping daemon for linux.
Stars: ✭ 687 (+925.37%)
Mutual labels:  keyboard
vue-number-keyboard
vue-number-keyboard是基于VUE实现的数字键盘插件,当前支持整数、小数数字输入、乱序键盘,demo中给出了常用的验证码、金额数字示例。数字键盘的大小包括字体尺寸支持响应式。
Stars: ✭ 51 (-23.88%)
Mutual labels:  keyboard
react-native-custom-keyboard-kit
React Native Custom Keyboard - Use your own custom keyboard instead of the system keyboard with React Native Custom Keyboard Kit. Its working on Android and iOS.
Stars: ✭ 83 (+23.88%)
Mutual labels:  keyboard
BadUSB
Personal implementation of the BadUSB exploit with an Atmel 8-bit AVR ATTiny85 acting as a HID keyboard
Stars: ✭ 63 (-5.97%)
Mutual labels:  keyboard
react-native-emoji-input
A fully-featured emoji keyboard ⌨️ for React Native ⚛️
Stars: ✭ 67 (+0%)
Mutual labels:  keyboard
PianoKeyboard
Piano keyboard view for iOS, in Swift
Stars: ✭ 105 (+56.72%)
Mutual labels:  keyboard

wc-keyboard

基于 vue 封装的一个自定义数字键盘 + 输入框, 仿照大众点评闪惠买单.

why?

  1. 刚开始选用 input type = tel, 发现移动端没有办法输入小数
  2. 换成 input type = text, 发现唤起的键盘不是数字键盘
  3. 最终选择 input type = number, 又发现验证规则有部分实现不了

效果

效果

更新

后来我想了下, 可以通过监听键盘点击事件, 然后拿到输入值的 keyCode 从而进行值的验证. 但是这样缺少一个自定义的输入框, 输入框无法实现类似大众点评那般.

感谢

xwpongithub/better-keyboard

使用方法

npm i wc-keyboard --save
import wcKeyBoard from 'wc-keyboard'
import 'wc-keyboard/style.css'
Vue.use(wcKeyBoard);
<wc-keyboard
	v-model="value"   // 输入框的值
	inter="5"         // 限制整数位数
	decimal="2"       // 小数位数
	placeholder="询问服务员后输入"
	label="消费金额"/>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].