ivue-material-plus
Version:
A high quality UI components Library with Vue.js
16 lines (15 loc) • 764 B
TypeScript
export declare const oneOf: (value: string | boolean, validList: Array<string | boolean>) => boolean;
export declare const getStyle: (element: any, styleName: any) => string;
export declare function hasClass(el: HTMLElement, cls: string): boolean;
export declare function removeClass(el: HTMLElement, cls: string): void;
export declare function addClass(el: HTMLElement, cls: string): void;
/**
* 滚动到顶部
* @param el 元素
* @param from 开始的位置
* @param to 结束的位置
* @param duration 滚动动画持续时间,单位 毫秒
* @param endCallback 结束后的回调
*/
export declare function scrollTop(el: any, from: number, to: number, duration?: number, endCallback?: any): void;
export declare const deepCopy: (data: any) => any;