Skip to content

Commit 922cbb0

Browse files
authored
feat:发布0.5.6 (#343)
2 parents 3fd94f2 + bea7ed1 commit 922cbb0

File tree

22 files changed

+1278
-284
lines changed

22 files changed

+1278
-284
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div align="center">
1818

1919
![](https://img.shields.io/badge/build-passing-00d508.svg)
20-
![](https://img.shields.io/badge/version-0.5.5-3963bc.svg)
20+
![](https://img.shields.io/badge/version-0.5.6-3963bc.svg)
2121
![](https://img.shields.io/badge/license-MIT-3963bc.svg)
2222

2323
</div>
@@ -39,7 +39,7 @@ Lin UI 是基于 **微信小程序原生语法** 实现的组件库。遵循简
3939

4040
## 最新版本
4141

42-
核心库:0.5.5
42+
核心库:0.5.6
4343

4444
示例工程:0.0.1-alpha.2
4545

dist/action-sheet/index.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.l-action-sheet{background:#f7f7f7}.l-item-button{height:88rpx;line-height:88rpx;text-align:center;background:#fff;border-bottom:2rpx solid #f3f3f3;font-size:28rpx;color:#45526b;display:flex;align-items:center;justify-content:center}.l-cancel{margin-top:12rpx}.l-cancel-x .l-item-button{padding-bottom:44rpx}.l-image-button>text{margin-left:20rpx}
1+
.l-action-sheet{background:#f7f7f7}.l-item-button{height:88rpx;line-height:88rpx;text-align:center;background:#fff;border-bottom:2rpx solid #f3f3f3;font-size:28rpx;color:#45526b;display:flex;align-items:center;justify-content:center;width:100%}.l-cancel{margin-top:12rpx}.l-cancel-x .l-item-button{padding-bottom:44rpx}.l-image-button>text{margin-left:20rpx}

dist/behaviors/countdown.js

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ module.exports = Behavior({
44
time: {
55
type: Date,
66
value: new Date().getTime() + 86400000,
7-
observer:function(newVal,oldVal) {
8-
if(newVal && !oldVal) {
7+
observer: function (newVal, oldVal) {
8+
if (newVal && !oldVal) {
99
this.getLatestTime();
1010
}
1111
}
@@ -36,6 +36,10 @@ module.exports = Behavior({
3636
countdownType: {
3737
type: String,
3838
value: "normal"
39+
},
40+
isClearInterval: {
41+
type: Boolean,
42+
value: true
3943
}
4044
},
4145
data: {
@@ -48,15 +52,22 @@ module.exports = Behavior({
4852
},
4953

5054
detached: function () {
51-
clearInterval(this.data.timer);
55+
if (this.data.isClearInterval) {
56+
clearInterval(this.data.timer);
57+
}
5258
},
5359

5460
pageLifetimes: {
5561
hide() {
56-
clearInterval(this.data.timer);
62+
if (this.data.isClearInterval) {
63+
clearInterval(this.data.timer);
64+
}
65+
5766
},
5867
show() {
59-
this.getLatestTime();
68+
if (this.data.isClearInterval) {
69+
this.getLatestTime();
70+
}
6071
}
6172
},
6273

dist/input/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ Component({
2121
type: Boolean,
2222
value: false
2323
},
24+
// 是否显示下划线
25+
showRow: {
26+
type: Boolean,
27+
value: true
28+
},
2429
// 是否必选
2530
required: {
2631
type: Boolean,

dist/input/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class='form-item {{disabled? "disabled": ""}} l-class form-item-{{labelLayout}}'
44
style="width:{{width}}rpx">
55
<view class='mask' wx:if="{{disabled}}"></view>
6-
<view class='row' style="width:{{width}}rpx;"></view>
6+
<view class='row' hidden="{{ showRow ? '' : 'hidden' }}" style="width:{{width}}rpx;"></view>
77
<view wx:if="{{label && !labelCustom}}" class='form-label l-label-class form-label-{{labelLayout}}' style='{{labelLayout !== "top" ? "width:"+ labelWidth+ "rpx;" : "" }} height:{{labelLayout== "top" ? labelWidth + "rpx" : "" }}'>
88
<text><text class='text-require' wx:if="{{required}}">* </text>{{label}}<text wx:if="{{colon}}">:</text>
99
</text>

dist/input/index.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.form-item{position:relative;font-size:28rpx;color:#333;width:750rpx;height:88rpx;display:flex;flex-direction:row;align-items:center;padding-right:25rpx;box-sizing:border-box}.row{position:absolute;bottom:0;right:0;height:1rpx;width:730rpx;background:#f3f3f3}.text-require{color:#e23;vertical-align:middle}.form-label{display:flex;flex-direction:row;align-items:center;height:88rpx;padding-left:25rpx;padding-right:15rpx;box-sizing:border-box}.disabled{color:#9a9a9a!important}.mask{position:absolute;z-index:999;height:100%;width:100%}.form-label-right{justify-content:flex-end}.form-label-left{justify-content:flex-start}.input{height:100%;line-height:100%;flex:1}.close{height:30rpx;width:30rpx;background:#ddd;display:flex;flex-direction:row;align-items:center;justify-content:center;border-radius:50%;margin-right:20rpx}.pls-class{color:#9a9a9a}
1+
.form-item{position:relative;font-size:28rpx;color:#333;width:750rpx;height:88rpx;display:flex;flex-direction:row;align-items:center;padding-right:25rpx;box-sizing:border-box}.row{position:absolute;bottom:0;right:0;height:2rpx;width:730rpx;background:#f3f3f3}.text-require{color:#e23;vertical-align:middle}.form-label{display:flex;flex-direction:row;align-items:center;height:88rpx;padding-left:25rpx;padding-right:15rpx;box-sizing:border-box}.disabled{color:#9a9a9a!important}.mask{position:absolute;z-index:999;height:100%;width:100%}.form-label-right{justify-content:flex-end}.form-label-left{justify-content:flex-start}.input{height:100%;line-height:100%;flex:1}.close{height:30rpx;width:30rpx;background:#ddd;display:flex;flex-direction:row;align-items:center;justify-content:center;border-radius:50%;margin-right:20rpx}.pls-class{color:#9a9a9a}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.l-action-sheet{background:#f7f7f7}.l-item-button{height:88rpx;line-height:88rpx;text-align:center;background:#fff;border-bottom:2rpx solid #f3f3f3;font-size:28rpx;color:#45526b;display:flex;align-items:center;justify-content:center}.l-cancel{margin-top:12rpx}.l-cancel-x .l-item-button{padding-bottom:44rpx}.l-image-button>text{margin-left:20rpx}
1+
.l-action-sheet{background:#f7f7f7}.l-item-button{height:88rpx;line-height:88rpx;text-align:center;background:#fff;border-bottom:2rpx solid #f3f3f3;font-size:28rpx;color:#45526b;display:flex;align-items:center;justify-content:center;width:100%}.l-cancel{margin-top:12rpx}.l-cancel-x .l-item-button{padding-bottom:44rpx}.l-image-button>text{margin-left:20rpx}

examples/dist/behaviors/countdown.js

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ module.exports = Behavior({
44
time: {
55
type: Date,
66
value: new Date().getTime() + 86400000,
7-
observer:function(newVal,oldVal) {
8-
if(newVal && !oldVal) {
7+
observer: function (newVal, oldVal) {
8+
if (newVal && !oldVal) {
99
this.getLatestTime();
1010
}
1111
}
@@ -36,6 +36,10 @@ module.exports = Behavior({
3636
countdownType: {
3737
type: String,
3838
value: "normal"
39+
},
40+
isClearInterval: {
41+
type: Boolean,
42+
value: true
3943
}
4044
},
4145
data: {
@@ -48,15 +52,22 @@ module.exports = Behavior({
4852
},
4953

5054
detached: function () {
51-
clearInterval(this.data.timer);
55+
if (this.data.isClearInterval) {
56+
clearInterval(this.data.timer);
57+
}
5258
},
5359

5460
pageLifetimes: {
5561
hide() {
56-
clearInterval(this.data.timer);
62+
if (this.data.isClearInterval) {
63+
clearInterval(this.data.timer);
64+
}
65+
5766
},
5867
show() {
59-
this.getLatestTime();
68+
if (this.data.isClearInterval) {
69+
this.getLatestTime();
70+
}
6071
}
6172
},
6273

examples/dist/input/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ Component({
2121
type: Boolean,
2222
value: false
2323
},
24+
// 是否显示下划线
25+
showRow: {
26+
type: Boolean,
27+
value: true
28+
},
2429
// 是否必选
2530
required: {
2631
type: Boolean,

examples/dist/input/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class='form-item {{disabled? "disabled": ""}} l-class form-item-{{labelLayout}}'
44
style="width:{{width}}rpx">
55
<view class='mask' wx:if="{{disabled}}"></view>
6-
<view class='row' style="width:{{width}}rpx;"></view>
6+
<view class='row' hidden="{{ showRow ? '' : 'hidden' }}" style="width:{{width}}rpx;"></view>
77
<view wx:if="{{label && !labelCustom}}" class='form-label l-label-class form-label-{{labelLayout}}' style='{{labelLayout !== "top" ? "width:"+ labelWidth+ "rpx;" : "" }} height:{{labelLayout== "top" ? labelWidth + "rpx" : "" }}'>
88
<text><text class='text-require' wx:if="{{required}}">* </text>{{label}}<text wx:if="{{colon}}">:</text>
99
</text>

0 commit comments

Comments
 (0)