Skip to content

Commit 817e43b

Browse files
committed
fix(Album): 修复外部样式类无效问题
1 parent 3ea1aa5 commit 817e43b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/album/index.wxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<wxs src="index.wxs" module="album"></wxs>
22
<!-- 最外层 view 用于修复 issue 1100 -->
3-
<view style="display:flex">
3+
<view class="l-class" style="display:flex">
44
<view style="{{album.gridStyle(gapRow, gapColumn, multipleSize, everyRowNumber)}}">
55
<block wx:for="{{showUrls}}" wx:key="index" class="child">
66
<view class="imageContainer {{album.dimBack(isLong, index, maxNumber, previewFullImage)}}" style="{{album.blockStyle(urls, horizontalScreen, shortSideValue, singleSize, multipleSize)}}">
7-
<image class="{{album.dim(isLong, index, maxNumber, previewFullImage)}}}" id='{{index}}' bind:tap="onPreviewTap" style="{{album.blockStyle(urls, horizontalScreen, shortSideValue, singleSize, multipleSize)}}" src="{{newType?item[key]:item}}" mode="{{urls.length === 1?singleMode:multipleMode}}" />
7+
<image class="{{album.blockClass(urls, horizontalScreen) + ' ' + album.dim(isLong, index, maxNumber, previewFullImage)}}" id='{{index}}' bind:tap="onPreviewTap" style="{{album.blockStyle(urls, horizontalScreen, shortSideValue, singleSize, multipleSize)}}" src="{{newType?item[key]:item}}" mode="{{urls.length === 1?singleMode:multipleMode}}" />
88
<view wx:if="{{album.image(isLong, index, maxNumber, previewFullImage)}}" class="text">+{{urls.length-maxNumber}}</view>
99
</view>
1010
</block>

0 commit comments

Comments
 (0)