Commit df984126 by 张杰

图片组件新增webp

1 parent 9145b1a5
......@@ -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!