feat: app-footer fixed

This commit is contained in:
xidedix
2018-04-05 15:08:13 +02:00
parent 2313d9421e
commit c96bddfd2c
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -22,12 +22,20 @@
default: false default: false
} }
}, },
mounted: function () {
this.isFixed()
},
computed: { computed: {
classList () { classList () {
return [ return [
'app-footer' 'app-footer'
] ]
} }
},
methods: {
isFixed () {
this.fixed ? document.body.classList.add('footer-fixed') : document.body.classList.remove('footer-fixed')
}
} }
} }
</script> </script>
+1 -1
View File
@@ -85,7 +85,7 @@
<FullAside/> <FullAside/>
</AppAside> </AppAside>
</div> </div>
<AppFooter> <AppFooter fixed>
<!--footer--> <!--footer-->
</AppFooter> </AppFooter>
</div> </div>