UNPKG

@yeepay/virtual-keyboard

Version:

YeePay Virtual Keyboard Component

31 lines (27 loc) 833 B
// 数字键盘布局 export const NUMBER_LAYOUT = [ ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'], ['-', '/', ':', ';', '(', ')', '$', '&', '@', '"'], ['#+=', '.', ',', '?', '!', '\'', 'delete'], ['ABC', 'space', 'confirm'], ] // 字母键盘布局 export const LETTER_LAYOUT = [ ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'], ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'], ['shift', 'z', 'x', 'c', 'v', 'b', 'n', 'm', 'delete'], ['.?123', 'space', 'confirm'], ] // 符号键盘布局 export const SYMBOL_LAYOUT = [ ['[', ']', '{', '}', '#', '%', '^', '*', '+', '='], ['-', '\\', '|', '~', '<', '>', '$', '&', '@', '`'], ['123', '.', ',', '?', '!', '\'', 'delete'], ['ABC', 'space', 'confirm'], ] // 默认导出所有布局 export default { NUMBER_LAYOUT, LETTER_LAYOUT, SYMBOL_LAYOUT, }