优化歌曲信息编辑界面,无内容时 footer 置于屏幕底部 #30

Closed
kylebing wants to merge 1 commits from kylebing/web:master into master
2 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<template>
<el-container id="app" :style="`min-height: ${heightMinContainer}px`">
<el-container id="app">

直接使用 100vh 会不会好一些?有没有必要用 JS 来计算这部分高度?

直接使用 `100vh` 会不会好一些?有没有必要用 JS 来计算这部分高度?
<el-main class="p-0">
<Home />
</el-main>
@ -41,15 +41,12 @@ export default {
data() {
return {
version: config.version,
heightMinContainer: 800
};
},
created() {
this.$nextTick(() => {
this.heightMinContainer = innerHeight
this.finishLoad()
window.onresize = () => {
this.heightMinContainer = innerHeight
}
});
},

View File

@ -16,6 +16,7 @@ body{
}
#app {
min-height: 100vh;
text-align: center;
color: $text-main;
padding: 30px;