66
77<p align =" center " ><a href =" ./README.md " >English</a > | 简体中文</p >
88
9-
109<div align =" center " >
1110
1211[ ![ NPM version] [ npm-image ]] [ npm-url ]
@@ -77,29 +76,29 @@ npm start
7776
7877### Checkbox
7978
80- | 参数 | 说明 | 类型 | 默认值 |
81- | -------------- | ------------------------------------------ | -------------------------------------- | ------------- |
82- | checked | 复选框是否被选中 | boolean | - |
83- | className | 附加 className | string | - |
84- | defaultChecked | 复选框是否默认选中 | boolean | false |
85- | disabled | 复选框是否禁用 | boolean | false |
86- | name | 与原生 checkbox input 一致 ` name ` | string | - |
79+ | 参数 | 说明 | 类型 | 默认值 |
80+ | -------------- | ---------------------------------- | -------------------------------------- | ------------- |
81+ | checked | 复选框是否被选中 | boolean | - |
82+ | className | 附加 className | string | - |
83+ | defaultChecked | 复选框是否默认选中 | boolean | false |
84+ | disabled | 复选框是否禁用 | boolean | false |
85+ | name | 与原生 checkbox input 一致 ` name ` | string | - |
8786| prefixCls | 组件 className 前缀 | string | ` rc-checkbox ` |
88- | style | 包装器的内联样式 | ` React.CSSProperties ` | - |
89- | type | 原生输入类型 | string | ` checkbox ` |
90- | value | 与原生 checkbox input 一致 ` value ` | string \| number \| readonly string[ ] | - |
91- | onChange | 勾选状态改变时回调 | ` (event: CheckboxChangeEvent) => void ` | - |
87+ | style | 包装器的内联样式 | ` React.CSSProperties ` | - |
88+ | type | 原生输入类型 | string | ` checkbox ` |
89+ | value | 与原生 checkbox input 一致 ` value ` | string \| number \| readonly string[ ] | - |
90+ | onChange | 勾选状态改变时回调 | ` (event: CheckboxChangeEvent) => void ` | - |
9291
9392还支持其他本机输入属性。
9493
9594### Ref
9695
97- | 参数 | 说明 | 类型 |
98- | ------------- | ------------------------------ | ---------------------------------- |
96+ | 参数 | 说明 | 类型 |
97+ | ------------- | ------------------ | ---------------------------------- |
9998| blur | 从复选框中移除焦点 | ` () => void ` |
100- | focus | 聚焦复选框 | ` (options?: FocusOptions) => void ` |
101- | input | 原生输入元素 | ` HTMLInputElement \| null ` |
102- | nativeElement | 包装元素 | ` HTMLElement \| null ` |
99+ | focus | 聚焦复选框 | ` (options?: FocusOptions) => void ` |
100+ | input | 原生输入元素 | ` HTMLInputElement \| null ` |
101+ | nativeElement | 包装元素 | ` HTMLElement \| null ` |
103102
104103## 本地开发
105104
@@ -108,6 +107,8 @@ npm install
108107npm start
109108```
110109
110+ dumi 站点默认运行在 ` http://localhost:8000 ` 。
111+
111112``` bash
112113npm test
113114npm run tsc
0 commit comments