mand-mobile/components/codebox
xuxiaoyan 2a0080096c test: update test util & cases 2019-01-13 17:59:27 +08:00
..
demo site&example:add default title to examples & update docs 2018-06-21 11:34:49 +08:00
test test: update test util & cases 2019-01-13 17:59:27 +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
component.js feat(code clean up): 2018-09-24 15:48:57 +08:00
index.vue fix(update style): filled item border color 2018-12-03 19:08:58 +08:00

README.en-US.md

title preview
CodeBox https://mand-mobile.github.io/2x-doc/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