refactor: refine layout directory structure
This commit is contained in:
parent
87a44ae7f5
commit
ccddfe87bc
|
@ -3,20 +3,22 @@
|
||||||
<sidebar class="sidebar-container"></sidebar>
|
<sidebar class="sidebar-container"></sidebar>
|
||||||
<div class="main-container">
|
<div class="main-container">
|
||||||
<navbar></navbar>
|
<navbar></navbar>
|
||||||
|
<tabs-view></tabs-view>
|
||||||
<app-main></app-main>
|
<app-main></app-main>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Navbar, Sidebar, AppMain } from 'views/layout'
|
import { Navbar, Sidebar, AppMain, TabsView } from 'views/layout/components'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'layout',
|
name: 'layout',
|
||||||
components: {
|
components: {
|
||||||
Navbar,
|
Navbar,
|
||||||
Sidebar,
|
Sidebar,
|
||||||
AppMain
|
AppMain,
|
||||||
|
TabsView
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
sidebar() {
|
sidebar() {
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
<el-menu class="navbar" mode="horizontal">
|
<el-menu class="navbar" mode="horizontal">
|
||||||
<hamburger class="hamburger-container" :toggleClick="toggleSideBar" :isActive="sidebar.opened"></hamburger>
|
<hamburger class="hamburger-container" :toggleClick="toggleSideBar" :isActive="sidebar.opened"></hamburger>
|
||||||
<levelbar></levelbar>
|
<levelbar></levelbar>
|
||||||
<tabs-view></tabs-view>
|
|
||||||
<error-log v-if="log.length>0" class="errLog-container" :logsList="log"></error-log>
|
<error-log v-if="log.length>0" class="errLog-container" :logsList="log"></error-log>
|
||||||
<screenfull class='screenfull'></screenfull>
|
<screenfull class='screenfull'></screenfull>
|
||||||
<el-dropdown class="avatar-container" trigger="click">
|
<el-dropdown class="avatar-container" trigger="click">
|
||||||
|
@ -30,7 +29,6 @@
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import Levelbar from './Levelbar'
|
import Levelbar from './Levelbar'
|
||||||
import TabsView from './TabsView'
|
|
||||||
import Hamburger from 'components/Hamburger'
|
import Hamburger from 'components/Hamburger'
|
||||||
import Screenfull from 'components/Screenfull'
|
import Screenfull from 'components/Screenfull'
|
||||||
import ErrorLog from 'components/ErrLog'
|
import ErrorLog from 'components/ErrLog'
|
||||||
|
@ -39,7 +37,6 @@ import errLogStore from 'store/errLog'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Levelbar,
|
Levelbar,
|
||||||
TabsView,
|
|
||||||
Hamburger,
|
Hamburger,
|
||||||
ErrorLog,
|
ErrorLog,
|
||||||
Screenfull
|
Screenfull
|
|
@ -1,7 +1,4 @@
|
||||||
export { default as Navbar } from './Navbar'
|
export { default as Navbar } from './Navbar'
|
||||||
|
|
||||||
export { default as Sidebar } from './Sidebar'
|
export { default as Sidebar } from './Sidebar'
|
||||||
|
export { default as TabsView } from './TabsView'
|
||||||
export { default as Levelbar } from './Levelbar'
|
|
||||||
|
|
||||||
export { default as AppMain } from './AppMain'
|
export { default as AppMain } from './AppMain'
|
Loading…
Reference in New Issue