mand-mobile/components/codebox
moyus 5db50ccf89 fix: style refactor 2018-09-14 16:03:24 +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 feat(codebox): update 2.0 style and feature 2018-08-27 19:16:59 +08:00
README.md feat(codebox): update 2.0 style and feature 2018-08-27 19:16:59 +08:00
component.js Initial commit 2018-03-26 16:04:04 +08:00
index.vue fix: style refactor 2018-09-14 16:03:24 +08:00

README.en-US.md

title preview
CodeBox https://didi.github.io/mand-mobile/examples/#/codebox

Import

import { Codebox } from 'mand-mobile'

Vue.component(Codebox.name, Codebox)

Code Examples

API

Codebox Props

Props Description Type Default
v-model captcha String -
maxlength maxlength of captacha, set to -1 as no restriction Number 4
autofocus immediately open simulated keyboard, not work for system keyboard Boolean false
mask whether to mask code or not Boolean false
disabled disable input Boolean false
justify take full space Boolean false
closable whether to hide keyboard when clicking away Boolean true
ok-text the text of confirmation button of the keyboard String Confirm
disorder whether to use random keyboard layout or not Boolean false
system whether to use system keyboard or simulated keyboard Boolean false

Codebox Methods

focus()
blur()

Hide keyboard

Codebox Events

@submit(code)

Invoked when user submit