Skip to content

Commit 4afeca2

Browse files
author
杨伟贤
committed
fix 修复placeholderImageStr为空值,发起空请求问题
1 parent 70a5b5a commit 4afeca2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/recycle-view.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<view style="height:{{hasBeforeSlotHeight ? beforeSlotHeight + 'px' : 'auto'}}" class="slot-before">
88
<slot name="before"></slot>
99
</view>
10-
<view style='position:relative;width:100%;z-index:10;background: url("{{placeholderImageStr}}") repeat;height:{{totalHeight}}px;'>
10+
<view style="position:relative;width:100%;z-index:10;{{placeholderImageStr? 'background: url(' + placeholderImageStr + ') repeat' : '' }};height:{{totalHeight}}px;">
1111
<!-- <view class='before' style="height:{{innerBeforeHeight}}px"></view> -->
1212
<view style="position: absolute;left:0;width:100%;top:{{innerBeforeHeight}}px;">
1313
<slot></slot>

0 commit comments

Comments
 (0)