style.d.ts 759 B

123456789
  1. import type { CSSProperties } from 'vue';
  2. export declare const classNameToArray: (cls?: string) => string[];
  3. export declare const hasClass: (el: Element, cls: string) => boolean;
  4. export declare const addClass: (el: Element, cls: string) => void;
  5. export declare const removeClass: (el: Element, cls: string) => void;
  6. export declare const getStyle: (element: HTMLElement, styleName: keyof CSSProperties) => string;
  7. export declare const setStyle: (element: HTMLElement, styleName: CSSProperties | keyof CSSProperties, value?: string | number) => void;
  8. export declare const removeStyle: (element: HTMLElement, style: CSSProperties | keyof CSSProperties) => void;
  9. export declare function addUnit(value?: string | number, defaultUnit?: string): string | undefined;