Skip to content

Commit e95e1ed

Browse files
authored
chore: 发布版本 0.8.7
2 parents 04f49e3 + 1bf6f21 commit e95e1ed

File tree

160 files changed

+3588
-747
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+3588
-747
lines changed

commitlint.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ module.exports = {
6969
'IndexList',
7070
'Behavior',
7171
'CapsuleBar',
72-
'Circle'
72+
'Circle',
73+
'ImageClipper',
74+
'CustomTabBar'
7375
]
7476
]
7577
}

dist/album/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/album/index.wxml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<wxs src="index.wxs" module="album"></wxs>
2-
<view class="container l-class" style="{{album.containerStyle(urls, multipleSize, gapRow, gapColumn)}}">
3-
<block wx:for="{{urls}}" wx:key="index">
4-
<image id="{{index}}" bind:tap="onPreviewTap" class="{{album.blockClass(urls, horizontalScreen)}}" style="{{album.blockStyle(urls, horizontalScreen, shortSideValue, singleSize, multipleSize)}}" src="{{newType?item[key]:item}}" mode="{{urls.length === 1?singleMode:multipleMode}}"/>
2+
<view style="{{album.gridStyle(gapRow, gapColumn, multipleSize, everyRowNumber)}}">
3+
<block wx:for="{{showUrls}}" wx:key="index" class="child">
4+
<view class="imageContainer {{album.dimBack(isLong, index, maxNumber, previewFullImage)}}" style="{{album.blockStyle(urls, horizontalScreen, shortSideValue, singleSize, multipleSize)}}">
5+
<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}}"/>
6+
<view wx:if="{{album.image(isLong, index, maxNumber, previewFullImage)}}" class="text">+{{urls.length-maxNumber}}</view>
7+
</view>
58
</block>
69
</view>

dist/album/index.wxs

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
var containerStyle = function (urls, multipleSize, gapRow, gapColumn) {
2-
urls.length === 2 || urls.length === 4 ? 'width:' + (2 * multipleSize + gapRow) + 'rpx;' : 'width:' + (3 * multipleSize + 2 * gapRow) + 'rpx;'
32
if (urls.length === 2 || urls.length === 4) {
43
return 'width:' + (2 * multipleSize + gapRow) + 'rpx; grid-row-gap:' + gapColumn + 'rpx; grid-column-gap:' + gapRow + 'rpx;grid-template-columns:repeat(auto-fit, ' + multipleSize + 'rpx);'
54
} else {
@@ -32,8 +31,49 @@ var blockStyle = function (urls, horizontalScreen, shortSideValue, singleSize, m
3231
}
3332
}
3433

34+
var gridStyle = function (gapRow, gapColumn, multipleSize, everyRowNumber) {
35+
return 'display:inline-grid;grid-template-columns: repeat(' + everyRowNumber + ',' + multipleSize + 'rpx);grid-row-gap:' + gapRow + 'rpx;grid-column-gap:' + gapColumn + 'rpx;'
36+
}
37+
38+
var dimBack = function (isLong, index, maxNumber, previewFullImage) {
39+
if (previewFullImage) {
40+
if (isLong) {
41+
if (index == maxNumber - 1) {
42+
return 'dimback'
43+
}
44+
}
45+
}
46+
return ''
47+
}
48+
49+
var dim = function (isLong, index, maxNumber, previewFullImage) {
50+
if (previewFullImage) {
51+
if (isLong) {
52+
if (index == maxNumber - 1) {
53+
return 'dim'
54+
}
55+
}
56+
}
57+
return ''
58+
}
59+
60+
var image = function (isLong, index, maxNumber, previewFullImage) {
61+
if (previewFullImage) {
62+
if (isLong) {
63+
if (index == maxNumber - 1) {
64+
return true
65+
}
66+
}
67+
}
68+
return false
69+
}
70+
3571
module.exports = {
3672
containerStyle: containerStyle,
3773
blockClass: blockClass,
38-
blockStyle: blockStyle
74+
blockStyle: blockStyle,
75+
gridStyle: gridStyle,
76+
dimBack: dimBack,
77+
dim: dim,
78+
image: image,
3979
}

dist/album/index.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.container{display:grid}.vertical{height:360rpx}
1+
.container{display:grid}.vertical{height:360rpx}.parent{display:inline-grid;grid-template-columns:repeat(auto-fill)}.child{box-sizing:border-box;background-color:#fff;flex:0 0 44%;height:100px;border:1px solid red;margin-top:4%;margin-left:2%;margin-right:2%}.dimback{background:#000}.dim{opacity:.6}.imageContainer{position:relative}.imageContainer:last-child>.text{color:#fff;font-weight:700;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:larger}

dist/avatar/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
<view class="l-avatar {{text||_isHaveUserNickName?'l-placement-'+placement:''}}" bindtap="tapAvatar">
2+
<view class="l-avatar {{text||_isHaveUserNickName?'l-placement-'+placement:''}}" mut-bind:tap="tapAvatar">
33
<view class="l-avatar-image {{shape?'l-'+shape:''}} l-class" wx:if="{{_isHaveUserAvatarUrl||icon||src}}" style="width:{{size}}rpx;height:{{size}}rpx">
44
<open-data class="open-data" wx:if="{{_isHaveUserAvatarUrl}}" type="userAvatarUrl"/>
55
<l-icon wx:elif="{{icon}}" size="{{iconSize || size*0.6}}" color="{{iconColor||'#ffffff'}}" name="{{icon}}"/>

dist/badge/index.wxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<view class="l-badge" bindtap="handleTap">
1+
<view class="l-badge" mut-bind:tap="handleTap">
22
<slot/>
33
<block wx:if="{{show}}">
44
<view wx:if="{{dot}}" class="l-badge-dot l-class l-class-self l-self-class"></view>
55
<view wx:else class="{{'l-badge-content-'+shape}} l-badge-content l-class l-class-self l-self-class">{{finalCount}}</view>
66
</block>
7-
</view>
7+
</view>

dist/button/index.wxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<label for="{{name}}" bindtap="handleTap" class="l-label-class">
1+
<label for="{{name}}" mut-bind:tap="handleTap" class="l-label-class">
22
<block wx:if="{{special}}">
33
<view class="special-container l-class">
44
<slot/>
@@ -13,4 +13,4 @@
1313
</block>
1414
</label>
1515
<button style="position: absolute;top: -999px;left: -999px;" wx:if="{{openType}}" id="{{name}}" lang="{{lang}}" form-type="{{formType}}" open-type="{{openType}}" app-parameter="{{ appParameter }}" hover-stop-propagation="{{ hoverStopPropagation }}" hover-start-time="{{ hoverStartTime }}" hover-stay-time="{{ hoverStayTime }}" session-from="{{ sessionFrom }}" send-message-title="{{ sendMessageTitle }}" send-message-path="{{ sendMessagePath }}" send-message-img="{{ sendMessageImg }}" show-message-card="{{ showMessageCard }}" bindcontact="openTypeEvent" bindgetuserinfo="openTypeEvent" bindgetphonenumber="openTypeEvent" bindopensetting="openTypeEvent">
16-
</button>
16+
</button>

dist/capsule-bar/index.wxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515

1616
<cover-view wx:if="{{!hiddenCapsule}}" class="capsule-button" style="border-color: rgba({{capsuleColor==='black'?'0,0,0,0.1':'255,255,255,0.25'}});background-color: rgba({{capsuleColor==='black'?'255,255,255,0.6':'0,0,0,0.15'}});width: {{capsuleButtonInfo.width}}px;height: {{capsuleButtonInfo.height}}px;left: {{capsuleButtonInfo.left}}px;top: {{capsuleButtonInfo.top}}px;">
1717

18-
<cover-view catch:tap="onTapLeftButton" catch:longpress="onLongPressLeftButton" hover-class="icon-wrapper-hover-{{capsuleColor}}" class="icon-wrapper" style="width: {{capsuleButtonInfo.width/2}}px;height: {{capsuleButtonInfo.height}}px;">
18+
<cover-view mut-bind:tap="onTapLeftButton" catch:longpress="onLongPressLeftButton" hover-class="icon-wrapper-hover-{{capsuleColor}}" class="icon-wrapper" style="width: {{capsuleButtonInfo.width/2}}px;height: {{capsuleButtonInfo.height}}px;">
1919
<cover-image class="icon-left" src="icons/capsule-left-{{capsuleColor}}.png"></cover-image>
2020
</cover-view>
2121

2222

2323
<cover-view class="line"></cover-view>
2424

2525

26-
<cover-view catch:tap="onTapRightButton" catch:longpress="onLongPressRightButton" hover-class="icon-wrapper-hover-{{capsuleColor}}" class="icon-wrapper" style="width: {{capsuleButtonInfo.width/2}}px;height: {{capsuleButtonInfo.height}}px;">
26+
<cover-view mut-bind:tap="onTapRightButton" catch:longpress="onLongPressRightButton" hover-class="icon-wrapper-hover-{{capsuleColor}}" class="icon-wrapper" style="width: {{capsuleButtonInfo.width/2}}px;height: {{capsuleButtonInfo.height}}px;">
2727
<cover-image class="icon-right" src="icons/capsule-right-{{capsuleColor}}.png"></cover-image>
2828
</cover-view>
2929
</cover-view>

dist/checkbox/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<view bind:tap="onCheckboxChangeTap" class="label label-{{placement}} label-placement-{{parentPlacement}} {{disabled ? 'label-disabled l-disabled-class' : 'l-class'}}">
1+
<view mut-bind:tap="onCheckboxChangeTap" class="label label-{{placement}} label-placement-{{parentPlacement}} {{disabled ? 'label-disabled l-disabled-class' : 'l-class'}}">
22
<view class="checkbox" style="color:{{checked ? selectColor : (disabled ? disabledColor : color)}};font-size: {{size}}">
33
<slot wx:if="{{custom}}" name="icon"/>
44
<view wx:else class="iconfont {{checked? 'icon-select': 'icon-unselect'}}"></view>

0 commit comments

Comments
 (0)