| | |
| | | <template> |
| | | <div :class="classObj" class="app-wrapper" :style="{ '--current-color': theme, '--current-color-light': theme + '1a', '--current-color-dark-bg': theme + '33' }"> |
| | | <div v-if="device === 'mobile' && sidebar.opened" class="drawer-bg" @click="handleClickOutside"/> |
| | | <!-- 业务布局:顶栏整宽固定在页面顶端(覆盖侧边栏上方),侧边栏与页签栏均从顶栏下方开始 --> |
| | | <navbar @setLayout="setLayout" /> |
| | | <sidebar v-if="!sidebar.hide" class="sidebar-container" /> |
| | | <div :class="{ hasTagsView: needTagsView, sidebarHide: sidebar.hide }" class="main-container"> |
| | | <div :class="{ 'fixed-header': fixedHeader }"> |
| | | <navbar @setLayout="setLayout" /> |
| | | <tags-view v-if="needTagsView" /> |
| | | </div> |
| | | <app-main /> |
| | |
| | | z-index: 999; |
| | | } |
| | | |
| | | /* 业务定制:页签栏贴在 50px 顶栏下方,不再从页面顶端开始 */ |
| | | .fixed-header { |
| | | position: fixed; |
| | | top: 0; |
| | | top: 50px; |
| | | right: 0; |
| | | z-index: 9; |
| | | width: calc(100% - #{vars.$base-sidebar-width}); |