update rc-switch (#14560)

close #7181
This commit is contained in:
zombieJ 2019-01-26 01:26:48 +08:00 committed by GitHub
parent d1fde3670c
commit 633c3aeb25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -23,7 +23,8 @@ Switching Selector.
| loading | loading state of switch | boolean | false |
| size | the size of the `Switch`, options: `default` `small` | string | default |
| unCheckedChildren | content to be shown when the state is unchecked | string\|ReactNode | |
| onChange | a callback function, can be executed when the checked state is changing | Function(checked:Boolean) | |
| onChange | trigger when the checked state is changing | Function(checked: boolean, event: Event) | |
| onClick | trigger when clicked | Function(checked: boolean, event: Event) | |
| className | additional class to Switch | string | - |
## Methods

View File

@ -24,7 +24,8 @@ title: Switch
| loading | 加载中的开关 | boolean | false |
| size | 开关大小,可选值:`default` `small` | string | default |
| unCheckedChildren | 非选中时的内容 | string\|ReactNode | |
| onChange | 变化时回调函数 | Function(checked:Boolean) | |
| onChange | 变化时回调函数 | Function(checked: boolean, event: Event) | |
| onClick | 点击时回调函数 | Function(checked: boolean, event: Event) | |
| className | Switch 器类名 | string | - |
## 方法

View File

@ -73,7 +73,7 @@
"rc-select": "^8.6.7",
"rc-slider": "~8.6.3",
"rc-steps": "~3.3.0",
"rc-switch": "~1.8.0",
"rc-switch": "~1.9.0",
"rc-table": "~6.4.0",
"rc-tabs": "~9.6.0",
"rc-time-picker": "~3.6.1",