File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" mint-loadmore" >
3
- <div class =" mint-loadmore-content" :class =" { 'is-dropped': topDropped || bottomDropped}" :style =" { 'transform': 'translate3d(0, ' + translate + 'px, 0)' }" >
3
+ <div class =" mint-loadmore-content" :class =" { 'is-dropped': topDropped || bottomDropped}" :style =" { 'transform': transform }" >
4
4
<slot name =" top" >
5
5
<div class =" mint-loadmore-top" v-if =" topMethod" >
6
6
<spinner v-if =" topStatus === 'loading'" class =" mint-loadmore-spinner" :size =" 20" type =" fading-circle" ></spinner >
140
140
};
141
141
},
142
142
143
+ computed: {
144
+ transform () {
145
+ return this .translate === 0 ? null : ' translate3d(0, ' + this.translate + ' px, 0)' ;
146
+ }
147
+ },
148
+
143
149
watch: {
144
150
topStatus (val ) {
145
151
this .$emit ('top-status-change ', val );
You can’t perform that action at this time.
0 commit comments