[new feature] Switch: add active-value & inactive-value prop (#2590)

This commit is contained in:
neverland
2019-01-22 22:17:04 +08:00
committed by GitHub
parent 905a5891c9
commit a16786b5ad
3 changed files with 20 additions and 6 deletions
+3 -1
View File
@@ -96,12 +96,14 @@ export default {
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| v-model | 开关选中状态 | `Boolean` | `false` | - |
| v-model | 开关选中状态 | `any` | `false` | - |
| loading | 是否为加载状态 | `Boolean` | `false` | - |
| disabled | 是否为禁用状态 | `Boolean` | `false` | - |
| size | 开关尺寸 | `String` | `30px` | 1.0.0 |
| active-color | 打开时的背景色 | `String` | `#1989fa` | 1.4.2 |
| inactive-color | 关闭时的背景色 | `String` | `#fff` | 1.4.2 |
| active-value | 打开时的值 | `any` | `true` | 1.5.6 |
| inactive-value | 关闭时的值 | `any` | `false` | 1.5.6 |
### Event