Commit dc9e96d5 by 张杰

Merge branch 'zhangjie_v3.1' into 'dev_v3.1'

图片组件新增webp

See merge request !10
2 parents b45c23a0 df984126
......@@ -16,6 +16,10 @@ Component({
mode: {
type: String,
value: 'scaleToFill'
},
webp: {
type: Boolean,
value: false
}
},
......
<!--components/image/index.wxml-->
<image src="{{imagePath}}" mode="{{mode}}" lazy-load class="custom-class class"></image>
\ No newline at end of file
<image src="{{imagePath}}" mode="{{mode}}" webp="{{webp}}" lazy-load class="custom-class class"></image>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!