数据中心添加周三开发 周四演示

This commit is contained in:
hyt 2024-08-29 11:19:09 +08:00
parent 54b50b9df1
commit 106f8d7868
1 changed files with 43 additions and 27 deletions

View File

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