mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-29 18:50:00 +08:00
parent
d1fde3670c
commit
633c3aeb25
@ -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
|
||||
|
@ -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 | - |
|
||||
|
||||
## 方法
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user