rax-image
Advanced tools
Comparing version 1.0.0-miniapp.beta.6 to 1.0.0-miniapp.beta.7
@@ -19,2 +19,6 @@ import fmtEvent from '../_util/fmtEvent'; | ||
var mode = 'aspectFit'; | ||
const { width, height } = this.props.source || {}; | ||
let style = this.props.style || ''; | ||
if (width) style += 'width:' + width + 'rpx;'; | ||
if (height) style += 'height:' + height + 'rpx;'; | ||
@@ -39,3 +43,4 @@ switch (this.props.resizeMode) { | ||
this.setData({ | ||
mode: mode | ||
mode: mode, | ||
style: style | ||
}); | ||
@@ -42,0 +47,0 @@ }, |
{ | ||
"name": "rax-image", | ||
"version": "1.0.0-miniapp.beta.6", | ||
"version": "1.0.0-miniapp.beta.7", | ||
"description": "Image component for Rax.", | ||
@@ -5,0 +5,0 @@ "license": "BSD-3-Clause", |
20510
170