From 565ab79b324977c9bba5b38e1a4b96ce6e99ca29 Mon Sep 17 00:00:00 2001 From: AzuFF <47267778+heiazu@users.noreply.github.com> Date: Thu, 28 Nov 2024 20:45:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=B8=BF=E8=92=99?= =?UTF-8?q?=E7=AB=AF=E5=AF=B9=E4=BA=8E=E5=8D=95=E4=BD=8D=E7=9A=84=E5=A4=84?= =?UTF-8?q?=E7=90=86=E5=BC=82=E5=B8=B8=20(#16937)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 修复鸿蒙端对于单位的处理异常 * fix: 移除注释 --- packages/postcss-pxtransform/index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/postcss-pxtransform/index.js b/packages/postcss-pxtransform/index.js index 93610d9be814..240d0d26997a 100644 --- a/packages/postcss-pxtransform/index.js +++ b/packages/postcss-pxtransform/index.js @@ -291,8 +291,6 @@ function createPxReplace (rootValue, unitPrecision, minPixelValue, onePxTransfor return m } - // 转换工作,如果是harmony的话不转换 - if (platform === 'harmony') { return m } let val = pixels / rootValue(input, m, $1) if (unitPrecision >= 0 && unitPrecision <= 100) { val = toFixed(val, unitPrecision)