feat: app-footer fixed
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
<FullAside/>
|
<FullAside/>
|
||||||
</AppAside>
|
</AppAside>
|
||||||
</div>
|
</div>
|
||||||
<AppFooter>
|
<AppFooter fixed>
|
||||||
<!--footer-->
|
<!--footer-->
|
||||||
</AppFooter>
|
</AppFooter>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user