File tree 2 files changed +10
-10
lines changed
packages/hooks/src/useClickAway
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ useClickAway<T extends Event = Event>(
48
48
49
49
### Params
50
50
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 ` |
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ useClickAway<T extends Event = Event>(
48
48
49
49
### Params
50
50
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 ` |
You can’t perform that action at this time.
0 commit comments