update 面包屑位置调整
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/*用户信息部分的高度*/
|
/*用户信息部分的高度*/
|
||||||
@user-info-height: var(--user-info-height, 59px);
|
@user-info-height: var(--user-info-height, 59px);
|
||||||
/*面包屑的高度,高度21,上下margin24*/
|
/*面包屑的高度,高度21,上下margin24 2023-12-06,面包屑挪到用户信息那一栏了,现在12px是margin的数值*/
|
||||||
@breadcrumb-height: var(--breadcrumb-height, 45px);
|
@breadcrumb-height: var(--breadcrumb-height, 12px);
|
||||||
/* 页面不出全局滚动条的高度,如果在vue文件使用,就只能在style里引入common.less */
|
/* 页面不出全局滚动条的高度,如果在vue文件使用,就只能在style里引入common.less */
|
||||||
@page-content-h: calc(100vh - @user-info-height - @breadcrumb-height);
|
@page-content-h: calc(100vh - @user-info-height - @breadcrumb-height);
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
<!-- </a-tab-pane>-->
|
<!-- </a-tab-pane>-->
|
||||||
<!--</a-tabs>-->
|
<!--</a-tabs>-->
|
||||||
|
|
||||||
<breadcrumb v-if="!isEmbedded"/>
|
|
||||||
<div :style="!isEmbedded ? 'margin: 12px 12px 0;' : ''">
|
<div :style="!isEmbedded ? 'margin: 12px 12px 0;' : ''">
|
||||||
<!-- update-begin-author:taoyan date:20201221 for:此处删掉transition标签 不知道为什么加上后 页面路由切换的时候即1及菜单切到2及菜单的时候 两个菜单页面会同时出现300-500秒左右 -->
|
<!-- update-begin-author:taoyan date:20201221 for:此处删掉transition标签 不知道为什么加上后 页面路由切换的时候即1及菜单切到2及菜单的时候 两个菜单页面会同时出现300-500秒左右 -->
|
||||||
<keep-alive v-if="multipage">
|
<keep-alive v-if="multipage">
|
||||||
@@ -44,7 +43,6 @@ import { triggerWindowResizeEvent } from '@/utils/util'
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { CACHE_INCLUDED_ROUTES } from '@/store/mutation-types'
|
import { CACHE_INCLUDED_ROUTES } from '@/store/mutation-types'
|
||||||
import BlankLayout from './BlankLayout.vue'
|
import BlankLayout from './BlankLayout.vue'
|
||||||
import Breadcrumb from '../tools/Breadcrumb.vue'
|
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
|
|
||||||
const indexKey = '/'
|
const indexKey = '/'
|
||||||
@@ -54,8 +52,7 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
BlankLayout,
|
BlankLayout,
|
||||||
GlobalLayout,
|
GlobalLayout,
|
||||||
Contextmenu,
|
Contextmenu
|
||||||
Breadcrumb
|
|
||||||
},
|
},
|
||||||
mixins: [mixin, mixinDevice],
|
mixins: [mixin, mixinDevice],
|
||||||
data () {
|
data () {
|
||||||
|
|||||||
@@ -17,8 +17,7 @@
|
|||||||
:type="collapsed ? 'menu-unfold' : 'menu-fold'"
|
:type="collapsed ? 'menu-unfold' : 'menu-fold'"
|
||||||
@click="toggle" />
|
@click="toggle" />
|
||||||
|
|
||||||
<span v-if="device === 'desktop'">中国重汽标准法规管理模块系统</span>
|
<breadcrumb v-if="!isEmbedded" class="breadcrumb" />
|
||||||
<span v-else>Jero-Boot</span>
|
|
||||||
|
|
||||||
<user-menu :theme="theme" />
|
<user-menu :theme="theme" />
|
||||||
</div>
|
</div>
|
||||||
@@ -53,10 +52,12 @@ import UserMenu from '../tools/UserMenu'
|
|||||||
import SMenu from '../menu/'
|
import SMenu from '../menu/'
|
||||||
import Logo from '../tools/Logo'
|
import Logo from '../tools/Logo'
|
||||||
import { mixin } from '@/utils/mixin.js'
|
import { mixin } from '@/utils/mixin.js'
|
||||||
|
import Breadcrumb from '../tools/Breadcrumb'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'GlobalHeader',
|
name: 'GlobalHeader',
|
||||||
components: {
|
components: {
|
||||||
|
Breadcrumb,
|
||||||
UserMenu,
|
UserMenu,
|
||||||
SMenu,
|
SMenu,
|
||||||
Logo
|
Logo
|
||||||
@@ -182,8 +183,10 @@ export default {
|
|||||||
line-height: @height;
|
line-height: @height;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.trigger {
|
.trigger {
|
||||||
line-height: 64px;
|
line-height: 64px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: rgba(0, 0, 0, 0.05);
|
background: rgba(0, 0, 0, 0.05);
|
||||||
}
|
}
|
||||||
@@ -198,6 +201,7 @@ export default {
|
|||||||
transition: background 300ms;
|
transition: background 300ms;
|
||||||
|
|
||||||
/* dark 样式 */
|
/* dark 样式 */
|
||||||
|
|
||||||
&.dark {
|
&.dark {
|
||||||
color: #000000;
|
color: #000000;
|
||||||
box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
|
box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
|
||||||
@@ -218,5 +222,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* update_end author:scott date:20190220 for: 缩小首页布局顶部的高度*/
|
/* update_end author:scott date:20190220 for: 缩小首页布局顶部的高度*/
|
||||||
|
.breadcrumb {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ const updatePageHeight = () => {
|
|||||||
const obj = {
|
const obj = {
|
||||||
'primary-color': '#D52C26',
|
'primary-color': '#D52C26',
|
||||||
'user-info-height': isEmbedded ? '0px' : '59px', // 用户信息的高度
|
'user-info-height': isEmbedded ? '0px' : '59px', // 用户信息的高度
|
||||||
'breadcrumb-height': isEmbedded ? '0px' : '45px' // 面包屑的高度
|
'breadcrumb-height': isEmbedded ? '0px' : '12px' // 面包屑的高度(2023-12-06,面包屑挪到用户信息那一栏了,现在12px是margin的数值)
|
||||||
}
|
}
|
||||||
// 计算表格竖向滚动条使用
|
// 计算表格竖向滚动条使用
|
||||||
const storeObj = Object.assign(obj, {
|
const storeObj = Object.assign(obj, {
|
||||||
|
|||||||
Reference in New Issue
Block a user