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