@@ -80,14 +80,14 @@ npm start
8080| 参数 | 说明 | 类型 | 默认值 |
8181| -------------- | ------------------------------------------ | -------------------------------------- | ------------- |
8282| checked | 复选框是否被选中 | boolean | - |
83- | className | 附加className | string | - |
83+ | className | 附加 className | string | - |
8484| defaultChecked | 复选框是否默认选中 | boolean | false |
8585| disabled | 复选框是否禁用 | boolean | false |
8686| name | 与原生 checkbox input 一致 ` name ` | string | - |
87- | prefixCls | 组件className前缀 | string | ` rc-checkbox ` |
88- | 风格 | 包装器的内联样式 | ` React.CSSProperties ` | - |
87+ | prefixCls | 组件 className 前缀 | string | ` rc-checkbox ` |
88+ | style | 包装器的内联样式 | ` React.CSSProperties ` | - |
8989| type | 原生输入类型 | string | ` checkbox ` |
90- | 价值 | 与原生 checkbox input 一致 ` value ` | 字符串 \| 数字 \| 只读字符串 [ ] | - |
90+ | value | 与原生 checkbox input 一致 ` value ` | string \| number \| readonly string [ ] | - |
9191| onChange | 勾选状态改变时回调 | ` (event: CheckboxChangeEvent) => void ` | - |
9292
9393还支持其他本机输入属性。
@@ -96,8 +96,8 @@ npm start
9696
9797| 参数 | 说明 | 类型 |
9898| ------------- | ------------------------------ | ---------------------------------- |
99- | 模糊 | 从复选框中移除焦点 | ` () => void ` |
100- | 重点 | 聚焦复选框 | ` (options?: FocusOptions) => void ` |
99+ | blur | 从复选框中移除焦点 | ` () => void ` |
100+ | focus | 聚焦复选框 | ` (options?: FocusOptions) => void ` |
101101| input | 原生输入元素 | ` HTMLInputElement \| null ` |
102102| nativeElement | 包装元素 | ` HTMLElement \| null ` |
103103
0 commit comments