数据中心添加周三开发 周四演示
This commit is contained in:
parent
54b50b9df1
commit
106f8d7868
|
@ -5,33 +5,33 @@
|
|||
:style="{ '--current-color': theme }"
|
||||
>
|
||||
<div class="newVersionSystem">
|
||||
<new-menu class="newMenuWidth" />
|
||||
<new-menu class="newMenuWidth" :class="{'closeWidth':$route.path.includes('settingMenu')}"/>
|
||||
<div class="newMenuAppMain">
|
||||
<tags-view v-if="showTagsView" />
|
||||
<app-main />
|
||||
<tags-view v-if="showTagsView"/>
|
||||
<app-main/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import router from "@/router";
|
||||
import RightPanel from "@/components/RightPanel";
|
||||
import notFound from "@/views/error/404";
|
||||
import router from '@/router'
|
||||
import RightPanel from '@/components/RightPanel'
|
||||
import notFound from '@/views/error/404'
|
||||
import {
|
||||
AppMain,
|
||||
Navbar,
|
||||
Settings,
|
||||
Sidebar,
|
||||
TagsView,
|
||||
NewMenu,
|
||||
} from "./components";
|
||||
import ResizeMixin from "./mixin/ResizeHandler";
|
||||
import { mapState } from "vuex";
|
||||
import variables from "@/assets/styles/variables.scss";
|
||||
NewMenu
|
||||
} from './components'
|
||||
import ResizeMixin from './mixin/ResizeHandler'
|
||||
import { mapState } from 'vuex'
|
||||
import variables from '@/assets/styles/variables.scss'
|
||||
|
||||
export default {
|
||||
name: "Layout",
|
||||
name: 'Layout',
|
||||
components: {
|
||||
AppMain,
|
||||
Navbar,
|
||||
|
@ -40,7 +40,7 @@ export default {
|
|||
Sidebar,
|
||||
TagsView,
|
||||
NewMenu,
|
||||
notFound,
|
||||
notFound
|
||||
},
|
||||
mixins: [ResizeMixin],
|
||||
computed: {
|
||||
|
@ -53,34 +53,34 @@ export default {
|
|||
conciseMenu: (state) => state.settings.conciseMenu,
|
||||
needTagsView: (state) => state.settings.tagsView,
|
||||
showTagsView: (state) => state.settings.showTagsView,
|
||||
fixedHeader: (state) => state.settings.fixedHeader,
|
||||
fixedHeader: (state) => state.settings.fixedHeader
|
||||
}),
|
||||
classObj() {
|
||||
return {
|
||||
// hideSidebar: !this.sidebar.opened,
|
||||
openSidebar: this.sidebar.opened,
|
||||
withoutAnimation: this.sidebar.withoutAnimation,
|
||||
mobile: this.device === "mobile",
|
||||
};
|
||||
mobile: this.device === 'mobile'
|
||||
}
|
||||
},
|
||||
variables() {
|
||||
return variables;
|
||||
},
|
||||
return variables
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
childrenType: false,
|
||||
childrenWidth: "1200px",
|
||||
};
|
||||
childrenWidth: '1200px'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleClickOutside() {
|
||||
this.$store.dispatch("app/closeSideBar", {
|
||||
withoutAnimation: false,
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
this.$store.dispatch('app/closeSideBar', {
|
||||
withoutAnimation: false
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
@ -94,25 +94,37 @@ export default {
|
|||
width: 100%;
|
||||
// padding: 0 8px;
|
||||
background: #ffffff;
|
||||
|
||||
&.mobile.openSidebar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.newVersionSystem {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.newMenuWidth {
|
||||
width: 114px;
|
||||
background-color: #fff;
|
||||
transition: all .3s;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.closeWidth {
|
||||
width: 0px !important;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.newMenuAppMain {
|
||||
width: calc(100% - 114px);
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.drawer-bg {
|
||||
background: #000;
|
||||
opacity: 0.3;
|
||||
|
@ -122,18 +134,21 @@ export default {
|
|||
position: absolute;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.defaultMuneStyle {
|
||||
width: calc(100% - 160px);
|
||||
margin-left: 160px;
|
||||
height: 100%;
|
||||
// padding:10px;
|
||||
}
|
||||
|
||||
.conciseMenuStyle {
|
||||
width: calc(100% - 70px);
|
||||
margin-left: 70px;
|
||||
padding: 10px;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.fixed-header {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
|
@ -154,6 +169,7 @@ export default {
|
|||
.mobile .fixed-header {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.webConcat {
|
||||
position: fixed;
|
||||
top: 50px;
|
||||
|
|
Loading…
Reference in New Issue