@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.
- package/dist/index.common.js +1 -1
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -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+(
|
|
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