Skip to content

Commit c96bddf

Browse files
committed
feat: app-footer fixed
1 parent 2313d94 commit c96bddf

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/components/Footer/Footer.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,20 @@
2222
default: false
2323
}
2424
},
25+
mounted: function () {
26+
this.isFixed()
27+
},
2528
computed: {
2629
classList () {
2730
return [
2831
'app-footer'
2932
]
3033
}
34+
},
35+
methods: {
36+
isFixed () {
37+
this.fixed ? document.body.classList.add('footer-fixed') : document.body.classList.remove('footer-fixed')
38+
}
3139
}
3240
}
3341
</script>

src/containers/Full.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<FullAside/>
8686
</AppAside>
8787
</div>
88-
<AppFooter>
88+
<AppFooter fixed>
8989
<!--footer-->
9090
</AppFooter>
9191
</div>

0 commit comments

Comments
 (0)