Skip to content

Commit e6b8399

Browse files
author
wangyaqi
committed
update: 延迟动画,图标居中
1 parent 13d39c9 commit e6b8399

3 files changed

Lines changed: 27 additions & 8 deletions

File tree

‎components/uni-search-bar/uni-search-bar.vue‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,19 +87,18 @@
8787
.uni-searchbar-form__box {
8888
display: flex;
8989
flex: 1;
90+
align-items: center;
9091
width: 100%;
9192
height: 64rpx;
92-
line-height: 64rpx;
9393
color: #c8c7cc;
9494
background: #fff;
9595
border: solid 1px #c8c7cc;
9696
border-radius: 10rpx
9797
}
9898
9999
.uni-searchbar-form__box .icon-search {
100-
text-align: right;
101100
color: #c8c7cc;
102-
line-height: 64rpx;
101+
line-height: 24px;
103102
padding: 0rpx 10rpx 0rpx 15rpx
104103
}
105104
@@ -113,13 +112,14 @@
113112
114113
.uni-searchbar-form__box .icon-clear {
115114
color: #c8c7cc;
116-
line-height: 64rpx;
115+
line-height: 20px;
117116
padding: 0rpx 15rpx 0rpx 10rpx
118117
}
119118
120119
.uni-searchbar-form__text {
121120
display: flex;
122121
flex: 1;
122+
align-items: center;
123123
width: 100%;
124124
height: 64rpx;
125125
line-height: 64rpx;
@@ -146,7 +146,8 @@
146146
.uni-searchbar-form__cancel {
147147
padding-left: 20rpx;
148148
line-height: 64rpx;
149-
color: #333
149+
color: #333;
150+
white-space: nowrap
150151
}
151152
152153
.uni-searchbar-form.hide .uni-searchbar-form__box {

‎pages/extUI/collapse/collapse.vue‎

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
data: [{
5454
type: false,
5555
subName: '默认开启',
56-
open: true,
56+
open: false,
57+
openPre: true,
5758
content: '折叠内容主体,可自定义内容及样式'
5859
},
5960
{
@@ -98,7 +99,8 @@
9899
data: [{
99100
type: false,
100101
subName: '默认开启',
101-
open: true,
102+
open: false,
103+
openPre: true,
102104
showAnimation: true,
103105
content: '折叠内容主体,可自定义内容及样式'
104106
},
@@ -159,6 +161,17 @@
159161
id: 2
160162
}
161163
},
164+
onLoad() {
165+
setTimeout(() => {
166+
this.list.map(function(item) {
167+
item.data.map(function(collapseItem) {
168+
if (collapseItem.openPre) {
169+
collapseItem.open = collapseItem.openPre
170+
}
171+
})
172+
})
173+
}, 350)
174+
},
162175
methods: {
163176
change(e) {
164177
//console.log(e)

‎pages/extUI/swipe-action/swipe-action.vue‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
},
5858
data() {
5959
return {
60-
isOpened: true,
60+
isOpened: false,
6161
options1: [{
6262
text: '取消置顶'
6363
}],
@@ -87,6 +87,11 @@
8787
}]
8888
}
8989
},
90+
onLoad() {
91+
setTimeout(() => {
92+
this.isOpened = true
93+
}, 350)
94+
},
9095
methods: {
9196
bindClick(e) {
9297
console.log(e)

0 commit comments

Comments
 (0)