Skip to content

Commit c0bee41

Browse files
committed
update : 同步 uni-ui ,修改组件样式若干
1 parent 39103be commit c0bee41

9 files changed

Lines changed: 685 additions & 691 deletions

File tree

‎components/uni-collapse-item/uni-collapse-item.vue‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</view>
1313
</view>
1414
<view :class="{'uni-collapse-cell--animation':showAnimation===true}" :style="{height:isOpen ? height : '0px'}" class="uni-collapse-cell__content">
15-
<view :id="elId">
15+
<view class="view" :id="elId">
1616
<slot />
1717
</view>
1818
</view>
@@ -185,6 +185,8 @@
185185
.uni-collapse-cell__title-arrow {
186186
width: 20px;
187187
height: 20px;
188+
display: flex;
189+
align-items: center;
188190
transform: rotate(0);
189191
transform-origin: center center
190192
}
@@ -216,7 +218,7 @@
216218
background: #fff
217219
}
218220
219-
.uni-collapse-cell__content view {
221+
.uni-collapse-cell__content .view {
220222
font-size: 28upx
221223
}
222224
</style>

‎components/uni-icon/uni-icon.vue‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎components/uni-list-item/uni-list-item.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<image :src="thumb" class="uni-list-item__icon-img" />
66
</view>
77
<view v-else-if="showExtraIcon" class="uni-list-item__icon">
8-
<uni-icon :color="extraIcon.color" :size="extraIcon.size" :type="extraIcon.type" />
8+
<uni-icon class="uni-icon-wrapper" :color="extraIcon.color" :size="extraIcon.size" :type="extraIcon.type" />
99
</view>
1010
<view class="uni-list-item__content">
1111
<view class="uni-list-item__content-title">{{ title }}</view>
@@ -14,7 +14,7 @@
1414
<view v-if="showBadge || showArrow || showSwitch" class="uni-list-item__extra">
1515
<uni-badge v-if="showBadge" :type="badgeType" :text="badgeText" />
1616
<switch v-if="showSwitch" :disabled="disabled" :checked="switchChecked" @change="onSwitchChange" />
17-
<uni-icon v-if="showArrow" :size="20" color="#bbb" type="arrowright" />
17+
<uni-icon class="uni-icon-wrapper" v-if="showArrow" :size="20" color="#bbb" type="arrowright" />
1818
</view>
1919
</view>
2020
</view>

‎components/uni-load-more/uni-load-more.vue‎

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
<view class="uni-load-more">
33
<view v-show="status === 'loading' && showIcon" class="uni-load-more__img">
44
<view class="load1">
5-
<view :style="{background:color}" />
6-
<view :style="{background:color}" />
7-
<view :style="{background:color}" />
8-
<view :style="{background:color}" />
5+
<view class="uni-load-view_wrapper" :style="{background:color}" />
6+
<view class="uni-load-view_wrapper" :style="{background:color}" />
7+
<view class="uni-load-view_wrapper" :style="{background:color}" />
8+
<view class="uni-load-view_wrapper" :style="{background:color}" />
99
</view>
1010
<view class="load2">
11-
<view :style="{background:color}" />
12-
<view :style="{background:color}" />
13-
<view :style="{background:color}" />
14-
<view :style="{background:color}" />
11+
<view class="uni-load-view_wrapper" :style="{background:color}" />
12+
<view class="uni-load-view_wrapper" :style="{background:color}" />
13+
<view class="uni-load-view_wrapper" :style="{background:color}" />
14+
<view class="uni-load-view_wrapper" :style="{background:color}" />
1515
</view>
1616
<view class="load3">
17-
<view :style="{background:color}" />
18-
<view :style="{background:color}" />
19-
<view :style="{background:color}" />
20-
<view :style="{background:color}" />
17+
<view class="uni-load-view_wrapper" :style="{background:color}" />
18+
<view class="uni-load-view_wrapper" :style="{background:color}" />
19+
<view class="uni-load-view_wrapper" :style="{background:color}" />
20+
<view class="uni-load-view_wrapper" :style="{background:color}" />
2121
</view>
2222
</view>
2323
<text :style="{color:color}" class="uni-load-more__text">{{ status === 'more' ? contentText.contentdown : (status === 'loading' ? contentText.contentrefresh : contentText.contentnomore) }}</text>
@@ -80,11 +80,11 @@
8080
margin-right: 10px
8181
}
8282
83-
.uni-load-more__img>view {
83+
.uni-load-more__img>.uni-load-view_wrapper {
8484
position: absolute
8585
}
8686
87-
.uni-load-more__img>view view {
87+
.uni-load-more__img>.uni-load-view_wrapper .uni-load-view_wrapper {
8888
width: 6px;
8989
height: 2px;
9090
border-top-left-radius: 1px;
@@ -96,25 +96,25 @@
9696
animation: load 1.56s ease infinite
9797
}
9898
99-
.uni-load-more__img>view view:nth-child(1) {
99+
.uni-load-more__img>.uni-load-view_wrapper .uni-load-view_wrapper:nth-child(1) {
100100
transform: rotate(90deg);
101101
top: 2px;
102102
left: 9px
103103
}
104104
105-
.uni-load-more__img>view view:nth-child(2) {
105+
.uni-load-more__img>.uni-load-view_wrapper .uni-load-view_wrapper:nth-child(2) {
106106
transform: rotate(180deg);
107107
top: 11px;
108108
right: 0
109109
}
110110
111-
.uni-load-more__img>view view:nth-child(3) {
111+
.uni-load-more__img>.uni-load-view_wrapper .uni-load-view_wrapper:nth-child(3) {
112112
transform: rotate(270deg);
113113
bottom: 2px;
114114
left: 9px
115115
}
116116
117-
.uni-load-more__img>view view:nth-child(4) {
117+
.uni-load-more__img>.uni-load-view_wrapper .uni-load-view_wrapper:nth-child(4) {
118118
top: 11px;
119119
left: 0
120120
}
@@ -134,51 +134,51 @@
134134
transform: rotate(60deg)
135135
}
136136
137-
.load1 view:nth-child(1) {
137+
.load1 .uni-load-view_wrapper:nth-child(1) {
138138
animation-delay: 0s
139139
}
140140
141-
.load2 view:nth-child(1) {
141+
.load2 .uni-load-view_wrapper:nth-child(1) {
142142
animation-delay: .13s
143143
}
144144
145-
.load3 view:nth-child(1) {
145+
.load3 .uni-load-view_wrapper:nth-child(1) {
146146
animation-delay: .26s
147147
}
148148
149-
.load1 view:nth-child(2) {
149+
.load1 .uni-load-view_wrapper:nth-child(2) {
150150
animation-delay: .39s
151151
}
152152
153-
.load2 view:nth-child(2) {
153+
.load2 .uni-load-view_wrapper:nth-child(2) {
154154
animation-delay: .52s
155155
}
156156
157-
.load3 view:nth-child(2) {
157+
.load3 .uni-load-view_wrapper:nth-child(2) {
158158
animation-delay: .65s
159159
}
160160
161-
.load1 view:nth-child(3) {
161+
.load1 .uni-load-view_wrapper:nth-child(3) {
162162
animation-delay: .78s
163163
}
164164
165-
.load2 view:nth-child(3) {
165+
.load2 .uni-load-view_wrapper:nth-child(3) {
166166
animation-delay: .91s
167167
}
168168
169-
.load3 view:nth-child(3) {
169+
.load3 .uni-load-view_wrapper:nth-child(3) {
170170
animation-delay: 1.04s
171171
}
172172
173-
.load1 view:nth-child(4) {
173+
.load1 .uni-load-view_wrapper:nth-child(4) {
174174
animation-delay: 1.17s
175175
}
176176
177-
.load2 view:nth-child(4) {
177+
.load2 .uni-load-view_wrapper:nth-child(4) {
178178
animation-delay: 1.3s
179179
}
180180
181-
.load3 view:nth-child(4) {
181+
.load3 .uni-load-view_wrapper:nth-child(4) {
182182
animation-delay: 1.43s
183183
}
184184

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22
<view class="uni-navbar">
33
<view :class="{'uni-navbar--fixed': fixed,'uni-navbar--shadow':border,'uni-navbar--border':border}" :style="{'background-color':backgroundColor}" class="uni-navbar__content">
44
<uni-status-bar v-if="statusBar" />
5-
<view :style="{color:color}" class="uni-navbar__header">
6-
<view class="uni-navbar__header-btns" @tap="onClickLeft">
7-
<view v-if="leftIcon.length">
5+
<view :style="{color:color}" class="uni-navbar__header uni-navbar__content_view">
6+
<view class="uni-navbar__header-btns uni-navbar__content_view" @tap="onClickLeft">
7+
<view v-if="leftIcon.length" class="uni-navbar__content_view">
88
<uni-icon :type="leftIcon" :color="color" size="24" />
99
</view>
10-
<view v-if="leftText.length" :class="{'uni-navbar-btn-icon-left':!leftIcon.length}" class="uni-navbar-btn-text">{{ leftText }}</view>
10+
<view v-if="leftText.length" :class="{'uni-navbar-btn-icon-left':!leftIcon.length}" class="uni-navbar-btn-text uni-navbar__content_view">{{ leftText }}</view>
1111
<slot name="left" />
1212
</view>
13-
<view class="uni-navbar__header-container">
14-
<view v-if="title.length" class="uni-navbar__header-container-inner">{{ title }}</view>
13+
<view class="uni-navbar__header-container uni-navbar__content_view">
14+
<view v-if="title.length" class="uni-navbar__header-container-inner uni-navbar__content_view">{{ title }}</view>
1515
<!-- 标题插槽 -->
1616
<slot />
1717
</view>
18-
<view class="uni-navbar__header-btns" @tap="onClickRight">
19-
<view v-if="rightIcon.length">
18+
<view class="uni-navbar__header-btns uni-navbar__content_view" @tap="onClickRight">
19+
<view v-if="rightIcon.length" class="uni-navbar__content_view">
2020
<uni-icon :type="rightIcon" :color="color" size="24" />
2121
</view>
2222
<!-- 优先显示图标 -->
23-
<view v-if="rightText.length&&!rightIcon.length" class="uni-navbar-btn-text">{{ rightText }}</view>
23+
<view v-if="rightText.length&&!rightIcon.length" class="uni-navbar-btn-text uni-navbar__content_view">{{ rightText }}</view>
2424
<slot name="right" />
2525
</view>
2626
</view>
@@ -110,7 +110,7 @@
110110
overflow: hidden
111111
}
112112
113-
.uni-navbar__content view {
113+
.uni-navbar__content .uni-navbar__content_view {
114114
line-height: 44px
115115
}
116116

0 commit comments

Comments
 (0)