diff --git a/packages/switch-cell/en-US.md b/packages/switch-cell/en-US.md index 86d5c380b..c911c4842 100644 --- a/packages/switch-cell/en-US.md +++ b/packages/switch-cell/en-US.md @@ -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 | \ No newline at end of file +| change | triggered when the on-off state is changed | checked: switch is on or not | diff --git a/packages/switch-cell/index.vue b/packages/switch-cell/index.vue index 2f7ffa937..342f4f93f 100644 --- a/packages/switch-cell/index.vue +++ b/packages/switch-cell/index.vue @@ -29,6 +29,8 @@ export default create({ border: Boolean, loading: Boolean, disabled: Boolean, + activeColor: String, + inactiveColor: String, size: { type: String, default: '24px' diff --git a/packages/switch-cell/zh-CN.md b/packages/switch-cell/zh-CN.md index eeb313455..27b411c54 100644 --- a/packages/switch-cell/zh-CN.md +++ b/packages/switch-cell/zh-CN.md @@ -57,6 +57,8 @@ export default { | loading | 是否为加载状态 | `Boolean` | `false` | - | | disabled | 是否为禁用状态 | `Boolean` | `false` | - | | size | 开关尺寸 | `String` | `24px` | 1.1.11 | +| active-color | 开关时的背景色 | `String` | `#1989fa` | 1.4.10 | +| inactive-color | 开关时的背景色 | `String` | `#fff` | 1.4.10 | ### Event