NumberKeyboard

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

Import

import { NumberKeyboard } from  'mand-mobile-next'

Vue.createApp().component(NumberKeyboard.name, NumberKeyboard)

Code Examples

API

NumberKeyboard Props

PropsDescriptionTypeDefaultNote
v-modeldisplay keyboard or notBooleanfalse-
is-viewinline display in page, otherwise it shows as PopupBooleanfalse-
typekeyboard typeStringprofessionalprofessional with confirmation key and decimal point is often used for price or amount input, simple is generally used for password or verification code input
disorderif numeric keys of keyboard are out of orderBooleanfalse-
is-hide-confirmautomatically hide the keyboard when confirmingBooleantrue-
text-rendercustomize value of specified keyFunction(value: string): string-replaceable key 0,1,...9,.
ok-texttext of confirmation keyStringconfirm-

NumberKeyboard Slots

default

<md-number-keyboard>
  <md-icon name="security"></md-icon>&nbsp;安全支付
</md-number-keyboard>

NumberKeyboard Methods

show()

Display keyboard

hide()

Hide keyboard

NumberKeyboard Events

@enter(val)

Click numeric key

PropsDescriptionType
valvalueNumber
@delete()

Click delete key

@confirm()

Click confirmation key