@dolphinweex/weex-vue-render 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3736,7 +3736,7 @@ function px2rem (px, rootValue) {
3736
3736
  // fix: 适配鸿蒙wx单位
3737
3737
  if (px.indexOf("--harmory") > -1) return px;
3738
3738
 
3739
- return px.replace(/([+-]?\d+(?:.\d*)?)([p|w]x)/g, function ($0, $1, $2) {
3739
+ return px.replace(/([+-]?\d+(?:\.\d*)?)([p|w]x)?/g, function ($0, $1, $2) {
3740
3740
  if ($2 === 'wx') { // 'wx' -> px
3741
3741
  // return ($midea_harmony_native ? $midea_harmony_native.vp2px($1) : $1) + 'px'
3742
3742
  // 适配鸿蒙wx
package/package.json CHANGED
@@ -49,5 +49,5 @@
49
49
  "type": "git",
50
50
  "url": "git+ssh://git@github.com/weexteam/weex-vue-render.git"
51
51
  },
52
- "version": "0.1.4"
52
+ "version": "0.1.5"
53
53
  }