Skip to content

Commit 15675cb

Browse files
coding-iceraotaohub
authored andcommitted
docs(useLongPress): change options to default (alibaba#2479)
1 parent 514df66 commit 15675cb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Listen for the long press event of the target element.
2727
useLongPress(
2828
onLongPress: (event: MouseEvent | TouchEvent) => void,
2929
target: Target,
30-
options?: {
30+
options: {
3131
delay?: number;
3232
moveThreshold?: { x?: number; y?: number };
3333
onClick?: (event: MouseEvent | TouchEvent) => void;
@@ -42,7 +42,7 @@ useLongPress(
4242
| ----------- | ---------------------------- | ----------------------------------------------------------- | ------- |
4343
| onLongPress | Trigger function | `(event: MouseEvent \| TouchEvent) => void` | - |
4444
| target | DOM node or Ref | `Element` \| `() => Element` \| `MutableRefObject<Element>` | - |
45-
| options | Optional configuration items | `Options` | - |
45+
| options | Optional configuration items | `Options` | `{}` |
4646

4747
### Options
4848

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ nav:
2727
useLongPress(
2828
onLongPress: (event: MouseEvent | TouchEvent) => void,
2929
target: Target,
30-
options?: {
30+
options: {
3131
delay?: number;
3232
moveThreshold?: { x?: number; y?: number };
3333
onClick?: (event: MouseEvent | TouchEvent) => void;
@@ -42,7 +42,7 @@ useLongPress(
4242
| ----------- | ---------------- | ----------------------------------------------------------- | ------ |
4343
| onLongPress | 触发函数 | `(event: MouseEvent \| TouchEvent) => void` | - |
4444
| target | DOM 节点或者 Ref | `Element` \| `() => Element` \| `MutableRefObject<Element>` | - |
45-
| options | 可选配置项 | `Options` | - |
45+
| options | 可选配置项 | `Options` | `{}` |
4646

4747
### Options
4848

0 commit comments

Comments
 (0)