mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
Add Switch size to API doc
This commit is contained in:
parent
290b739cd1
commit
1d7350cccd
@ -19,8 +19,9 @@
|
||||
|
||||
| 参数 | 说明 | 类型 | 可选值 |默认值 |
|
||||
|-----------|------------------------------------------|------------|-------|--------|
|
||||
| checked | 指定当前是否选中 | boolean | | false |
|
||||
| defaultChecked | 初始是否选中 | boolean | | false |
|
||||
| onChange | 变化时回调函数 | Function(checked:boolean) | | |
|
||||
| checkedChildren | 选中时的内容 | React Node | | |
|
||||
| unCheckedChildren | 非选中时的内容 | React Node | | |
|
||||
| checked | 指定当前是否选中 | boolean | | false |
|
||||
| defaultChecked | 初始是否选中 | boolean | | false |
|
||||
| onChange | 变化时回调函数 | Function(checked:boolean) | | |
|
||||
| checkedChildren | 选中时的内容 | React Node | | |
|
||||
| unCheckedChildren | 非选中时的内容 | React Node | | |
|
||||
| size | 开关大小 | string | 'default' or 'small' | 'default' |
|
||||
|
Loading…
Reference in New Issue
Block a user