Skip to content

Commit cdcf8f9

Browse files
committed
fix: title border
1 parent 41aaaee commit cdcf8f9

File tree

29 files changed

+1715
-2605
lines changed

29 files changed

+1715
-2605
lines changed

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

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<template>
22
<view class="uni-load-more">
3-
<view v-show="status === 'loading' && showIcon" class="uni-load-more__img">
3+
<view v-if="platform === 'android'" v-show="status === 'loading' && showIcon" class="uni-load-more__img">
4+
<view :style="{borderColor : color}" class="loader-android" />
5+
</view>
6+
<view v-else v-show="status === 'loading' && showIcon" class="uni-load-more__img">
47
<view class="load1 load">
58
<view :style="{ background: color }" class="uni-load-view_wrapper" />
69
<view :style="{ background: color }" class="uni-load-view_wrapper" />
@@ -27,6 +30,7 @@
2730
</template>
2831

2932
<script>
33+
const platform = uni.getSystemInfoSync().platform
3034
export default {
3135
name: 'UniLoadMore',
3236
props: {
@@ -55,7 +59,9 @@
5559
}
5660
},
5761
data() {
58-
return {}
62+
return {
63+
platform: platform
64+
}
5965
}
6066
}
6167
</script>
@@ -77,6 +83,7 @@
7783
}
7884
7985
.uni-load-more__img {
86+
position: relative;
8087
height: 24px;
8188
width: 24px;
8289
margin-right: 10px
@@ -121,6 +128,19 @@
121128
left: 0
122129
}
123130
131+
.uni-load-more__img>.loader-android {
132+
position: absolute;
133+
left: 0;
134+
top: 0;
135+
right: 0;
136+
bottom: 0;
137+
box-sizing: border-box;
138+
border: solid 2px #777;
139+
border-radius: 50%;
140+
border-bottom-color: transparent !important;
141+
animation: loader-android 2s 0s linear infinite
142+
}
143+
124144
.load1,
125145
.load2,
126146
.load3 {
@@ -193,4 +213,14 @@
193213
opacity: .2
194214
}
195215
}
216+
217+
@-webkit-keyframes loader-android {
218+
0% {
219+
transform: rotate(0)
220+
}
221+
222+
100% {
223+
transform: rotate(360deg)
224+
}
225+
}
196226
</style>

0 commit comments

Comments
 (0)