This is an overview of the most common usage of Switch. For more information about the available properties, methods, or events, head over to the complete API documentation for Switch.
<Switch> 是一个UI组件,允许用户在两种状态之间切换。
默认状态为 false 或OFF。
<Switch checked="true" /><Switch>使用提供双向数据绑定 v-model。
<Switch v-model="itemEnabled" />

| 名称 | 类型 | 描述 |
|---|---|---|
checked | Boolean | 获取或设置开关选择的值。 默认值: false。 |
| 名称 | 描述 |
|---|---|
checkedChange | 当开关选择改变时发出。 |
| Android | iOS |
|---|---|
android.widget.Switch | UISwitch |