Skip to content

Releases: weexteam/vue-precompiler-for-apache-weex

v0.1.19

28 May 08:23
Compare
Choose a tag to compare

Bug Fixes

  • rootValue in options of px2rem shouldn't be changed and always be 75. Use <meta name="weex-viewport" content="..."> to set a new viewport width other than 750 instead of changing rootValue in the option if you want to change the viewport's design width.

v0.1.18

19 Apr 10:33
Compare
Choose a tag to compare

Improvements

  • Support multiple expression cases in style-binding when injecting '_px2rem' to transform 'px' to 'rem'.
  • Typical cases as follows:
<text :style="{'margin-left': '20px', 'marginBottom': '10px'}"></text>
<text :style="{ 'margin-left': myMargin + 'px' }"></text>
<text :style="myData.styles"></text>
<div :style="getStyles('div')"></div>
<div :style="isMyTheme ? { marginLeft: '20px' } : yourStyles"></div>
<div :style="isMyTheme ? myStyles : yourStyles"></div>