export declare const preventScrollPropagation: { watch: typeof watch; unwatch: typeof unwatch; }; /** * 阻止滚轮事件向父级元素传播. 以防止滚动到顶部或底部时, 父级元素也滚动. * ant-design-vue 的 Select 组件下拉框默认插入在 body 下, 会导致滚动到顶部或底部时, body 也滚动(如果可以滚动的话). * 但一般情况下 body 元素不会滚动, 滚动传播的问题不易发现. * @see https://stackoverflow.com/a/16324762 * @param element 要阻止滚轮事件向父级元素传播的元素 * @returns 释放事件监听器 */ declare function watch(element: HTMLElement): () => void; /** * 取消阻止滚轮事件向父级元素传播, 释放事件监听器. * @param element */ declare function unwatch(element: HTMLElement): void; export {};