Skip to content

Commit 0ba0544

Browse files
fixes: useClickAway文档描述修改
1 parent c7bb04c commit 0ba0544

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

packages/hooks/src/useClickAway/index.en-US.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ useClickAway<T extends Event = Event>(
4848

4949
### Params
5050

51-
| Property | Description | Type | Default |
52-
| ----------- | ------------------------------------------- | ------------------------------------------ | ------- |
53-
| onClickAway | Trigger Function | `(event: T) => void` | - |
54-
| target | DOM elements or Ref, support array | `Target` \| `Target[]` | - |
55-
| eventName | Set the event to be listened, support array | `DocumentEventKey` \| `DocumentEventKey[]` | `click` |
51+
| Property | Description | Type | Default |
52+
| ----------- | ---------------------------------------------- | ------------------------------------------ | ------- |
53+
| onClickAway | Trigger Function | `(event: T) => void` | - |
54+
| target | DOM elements or Ref or Function, support array | `Target` \| `Target[]` | - |
55+
| eventName | Set the event to be listened, support array | `DocumentEventKey` \| `DocumentEventKey[]` | `click` |

packages/hooks/src/useClickAway/index.zh-CN.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ useClickAway<T extends Event = Event>(
4848

4949
### Params
5050

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

0 commit comments

Comments
 (0)