Skip to content

Commit

Permalink
fix(Album): 修复外部样式类无效问题
Browse files Browse the repository at this point in the history
  • Loading branch information
YYJeffrey committed Jan 30, 2022
1 parent 3ea1aa5 commit 817e43b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/album/index.wxml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<wxs src="index.wxs" module="album"></wxs>
<!-- 最外层 view 用于修复 issue 1100 -->
<view style="display:flex">
<view class="l-class" style="display:flex">
<view style="{{album.gridStyle(gapRow, gapColumn, multipleSize, everyRowNumber)}}">
<block wx:for="{{showUrls}}" wx:key="index" class="child">
<view class="imageContainer {{album.dimBack(isLong, index, maxNumber, previewFullImage)}}" style="{{album.blockStyle(urls, horizontalScreen, shortSideValue, singleSize, multipleSize)}}">
<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}}" />
<view wx:if="{{album.image(isLong, index, maxNumber, previewFullImage)}}" class="text">+{{urls.length-maxNumber}}</view>
</view>
</block>
Expand Down

0 comments on commit 817e43b

Please # to comment.