Skip to content

Commit

Permalink
fixes: useClickAway文档描述修改
Browse files Browse the repository at this point in the history
  • Loading branch information
superBigPotato committed Nov 28, 2024
1 parent c7bb04c commit 0ba0544
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions packages/hooks/src/useClickAway/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ useClickAway<T extends Event = Event>(

### Params

| Property | Description | Type | Default |
| ----------- | ------------------------------------------- | ------------------------------------------ | ------- |
| onClickAway | Trigger Function | `(event: T) => void` | - |
| target | DOM elements or Ref, support array | `Target` \| `Target[]` | - |
| eventName | Set the event to be listened, support array | `DocumentEventKey` \| `DocumentEventKey[]` | `click` |
| Property | Description | Type | Default |
| ----------- | ---------------------------------------------- | ------------------------------------------ | ------- |
| onClickAway | Trigger Function | `(event: T) => void` | - |
| target | DOM elements or Ref or Function, support array | `Target` \| `Target[]` | - |
| eventName | Set the event to be listened, support array | `DocumentEventKey` \| `DocumentEventKey[]` | `click` |
10 changes: 5 additions & 5 deletions packages/hooks/src/useClickAway/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ useClickAway<T extends Event = Event>(

### Params

| 参数 | 说明 | 类型 | 默认值 |
| ----------- | ---------------------------- | ------------------------------------------ | ------- |
| onClickAway | 触发函数 | `(event: T) => void` | - |
| target | DOM 节点或者 Ref,支持数组 | `Target` \| `Target[]` | - |
| eventName | 指定需要监听的事件,支持数组 | `DocumentEventKey` \| `DocumentEventKey[]` | `click` |
| 参数 | 说明 | 类型 | 默认值 |
| ----------- | ----------------------------------- | ------------------------------------------ | ------- |
| onClickAway | 触发函数 | `(event: T) => void` | - |
| target | DOM 节点或者 Ref 或者函数,支持数组 | `Target` \| `Target[]` | - |
| eventName | 指定需要监听的事件,支持数组 | `DocumentEventKey` \| `DocumentEventKey[]` | `click` |

0 comments on commit 0ba0544

Please sign in to comment.