Appearance
- default
- chenghua
- shijingshan
- sybz
- gulou
无数据
Appearance
https://element-plus.org/zh-CN/component/switch.html
<s-switch v-model="cc"></s-switch>| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| theme | 主题样式,支持 default / chenghua / shijingshan / sybz | string | default |
| active-text | switch 打开时的文字描述 | string | '' |
| inactive-text | switch 的状态为 off 时的文字描述 | string | '' |
| before-change | switch 状态改变前的钩子, 返回 false 或者返回 Promise 且被 reject 则停止切换 | boolean / Function | - |
| width | switch 宽度 | string / number | '' |
| 属性名 | 说明 | 类型 |
|---|---|---|
| change | switch 状态发生变化时的回调函数 | Function |
before-change,自动处理异步切换时的 loading 状态。inline-prompt,并将文案显示在开关两侧。