From 8a32e861d8060c147d8901c94919aeaa7f06acdb Mon Sep 17 00:00:00 2001 From: Zhousg Date: Sun, 14 May 2023 19:25:28 +0800 Subject: [PATCH] docs(vant-use): fix docs type (#11844) * docs(useClickAway): fix docs type * docs(useCountDown): fix docs type --- packages/vant/docs/markdown/use-click-away.en-US.md | 5 ++++- packages/vant/docs/markdown/use-click-away.zh-CN.md | 5 ++++- packages/vant/docs/markdown/use-count-down.en-US.md | 2 +- packages/vant/docs/markdown/use-count-down.zh-CN.md | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/vant/docs/markdown/use-click-away.en-US.md b/packages/vant/docs/markdown/use-click-away.en-US.md index 7374ca484..7af7f7788 100644 --- a/packages/vant/docs/markdown/use-click-away.en-US.md +++ b/packages/vant/docs/markdown/use-click-away.en-US.md @@ -64,7 +64,10 @@ type Options = { }; function useClickAway( - target: Element | Ref, + target: + | Element + | Ref + | Array>, listener: EventListener, options?: Options ): void; diff --git a/packages/vant/docs/markdown/use-click-away.zh-CN.md b/packages/vant/docs/markdown/use-click-away.zh-CN.md index 291314f94..97f2f7398 100644 --- a/packages/vant/docs/markdown/use-click-away.zh-CN.md +++ b/packages/vant/docs/markdown/use-click-away.zh-CN.md @@ -66,7 +66,10 @@ type Options = { }; function useClickAway( - target: Element | Ref, + target: + | Element + | Ref + | Array>, listener: EventListener, options?: Options ): void; diff --git a/packages/vant/docs/markdown/use-count-down.en-US.md b/packages/vant/docs/markdown/use-count-down.en-US.md index c19268ca5..70f513f84 100644 --- a/packages/vant/docs/markdown/use-count-down.en-US.md +++ b/packages/vant/docs/markdown/use-count-down.en-US.md @@ -93,7 +93,7 @@ function useCountDown(options: UseCountDownOptions): CountDown; | time | Total time, unit milliseconds | _number_ | - | | millisecond | Whether to enable millisecond render | _boolean_ | `false` | | onChange | Triggered when count down changed | _(current: CurrentTime) => void_ | - | -| onFinish | Triggered when count down finished | - | +| onFinish | Triggered when count down finished | _() => void_ | - | ### Return Value diff --git a/packages/vant/docs/markdown/use-count-down.zh-CN.md b/packages/vant/docs/markdown/use-count-down.zh-CN.md index 31361c6f7..13517f7b4 100644 --- a/packages/vant/docs/markdown/use-count-down.zh-CN.md +++ b/packages/vant/docs/markdown/use-count-down.zh-CN.md @@ -97,7 +97,7 @@ function useCountDown(options: UseCountDownOptions): CountDown; | time | 倒计时时长,单位毫秒 | _number_ | - | | millisecond | 是否开启毫秒级渲染 | _boolean_ | `false` | | onChange | 倒计时改变时触发的回调函数 | _(current: CurrentTime) => void_ | - | -| onFinish | 倒计时结束时触发的回调函数 | - | +| onFinish | 倒计时结束时触发的回调函数 | _() => void_ | - | ### 返回值