docs(@vant/use): add usePageVisibility doc

This commit is contained in:
chenjiahan
2020-10-04 18:30:10 +08:00
parent c24d0aaa00
commit d5104ec81c
3 changed files with 46 additions and 10 deletions
@@ -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;
};
```
## 参数