Skip to content

Commit

Permalink
fix: 修复鸿蒙端对于单位的处理异常 (#16937)
Browse files Browse the repository at this point in the history
* fix: 修复鸿蒙端对于单位的处理异常

* fix: 移除注释
  • Loading branch information
heiazu authored and yushijie1 committed Nov 29, 2024
1 parent d1ac645 commit 0eb2535
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/postcss-pxtransform/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0eb2535

Please sign in to comment.