From 767ca8049915c5f79ffcdd76f37e5df769cf4e8b Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Fri, 9 Oct 2020 20:27:51 +0800 Subject: [PATCH] types(@vant/use): useScrollParent el can be undefined --- packages/vant-use/src/useScrollParent/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vant-use/src/useScrollParent/index.ts b/packages/vant-use/src/useScrollParent/index.ts index ee71ee8bc..202c30d9d 100644 --- a/packages/vant-use/src/useScrollParent/index.ts +++ b/packages/vant-use/src/useScrollParent/index.ts @@ -38,7 +38,7 @@ function getScrollParent(el: Element, root: ScrollElement = window) { return root; } -export function useScrollParent(el: Ref) { +export function useScrollParent(el: Ref) { const scrollParent = ref(); onMounted(() => {