We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ea1aa5 commit 817e43bCopy full SHA for 817e43b
1 file changed
src/album/index.wxml
@@ -1,10 +1,10 @@
1
<wxs src="index.wxs" module="album"></wxs>
2
<!-- 最外层 view 用于修复 issue 1100 -->
3
-<view style="display:flex">
+<view class="l-class" style="display:flex">
4
<view style="{{album.gridStyle(gapRow, gapColumn, multipleSize, everyRowNumber)}}">
5
<block wx:for="{{showUrls}}" wx:key="index" class="child">
6
<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}}" />
+ <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}}" />
8
<view wx:if="{{album.image(isLong, index, maxNumber, previewFullImage)}}" class="text">+{{urls.length-maxNumber}}</view>
9
</view>
10
</block>
0 commit comments