mand-mobile/components/number-keyboard
xuxiaoyan 9b365ddb74 site&example:add default title to examples & update docs 2018-06-21 11:34:49 +08:00
..
demo site&example:add default title to examples & update docs 2018-06-21 11:34:49 +08:00
test Initial commit 2018-03-26 16:04:04 +08:00
README.en-US.md correct numberKeyBoard,radio and switch 2018-06-07 15:47:54 +08:00
README.md doc(readme): adjust the example path for each component in its readme doc. 2018-03-29 14:56:07 +08:00
component.js Initial commit 2018-03-26 16:04:04 +08:00
index.vue fix:add popbox background for iphonex gap 2018-05-09 10:46:11 +08:00
keyboard.vue style:optimize theme stylus variables 2018-06-09 20:44:42 +08:00

README.en-US.md

title preview
NumberKeyboard https://didi.github.io/mand-mobile/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 -
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