iking-utils-test
Version:
金合前端工具库(1.2.9版本之后需要注册KEY)
16 lines (15 loc) • 584 B
TypeScript
import { addClass, removeClass, getViewportOffset, hackCss, on, off, once, useRafThrottle } from './dom-utils';
declare const _default: {
checkTextOverfolw: (element: HTMLElement) => boolean;
copyText: (text: string) => Promise<boolean>;
addClass: typeof addClass;
removeClass: typeof removeClass;
getViewportOffset: typeof getViewportOffset;
hackCss: typeof hackCss;
on: typeof on;
off: typeof off;
once: typeof once;
useRafThrottle: typeof useRafThrottle;
addStyelsheet: (href: string) => void;
};
export default _default;