mand-mobile/components/switch
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 test: Improve unit test cases 2018-04-23 17:33:32 +08:00
README.en-US.md correct numberKeyBoard,radio and switch 2018-06-07 15:47:54 +08:00
README.md doc:update english docs 2018-05-21 19:57:33 +08:00
component.js Initial commit 2018-03-26 16:04:04 +08:00
index.vue Initial commit 2018-03-26 16:04:04 +08:00

README.en-US.md

title preview
Switch https://didi.github.io/mand-mobile/examples/#/switch

Switch between two status

Import

import { Switch } from 'mand-mobile'

Vue.component(Switch.name, Switch)

Code Examples

API

Switch Props

Props Description Type Default
v-model Whether it is on or off Boolean false
disabled Whether it is disabled or not Boolean false

Switch Instance Events

@change(isActive)
Props Description Type
isActive Whether it is on or off Boolean