[new feature] SwitchCell: add active-color & inactive-color prop (#2273)
This commit is contained in:
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user