Codebox

Import

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

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

Code Examples

API

Codebox Props

PropsDescriptionTypeDefault
v-modelcaptchaString-
maxlengthmaxlength of captacha, set to -1 as no restrictionNumber4
autofocusimmediately open simulated keyboard, not work for system keyboardBooleanfalse
maskwhether to mask code or notBooleanfalse
disableddisable inputBooleanfalse
justifytake full spaceBooleanfalse
closablewhether to hide keyboard when clicking awayBooleantrue
ok-textthe text of confirmation button of the keyboardStringConfirm
disorderwhether to use random keyboard layout or notBooleanfalse
systemwhether to use system keyboard or simulated keyboardBooleanfalse
is-viewwhether to show as inline element or append to the bodyBooleanfalse

Codebox Methods

focus()
blur()

Hide keyboard

Codebox Events

@submit(code)

Invoked when user submit