types(@vant/use): improve Ref param typing
This commit is contained in:
@@ -39,7 +39,7 @@ function getScrollParent(el: Element, root: ScrollElement = window) {
|
||||
}
|
||||
|
||||
export function useScrollParent(el: Ref<Element | undefined>) {
|
||||
const scrollParent = ref();
|
||||
const scrollParent = ref<Element | Window>();
|
||||
|
||||
onMounted(() => {
|
||||
if (el.value) {
|
||||
|
||||
Reference in New Issue
Block a user