chore(@vant/use): export types

This commit is contained in:
chenjiahan
2020-10-06 09:49:17 +08:00
parent 7966183af1
commit b541226cdc
5 changed files with 15 additions and 15 deletions
@@ -11,7 +11,7 @@ function isElement(node: Element) {
// http://w3help.org/zh-cn/causes/SD9013
// http://stackoverflow.com/questions/17016740/onscroll-function-is-not-working-for-chrome
export function getScrollParent(el: Element, root: ScrollElement = window) {
function getScrollParent(el: Element, root: ScrollElement = window) {
let node = el;
while (node && node !== root && isElement(node)) {