feat: npm底部tab

This commit is contained in:
chenjinsong
2021-07-05 22:58:12 +08:00
parent c426084934
commit 22f46be258
10 changed files with 98 additions and 114 deletions

View File

@@ -1,9 +1,6 @@
<template>
<div class="cn-container">
<router-view :key="routerKey"/>
<!-- 临时文本dom用来计算文本长度 -->
<span class="temp-dom temp-dom--12"></span>
<span class="temp-dom temp-dom--14"></span>
</div>
</template>
@@ -30,17 +27,5 @@ export default {
&>div {
height: 100%;
}
.temp-dom {
visibility: hidden;
font-size: 14px;
position: fixed;
}
.temp-dom--12 {
font-size: 12px;
}
.temp-dom--14 {
font-size: 14px;
}
}
</style>