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 11<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 >
74 </div >
85</template >
96<script >
5249 },
5350 ready () {
5451 if (this .distance === undefined ) {
55- this .$set (' distance' , 50 );
52+ this .$set (' distance' , 100 );
5653 }
5754
5855 scrollParent = getScrollParent (this .$el );
8380 },
8481 };
8582 </script >
86- <style lang="less">
83+ <style lang="less" scoped >
8784 @font-face {font-family : " vue-infinite-loading" ;
8885 src : url(' ../assets/vue-infinite-loading.eot?t=1462930749' ) ; /* IE9*/
8986 src : url(' ../assets/vue-infinite-loading.woff?t=1462930749' ) format (' woff' ), /* chrome, firefox */
10198
10299 .infinite-loading-container {
103100 clear : both ;
104- padding : 15px 0 ;
105- min-height : 40px ;
106101 text-align : center ;
107102 * [class^= icon- ]{
108103 @size : 30px ;
109104 display : inline-block ;
105+ margin : 15px 0 ;
110106 width : @size ;
111107 height : @size ;
112108 font-size : @size ;
113109 line-height : @size ;
114110 color : #999 ;
111+ border-radius : 50% ;
115112 animation : ease loading 1.5s infinite ;
116113 }
117- & .hidden {
118- display : none ;
119- }
120114 }
121115
122116 @keyframes loading {
You can’t perform that action at this time.
0 commit comments