dylan-rem
Version:
专为移动端设置rem和px 切换
10 lines (7 loc) • 318 B
TypeScript
export = IREM;
export as namespace REM;
declare namespace IREM {
function init(config: { rootValue?: number; designWidth?: number; maxRatio?: number }): void;
function px2Rem(px: string | number, addUnit?: boolean): number | string;
function rem2Px(rem: string | number, addUnit?: boolean): number | string;
}