Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复可自定义宽度、高度。图片背景这里没有问题,我这里已经是注释了的 #95 #174

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion wxParse/wxParse.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</template>

<template name="wxParseImg">
<image class="{{item.classStr}} wxParse-{{item.tag}}" data-from="{{item.from}}" data-src="{{item.attr.src}}" data-idx="{{item.imgIndex}}" src="{{item.attr.src}}" mode="aspectFit" bindload="wxParseImgLoad" bindtap="wxParseImgTap" mode="widthFix" style="width:{{item.width}}px;"
<image class="{{item.classStr}} wxParse-{{item.tag}}" data-from="{{item.from}}" data-src="{{item.attr.src}}" data-idx="{{item.imgIndex}}" src="{{item.attr.src}}" mode="{{item.attr.width || item.attr.height ? 'scaleToFill' : 'aspectFit' }}" bindload="wxParseImgLoad" bindtap="wxParseImgTap" style="{{item.styleStr}};width:{{item.attr.width}};height:{{item.attr.height}};"
/>
</template>

Expand Down
2 changes: 1 addition & 1 deletion wxParse/wxParse.wxss
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ view{
}

.wxParse-img{
/*background-color: #efefef;*/
/*background-color: #efefef;*/
overflow: hidden;
}

Expand Down