Skip to content

Commit

Permalink
fix: 修复鸿蒙端对于单位的处理异常
Browse files Browse the repository at this point in the history
  • Loading branch information
heiazu committed Nov 27, 2024
1 parent 8317e63 commit 07d5a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/postcss-pxtransform/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ function createPxReplace (rootValue, unitPrecision, minPixelValue, onePxTransfor
}

// 转换工作,如果是harmony的话不转换
if (platform === 'harmony') { return m }
// 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 07d5a3d

Please sign in to comment.