We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c57f70c + 875e4f7 commit 44e03b5Copy full SHA for 44e03b5
1 file changed
packages/webpack-plugin/lib/platform/style/wx/index.js
@@ -285,6 +285,13 @@ module.exports = function getSpec ({ warn, error }) {
285
286
// line-height
287
const formatLineHeight = ({ prop, value, selector }) => {
288
+ // line-height 0 直接返回
289
+ if (+value === 0) {
290
+ return {
291
+ prop,
292
+ value
293
+ }
294
295
return verifyValues({ prop, value, selector }) && ({
296
prop,
297
value: /^\s*(-?(\d+(\.\d+)?|\.\d+))\s*$/.test(value) ? `${Math.round(value * 100)}%` : value
0 commit comments