Skip to content

Commit a8c8769

Browse files
authored
chore: 发布版本 0.8.10
2 parents 5aea163 + c9f6655 commit a8c8769

File tree

20 files changed

+91
-32
lines changed

20 files changed

+91
-32
lines changed

dist/image-picker/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/image-picker/index.wxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
<l-grid row-num="{{ size }}" l-class="l-class">
3-
<l-grid-item wx:for="{{ urls }}" wx:key="index" key="{{ index }}" slot="{{ index }}">
3+
<l-grid-item wx:for="{{ urls }}" wx:key="index" key="{{ index }}" slot="{{ index }}" l-grid-item="l-grid-item">
44
<view class="item l-item-class" catchtap="onPreviewTap" data-index="{{ index }}">
55
<view class="close" data-index="{{ index }}" catchtap="onDelTap">
66
<l-icon name="close" color="#fff" size="22" l-class="close-icon"/>
@@ -9,7 +9,7 @@
99
</view>
1010
</l-grid-item>
1111

12-
<l-grid-item wx:if="{{ showBtn }}">
12+
<l-grid-item wx:if="{{ showBtn }}" l-grid-item="l-grid-item">
1313

1414
<view class="item l-item-class {{size === 3? 'img': 'min-img'}}" catchtap="onAddTap" wx:if="{{ custom }}">
1515
<slot></slot>

dist/image-picker/index.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.item{position:relative}.close{position:absolute;right:10rpx;top:10rpx;height:40rpx;width:40rpx;border-radius:50%;background:rgba(0,0,0,.4);display:flex;flex-direction:row;align-items:center;justify-content:center;box-sizing:border-box;z-index:99}.add{height:220rpx;width:220rpx;border:1rpx solid #eee;border-radius:4rpx;display:flex;flex-direction:row;align-items:center;justify-content:center}.add-icon{height:100rpx;width:100rpx}.img{height:220rpx;width:220rpx;margin-bottom:10rpx;border:1rpx solid #eee;border-radius:4rpx;display:flex;flex-direction:row;align-items:center;justify-content:center}.min-img{height:160rpx;width:160rpx;margin-bottom:10rpx;border:1rpx solid #eee;border-radius:4rpx;display:flex;flex-direction:row;align-items:center;justify-content:center}.flex{border:1rpx solid #eee;border-radius:4rpx;display:flex;flex-direction:row;align-items:center;justify-content:center}
1+
.item{position:relative}.close{position:absolute;right:10rpx;top:10rpx;height:40rpx;width:40rpx;border-radius:50%;background:rgba(0,0,0,.4);display:flex;flex-direction:row;align-items:center;justify-content:center;box-sizing:border-box;z-index:99}.add{height:220rpx;width:220rpx;border:1rpx solid #eee;border-radius:4rpx;display:flex;flex-direction:row;align-items:center;justify-content:center}.add-icon{height:100rpx;width:100rpx}.img{height:220rpx;width:220rpx;margin-bottom:10rpx;border:1rpx solid #eee;border-radius:4rpx;display:flex;flex-direction:row;align-items:center;justify-content:center}.min-img{height:160rpx;width:160rpx;margin-bottom:10rpx;border:1rpx solid #eee;border-radius:4rpx;display:flex;flex-direction:row;align-items:center;justify-content:center}.flex{border:1rpx solid #eee;border-radius:4rpx;display:flex;flex-direction:row;align-items:center;justify-content:center}.l-grid-item{padding:0!important}

dist/input/index.wxml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
<slot name="left"/>
1111
</view>
1212

13-
<input class="input {{hideLabel?'hideLabel':''}} l-input-class" value="{{ value }}" type="{{type}}" password="{{type==='password'}}" placeholder="{{placeholder}}" maxlength="{{maxlength}}" placeholder-class="pls-class" placeholder-style="{{placeholderStyle}}" disabled="{{disabled}}" focus="{{focus}}" bindinput="handleInputChange" bindfocus="handleInputFocus" bindblur="handleInputBlur" bindconfirm="handleInputConfirm"/>
13+
<input wx:if="{{type !== 'password'}}" class="input {{hideLabel?'hideLabel':''}} l-input-class" value="{{ value }}" type="{{type}}" placeholder="{{placeholder}}" maxlength="{{maxlength}}" placeholder-class="pls-class" placeholder-style="{{placeholderStyle}}" disabled="{{disabled}}" focus="{{focus}}" bindinput="handleInputChange" bindfocus="handleInputFocus" bindblur="handleInputBlur" bindconfirm="handleInputConfirm"/>
14+
<input wx:else class="input {{hideLabel?'hideLabel':''}} l-input-class" value="{{ value }}" password="{{true}}" placeholder="{{placeholder}}" maxlength="{{maxlength}}" placeholder-class="pls-class" placeholder-style="{{placeholderStyle}}" disabled="{{disabled}}" focus="{{focus}}" bindinput="handleInputChange" bindfocus="handleInputFocus" bindblur="handleInputBlur" bindconfirm="handleInputConfirm"/>
1415
<l-icon wx:if="{{showEye&&value}}" name="eye" catch:tap="onTapEyeIcon" size="40" l-class="l-eye l-eye-{{type}}"/>
1516
<view class="close" wx:if="{{clear&&value}}" mut-bind:tap="onClearTap">
1617
<view class="close-icon">

dist/tabs/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/tabs/index.wxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
</view>
1313
</scroll-view>
1414
<view wx:if="{{!swipeable}}" class="l-tabpanel-content l-class-content l-content-class" style="{{contentHeight?'height:'+contentHeight+'rpx;':''}}{{placement==='top'||placement==='bottom' ? 'margin-left:'+ -100 *currentIndex +'%;':'transform:translate(0,'+ -100 * currentIndex +'%) translateZ(0px);'}}">
15-
<view class="l-tabpanel {{item.key===activeKey?'l-tabpanel-active':'l-tabpanel-inactive'}}" wx:for="{{tabList}}" wx:key="key" style="{{placement==='left'||placement==='right' ? 'position:absolute;width:100%;height:100%;transform:translate(0,'+ 100 * index +'%) translateZ(0px);':''}}">
15+
<view class="l-tabpanel l-tabpanel-class {{item.key===activeKey?'l-tabpanel-active':'l-tabpanel-inactive'}}" wx:for="{{tabList}}" wx:key="key" style="{{placement==='left'||placement==='right' ? 'position:absolute;width:100%;height:100%;transform:translate(0,'+ 100 * index +'%) translateZ(0px);':''}}">
1616
<slot name="{{item.key}}"></slot>
1717
</view>
1818
</view>
1919
<swiper wx:else class="l-tabpanel-content l-tabpanel-swiper l-class-content l-content-class" bindchange="swiperChange" style="{{contentHeight?'height:'+contentHeight+'rpx;':''}}" current="{{currentIndex}}" vertical="{{placement==='left'||placement==='right'}}">
20-
<swiper-item class="l-tabpanel {{item.key===activeKey?'l-tabpanel-active':''}}" wx:for="{{tabList}}" wx:key="key">
20+
<swiper-item class="l-tabpanel l-tabpanel-class {{item.key===activeKey?'l-tabpanel-active':''}}" wx:for="{{tabList}}" wx:key="key">
2121
<slot name="{{item.key}}"></slot>
2222
</swiper-item>
2323
</swiper>

examples/dist/image-picker/index.js

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,26 +78,37 @@ Component({
7878
attached: function () {
7979
// 在组件实例进入页面节点树时执行
8080
let newOrOld = this.judgeNewOrOld();
81-
8281
// 对 cells 的兼容处理
8382
if (this.data.cells !== null) {
8483
newOrOld = 'new';
8584
this.setData({
86-
newOrOld,
8785
urls: this.data.cells
8886
});
89-
} else {
87+
}
88+
this.setData({
89+
newOrOld
90+
});
91+
},
92+
},
93+
94+
observers: {
95+
// fix #1075 urls属性更新以后,图片不显示
96+
// solution urls 更新时重新判断
97+
urls() {
98+
if (this.data.cells === null) {
99+
let newOrOld = this.judgeNewOrOld();
90100
this.setData({
91101
newOrOld
92102
});
93103
}
94-
},
104+
}
95105
},
96106

97107
/**
98108
* 组件的方法列表
99109
*/
100110
methods: {
111+
101112
handleClear() {
102113
let urls = this.data.urls;
103114
this.setData({

examples/dist/image-picker/index.wxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- image-picker.wxml -->
22
<l-grid row-num="{{ size }}" l-class="l-class">
3-
<l-grid-item wx:for="{{ urls }}" wx:key="index" key="{{ index }}" slot="{{ index }}">
3+
<l-grid-item wx:for="{{ urls }}" wx:key="index" key="{{ index }}" slot="{{ index }}" l-grid-item="l-grid-item">
44
<view class="item l-item-class" catchtap="onPreviewTap" data-index="{{ index }}">
55
<view class="close" data-index="{{ index }}" catchtap="onDelTap">
66
<l-icon name="close" color="#fff" size="22" l-class="close-icon" />
@@ -9,7 +9,7 @@
99
</view>
1010
</l-grid-item>
1111
<!-- add 按钮 -->
12-
<l-grid-item wx:if="{{ showBtn }}">
12+
<l-grid-item wx:if="{{ showBtn }}" l-grid-item="l-grid-item">
1313
<!-- 自定义图片选择按钮 -->
1414
<view class="item l-item-class {{size === 3? 'img': 'min-img'}}" catchtap="onAddTap" wx:if="{{ custom }}">
1515
<slot></slot>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.item{position:relative}.close{position:absolute;right:10rpx;top:10rpx;height:40rpx;width:40rpx;border-radius:50%;background:rgba(0,0,0,.4);display:flex;flex-direction:row;align-items:center;justify-content:center;box-sizing:border-box;z-index:99}.add{height:220rpx;width:220rpx;border:1rpx solid #eee;border-radius:4rpx;display:flex;flex-direction:row;align-items:center;justify-content:center}.add-icon{height:100rpx;width:100rpx}.img{height:220rpx;width:220rpx;margin-bottom:10rpx;border:1rpx solid #eee;border-radius:4rpx;display:flex;flex-direction:row;align-items:center;justify-content:center}.min-img{height:160rpx;width:160rpx;margin-bottom:10rpx;border:1rpx solid #eee;border-radius:4rpx;display:flex;flex-direction:row;align-items:center;justify-content:center}.flex{border:1rpx solid #eee;border-radius:4rpx;display:flex;flex-direction:row;align-items:center;justify-content:center}
1+
.item{position:relative}.close{position:absolute;right:10rpx;top:10rpx;height:40rpx;width:40rpx;border-radius:50%;background:rgba(0,0,0,.4);display:flex;flex-direction:row;align-items:center;justify-content:center;box-sizing:border-box;z-index:99}.add{height:220rpx;width:220rpx;border:1rpx solid #eee;border-radius:4rpx;display:flex;flex-direction:row;align-items:center;justify-content:center}.add-icon{height:100rpx;width:100rpx}.img{height:220rpx;width:220rpx;margin-bottom:10rpx;border:1rpx solid #eee;border-radius:4rpx;display:flex;flex-direction:row;align-items:center;justify-content:center}.min-img{height:160rpx;width:160rpx;margin-bottom:10rpx;border:1rpx solid #eee;border-radius:4rpx;display:flex;flex-direction:row;align-items:center;justify-content:center}.flex{border:1rpx solid #eee;border-radius:4rpx;display:flex;flex-direction:row;align-items:center;justify-content:center}.l-grid-item{padding:0!important}

examples/dist/input/index.wxml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,25 @@
1313
</view>
1414
<!-- 小程序表单组件 -->
1515
<input
16+
wx:if="{{type !== 'password'}}"
1617
class="input {{hideLabel?'hideLabel':''}} l-input-class"
1718
value="{{ value }}"
1819
type="{{type}}"
19-
password="{{type==='password'}}"
20+
placeholder="{{placeholder}}"
21+
maxlength="{{maxlength}}"
22+
placeholder-class="pls-class"
23+
placeholder-style="{{placeholderStyle}}"
24+
disabled="{{disabled}}"
25+
focus="{{focus}}"
26+
bindinput="handleInputChange"
27+
bindfocus="handleInputFocus"
28+
bindblur="handleInputBlur"
29+
bindconfirm="handleInputConfirm" />
30+
<input
31+
wx:else
32+
class="input {{hideLabel?'hideLabel':''}} l-input-class"
33+
value="{{ value }}"
34+
password="{{true}}"
2035
placeholder="{{placeholder}}"
2136
maxlength="{{maxlength}}"
2237
placeholder-class="pls-class"

0 commit comments

Comments
 (0)