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
}
},
mounted: function () {
this.isFixed()
},
computed: {
classList () {
return [
'app-footer'
]
}
},
methods: {
isFixed () {
this.fixed ? document.body.classList.add('footer-fixed') : document.body.classList.remove('footer-fixed')
}
}
}
</script>
+1 -1
View File
@@ -85,7 +85,7 @@
<FullAside/>
</AppAside>
</div>
<AppFooter>
<AppFooter fixed>
<!--footer-->
</AppFooter>
</div>