Skip to content

Commit

Permalink
doc(Dropdown.Item): add click event description
Browse files Browse the repository at this point in the history
  • Loading branch information
liqiuqiui committed Dec 14, 2023
1 parent 23450fc commit d71e649
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/components/dropdown/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ It is suitable for filtering, sorting and changing the display range or order of
| highlight | Highlight | `boolean` | `false` |
| key | The unique value | `string` | - |
| title | Title | `ReactNode` | - |
| onClick | The click event | `(event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void` | - |
17 changes: 9 additions & 8 deletions src/components/dropdown/index.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@

### 属性

| 属性 | 说明 | 类型 | 默认值 |
| -------------- | --------------------------- | ----------------- | ------- |
| arrow | 自定义 arrow | `React.ReactNode` | - |
| destroyOnClose | 不可见时是否销毁 `DOM` 结构 | `boolean` | `false` |
| forceRender | 被隐藏时是否渲染 `DOM` 结构 | `boolean` | `false` |
| highlight | 高亮 | `boolean` | `false` |
| key | 唯一值 | `string` | - |
| title | 标题 | `ReactNode` | - |
| 属性 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| arrow | 自定义 arrow | `React.ReactNode` | - |
| destroyOnClose | 不可见时是否销毁 `DOM` 结构 | `boolean` | `false` |
| forceRender | 被隐藏时是否渲染 `DOM` 结构 | `boolean` | `false` |
| highlight | 高亮 | `boolean` | `false` |
| key | 唯一值 | `string` | - |
| title | 标题 | `ReactNode` | - |
| onClick | 点击事件 | `(event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void` | - |

0 comments on commit d71e649

Please sign in to comment.