feat(Switch): support number type of size prop (#4913)

This commit is contained in:
neverland
2019-11-04 17:29:56 +08:00
committed by GitHub
parent 7948b59063
commit 9ace3320b8
5 changed files with 20 additions and 4 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ export default {
| v-model | 开关选中状态 | *any* | `false` | - |
| loading | 是否为加载状态 | *boolean* | `false` | - |
| disabled | 是否为禁用状态 | *boolean* | `false` | - |
| size | 开关尺寸 | *string* | `30px` | - |
| size | 开关尺寸,默认单位为`px` | *string \| number* | `30px` | 2.2.11 |
| active-color | 打开时的背景色 | *string* | `#1989fa` | - |
| inactive-color | 关闭时的背景色 | *string* | `#fff` | - |
| active-value | 打开时的值 | *any* | `true` | - |