|
|
||
|---|---|---|
| .. | ||
| demo | ||
| test | ||
| README.en-US.md | ||
| README.md | ||
| component.js | ||
| index.vue | ||
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 |