style.d.ts 861 B

12345678910111213
  1. import { CSSProperties } from "vue";
  2. //#region ../../packages/utils/dom/style.d.ts
  3. declare const classNameToArray: (cls?: string) => string[];
  4. declare const hasClass: (el: Element, cls: string) => boolean;
  5. declare const addClass: (el: Element, cls: string) => void;
  6. declare const removeClass: (el: Element, cls: string) => void;
  7. declare const getStyle: (element: HTMLElement, styleName: keyof CSSProperties) => string;
  8. declare const setStyle: (element: HTMLElement, styleName: CSSProperties | keyof CSSProperties, value?: string | number) => void;
  9. declare const removeStyle: (element: HTMLElement, style: CSSProperties | keyof CSSProperties) => void;
  10. declare function addUnit(value?: string | number, defaultUnit?: string): string | undefined;
  11. //#endregion
  12. export { addClass, addUnit, classNameToArray, getStyle, hasClass, removeClass, removeStyle, setStyle };