Appearance
Switch 开关
组件来源:Element-Plus
https://element-plus.org/zh-CN/component/switch.html
示例
API
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| activeText | switch 打开时的文字描述 | string | ‘’ |
| inactiveText | switch 的状态为 off 时的文字描述 | string | ‘’ |
| activeValue | switch 状态为 on 时的值 | boolean | string | number | true |
| inactiveValue | switch的状态为 off 时的值 | boolean | string | number | false |
| disabled | 是否禁用 | boolean | false |