Skip to content

Commit

Permalink
Merge pull request #1494 from TaleLin/develop
Browse files Browse the repository at this point in the history
chore: 发布版本 0.9.8
  • Loading branch information
smileShirmy authored Feb 28, 2022
2 parents e0ba8b7 + 2c385d3 commit e2a4641
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/album/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/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 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
2 changes: 1 addition & 1 deletion examples/dist/album/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Component({

if (!this.data.customRowNumber) {
let urlLength = this.data.showUrls.length;
if (urlLength > 1 && urlLength < 5) {
if (urlLength > 1 && urlLength < 5 && urlLength !== 3) {
this.setData({
everyRowNumber: 2
});
Expand Down
4 changes: 2 additions & 2 deletions examples/dist/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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lin-ui",
"version": "0.9.7",
"version": "0.9.8",
"description": "A high quality UI components library with MiniProgram",
"main": "app.js",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion src/album/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Component({

if (!this.data.customRowNumber) {
let urlLength = this.data.showUrls.length;
if (urlLength > 1 && urlLength < 5) {
if (urlLength > 1 && urlLength < 5 && urlLength !== 3) {
this.setData({
everyRowNumber: 2
});
Expand Down
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 e2a4641

Please sign in to comment.