Skip to content

v0.1.18

Compare
Choose a tag to compare
@MrRaindrop MrRaindrop released this 19 Apr 10:33
· 12 commits to master since this release

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>