mand-mobile/components/switch
xuxiaoyan 73a1a40bcf example: remove empty style 2019-02-23 18:52:05 +08:00
..
demo example: remove empty style 2019-02-23 18:52:05 +08:00
test test: update mand-mobile introduction 2018-12-21 18:18:05 +08:00
README.en-US.md doc: update preview links 2019-01-29 16:31:24 +08:00
README.md doc: update preview links 2019-01-29 16:31:24 +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