UNPKG

@heartlee/element-components

Version:

a component library for Vue 3 base on element-plus. Forked from element-pro-components. 根据业务需求自用,如需使用,请移步官方仓库使用

13 lines (12 loc) 669 B
/** * NOTE Referencing directly from element-plus will cause an error. attention https://github.com/element-plus/element-plus/issues/1477 */ import ResizeObserver from 'resize-observer-polyfill'; declare type CustomizedHTMLElement<T> = HTMLElement & T; export declare type ResizableElement = CustomizedHTMLElement<{ __resizeListeners__: Array<(...args: unknown[]) => unknown>; __ro__: ResizeObserver; }>; export declare const addResizeListener: (element: ResizableElement, fn: (...args: unknown[]) => unknown) => void; export declare const removeResizeListener: (element: ResizableElement, fn: (...args: unknown[]) => unknown) => void; export {};