mand-mobile/components/number-keyboard
xuxiaoyan c3c831069f example(number-keyboard): update 2019-01-09 15:59:39 +08:00
..
demo example(number-keyboard): update 2019-01-09 15:59:39 +08:00
test test: update mand-mobile introduction 2018-12-21 18:18:05 +08:00
README.en-US.md doc: update readme example link 2018-12-18 16:06:20 +08:00
README.md doc: update readme example link 2018-12-18 16:06:20 +08:00
board.vue fix(number-keyboard): remove pickup & confirm stopImmediatePropagation/prevent 2018-12-26 11:24:43 +08:00
component.js Initial commit 2018-03-26 16:04:04 +08:00
index.vue fix(picker, number-keyboard): add ref to inner components 2018-12-28 16:14:55 +08:00
key.vue fix(number-keyboard): remove pickup & confirm stopImmediatePropagation/prevent 2018-12-26 11:24:43 +08:00

README.en-US.md

title preview
NumberKeyboard https://mand-mobile.github.io/2x-doc/examples/#/number-keyboard

Generally used for financial scenarios such as password, verification code or payment amount input

Import

import { NumberKeyboard } from 'mand-mobile'

Vue.component(NumberKeyboard.name, NumberKeyboard)

Code Examples

API

NumberKeyboard Props

Props Description Type Default Note
v-model display keyboard or not Boolean false -
is-view inline display in page, otherwise it shows as Popup Boolean false -
type keyboard type String professional professional with confirmation key and decimal point is often used for price or amount input, simple is generally used for password or verification code input
disorder if numeric keys of keyboard are out of order Boolean false -
text-render customize value of specified key Function(value: string): string - replaceable key 0,1,...9,.
ok-text text of confirmation key String confirm -

NumberKeyboard Methods

show()

Display keyboard

hide()

Hide keyboard

NumberKeyboard Events

@enter(val)

Click numeric key

Props Description Type
val value Number
@delete()

Click delete key

@confirm()

Click confirmation key