From c96bddfd2c8e11d11d519c5537325d47b4c5db2a Mon Sep 17 00:00:00 2001 From: xidedix Date: Thu, 5 Apr 2018 15:08:13 +0200 Subject: [PATCH] feat: app-footer fixed --- src/components/Footer/Footer.vue | 8 ++++++++ src/containers/Full.vue | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/Footer/Footer.vue b/src/components/Footer/Footer.vue index c22acfa8..2cb44e5c 100644 --- a/src/components/Footer/Footer.vue +++ b/src/components/Footer/Footer.vue @@ -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') + } } } diff --git a/src/containers/Full.vue b/src/containers/Full.vue index 6a84ab47..3bc75cc9 100644 --- a/src/containers/Full.vue +++ b/src/containers/Full.vue @@ -85,7 +85,7 @@ - +