Delete style btn-sm
This commit is contained in:
@@ -23,7 +23,7 @@ Vue.component('backtotop-component', {
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
var vm = this;
|
||||
let vm = this;
|
||||
window.addEventListener('scroll', this.catchScroll);
|
||||
let currentScroll = document.documentElement.scrollTop || document.body.scrollTop
|
||||
vm.visible = (currentScroll > 100);
|
||||
@@ -33,15 +33,15 @@ Vue.component('backtotop-component', {
|
||||
},
|
||||
methods: {
|
||||
catchScroll () {
|
||||
var vm = this;
|
||||
let vm = this;
|
||||
vm.visible = (window.pageYOffset > 100);
|
||||
},
|
||||
backToTop () {
|
||||
var vm = this;
|
||||
let vm = this;
|
||||
vm.scrollAnimate();
|
||||
},
|
||||
scrollAnimate: function() {
|
||||
var vm = this;
|
||||
let vm = this;
|
||||
let currentScroll = document.documentElement.scrollTop || document.body.scrollTop
|
||||
if (currentScroll > 0) {
|
||||
//alert(currentScroll);
|
||||
@@ -50,4 +50,4 @@ Vue.component('backtotop-component', {
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user