perf: layout (#50)

This commit is contained in:
啝裳
2021-10-03 13:09:12 +08:00
committed by GitHub
parent 77b7abcbc3
commit 6b16a04229
14 changed files with 705 additions and 861 deletions

View File

@@ -1,16 +1,5 @@
<script lang="ts">
let routerArrays: Array<object> = [
{
path: "/welcome",
parentPath: "/",
meta: {
title: "message.hshome",
icon: "el-icon-s-home",
showLink: true,
savedPosition: false
}
}
];
import { routerArrays } from "./types";
export default {
computed: {
layout() {
@@ -204,7 +193,6 @@ onBeforeMount(() => {
</style>
<style lang="scss" scoped>
$sideBarWidth: 210px;
@mixin clearfix {
&::after {
content: "";
@@ -241,7 +229,7 @@ $sideBarWidth: 210px;
top: 0;
right: 0;
z-index: 9;
width: calc(100% - #{$sideBarWidth});
width: calc(100% - 210px);
transition: width 0.28s;
}