docs(@vant/use): add usePageVisibility doc
This commit is contained in:
@@ -57,15 +57,15 @@ export default {
|
||||
## 类型定义
|
||||
|
||||
```ts
|
||||
type Options = {
|
||||
eventName?: string;
|
||||
};
|
||||
|
||||
function useClickAway(
|
||||
target: Element | Ref<Element>,
|
||||
listener: EventListener,
|
||||
options?: Options
|
||||
): void;
|
||||
|
||||
type Options = {
|
||||
eventName?: string;
|
||||
};
|
||||
```
|
||||
|
||||
## 参数
|
||||
|
||||
Reference in New Issue
Block a user