File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class =" infinite-loading-container"
3
- :class =" {
4
- hidden: !isLoading
5
- }" >
6
- <i class =" icon-loading" ></i >
2
+ <div class =" infinite-loading-container" >
3
+ <i class =" icon-loading" v-show =" isLoading" ></i >
7
4
</div >
8
5
</template >
9
6
<script >
52
49
},
53
50
ready () {
54
51
if (this .distance === undefined ) {
55
- this .$set (' distance' , 50 );
52
+ this .$set (' distance' , 100 );
56
53
}
57
54
58
55
scrollParent = getScrollParent (this .$el );
83
80
},
84
81
};
85
82
</script >
86
- <style lang="less">
83
+ <style lang="less" scoped >
87
84
@font-face {font-family : " vue-infinite-loading" ;
88
85
src : url(' ../assets/vue-infinite-loading.eot?t=1462930749' ) ; /* IE9*/
89
86
src : url(' ../assets/vue-infinite-loading.woff?t=1462930749' ) format (' woff' ), /* chrome, firefox */
101
98
102
99
.infinite-loading-container {
103
100
clear : both ;
104
- padding : 15px 0 ;
105
- min-height : 40px ;
106
101
text-align : center ;
107
102
* [class^= icon- ]{
108
103
@size : 30px ;
109
104
display : inline-block ;
105
+ margin : 15px 0 ;
110
106
width : @size ;
111
107
height : @size ;
112
108
font-size : @size ;
113
109
line-height : @size ;
114
110
color : #999 ;
111
+ border-radius : 50% ;
115
112
animation : ease loading 1.5s infinite ;
116
113
}
117
- & .hidden {
118
- display : none ;
119
- }
120
114
}
121
115
122
116
@keyframes loading {
You can’t perform that action at this time.
0 commit comments