[new feature] SwitchCell: add active-color & inactive-color prop (#2273)

This commit is contained in:
neverland
2018-12-12 15:52:04 +08:00
committed by GitHub
parent cac7e0beff
commit a4a2ce9635
3 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -57,9 +57,11 @@ use `loading` property to keep component in loading state
| loading | whether switch is loading | `Boolean` | `false` |
| disabled | whether to disable switch | `Boolean` | `false` |
| size | Size of switch | `String` | `24px` |
| active-color | Background of switch color when active | `String` | `#1989fa` |
| inactive-color | Background of switch color when inactive | `String` | `#fff` |
### Event
| Event | Description | Arguments |
|------|------|------|
| change | triggered when the on-off state is changed | checked: switch is on or not |
| change | triggered when the on-off state is changed | checked: switch is on or not |