mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-09 13:53:38 +08:00
perf: layout (#50)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user