增加设置面板‘流式’、‘定宽’切换界面随之修改。

This commit is contained in:
samulle
2020-08-28 15:21:16 +08:00
parent 365dde7e66
commit 2436182baf
8 changed files with 24 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
<template>
<a-layout-header :class="[headerTheme, 'admin-header']">
<div :class="['admin-header-wide', layout]">
<div :class="['admin-header-wide', layout == 'side' ? layout : (fixedWidth == 2 ? layout : '')]">
<router-link v-if="isMobile || layout === 'head'" to="/" :class="['logo', isMobile ? null : 'pc', headerTheme]">
<img width="32" src="@/assets/img/logo.png" />
<h1 v-if="!isMobile">{{systemName}}</h1>
@@ -53,7 +53,7 @@ export default {
}
},
computed: {
...mapState('setting', ['theme', 'isMobile', 'layout', 'systemName', 'lang']),
...mapState('setting', ['theme', 'isMobile', 'layout', 'systemName', 'lang', 'fixedWidth']),
headerTheme () {
if (this.layout == 'side' && this.theme.mode == 'dark' && !this.isMobile) {
return 'light'

View File

@@ -14,9 +14,11 @@
}
}
.admin-header-wide{
padding-left: 24px;
&.head{
max-width: 1400px;
margin: auto;
padding-left: 0;
}
&.side{
padding-right: 12px;