mand-mobile/components/switch
remote-star 65f8dacfe1 doc(readme): adjust the example path for each component in its readme doc. 2018-03-29 14:56:07 +08:00
..
demo Initial commit 2018-03-26 16:04:04 +08:00
test Initial commit 2018-03-26 16:04:04 +08:00
README.md doc(readme): adjust the example path for each component in its readme doc. 2018-03-29 14:56:07 +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.md

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

开关按钮,用于表示开关状态/两种状态之间的切换

引入

import { Switch } from 'md-mobile'

Vue.component(Switch.name, Switch)

代码演示

API

Switch Props

属性 说明 类型 默认值
v-model 打开或者关闭 Boolean false
disabled 是否禁用 Boolean false

Switch Events

@change(isActive)

事件说明

属性 说明 类型
isActive 开关状态,打开或者关闭 Boolean