mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
types(@vant/use): useScrollParent el can be undefined
This commit is contained in:
parent
0b9a6973d0
commit
767ca80499
@ -38,7 +38,7 @@ function getScrollParent(el: Element, root: ScrollElement = window) {
|
||||
return root;
|
||||
}
|
||||
|
||||
export function useScrollParent(el: Ref<Element>) {
|
||||
export function useScrollParent(el: Ref<Element | undefined>) {
|
||||
const scrollParent = ref();
|
||||
|
||||
onMounted(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user