element-plus
Version:
A Component Library for Vue 3
9 lines (8 loc) • 671 B
TypeScript
import type { CSSProperties } from 'vue';
export declare const classNameToArray: (cls?: string) => string[];
export declare const hasClass: (el: Element, cls: string) => boolean;
export declare const addClass: (el: Element, cls: string) => void;
export declare const removeClass: (el: Element, cls: string) => void;
export declare const getStyle: (element: HTMLElement, styleName: keyof CSSProperties) => string;
export declare const setStyle: (element: HTMLElement, styleName: CSSProperties | keyof CSSProperties, value?: string | number | undefined) => void;
export declare const removeStyle: (element: HTMLElement, style: CSSProperties | keyof CSSProperties) => void;