Skip to content

Commit

Permalink
docs(useInViewport): add options params undefined type
Browse files Browse the repository at this point in the history
  • Loading branch information
coding-ice committed Jan 17, 2024
1 parent 34148f3 commit 96583e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions packages/hooks/src/useInViewport/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ const [inViewport, ratio] = useInViewport(

### Params

| Property | Description | Type | Default |
| -------- | ---------------------------------- | ---------------------- | ------- |
| target | DOM elements or Ref, support array | `Target` \| `Target[]` | - |
| options | Setting | `Options` | - |
| Property | Description | Type | Default |
| -------- | ---------------------------------- | ------------------------ | ------- |
| target | DOM elements or Ref, support array | `Target` \| `Target[]` | - |
| options | Setting | `Options` \| `undefined` | - |

### Options

Expand Down
8 changes: 4 additions & 4 deletions packages/hooks/src/useInViewport/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ const [inViewport, ratio] = useInViewport(

### Params

| 参数 | 说明 | 类型 | 默认值 |
| ------- | -------------------------- | ---------------------- | ------ |
| target | DOM 节点或者 Ref,支持数组 | `Target` \| `Target[]` | - |
| options | 设置 | `Options` | - |
| 参数 | 说明 | 类型 | 默认值 |
| ------- | -------------------------- | ------------------------ | ------ |
| target | DOM 节点或者 Ref,支持数组 | `Target` \| `Target[]` | - |
| options | 设置 | `Options` \| `undefined` | - |

### Options

Expand Down

0 comments on commit 96583e8

Please sign in to comment.