mirror of
https://github.com/youzan/vant.git
synced 2025-10-16 16:04:04 +00:00
types(@vant/use): useScrollParent el can be undefined
This commit is contained in:
@@ -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(() => {
|
||||
|
Reference in New Issue
Block a user