dtd
Version:
根据数梦工场视觉规范打造的组件库,感谢react-components和ant design
24 lines (23 loc) • 587 B
TypeScript
export declare function getKey(ctx: any): any;
export declare const noop: () => void;
export declare const isObject: (val: any) => boolean;
export declare const isString: (val: any) => boolean;
/**
* 获取元素样式
* @private
* */
export declare function getStyle(el: any, styleName: any): any;
export declare function getSize(el: any): {
width: any;
height: any;
};
/**
* 单位转化
* @private
* */
export declare function getStyleNum(el: any, styleName: any): number;
/**
* 设置样式
* @private
* */
export declare function setStyle(el: any, obj: any): void;