提交 ea1b2581 编写于 作者: LUCIFER-ZHU's avatar LUCIFER-ZHU

update: 更新

上级 53afd5fe
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
.app-breadcrumb.el-breadcrumb { .app-breadcrumb.el-breadcrumb {
display: inline-block; display: inline-block;
font-size: 14px; font-size: 14px;
margin-bottom: 16px; background-color: var(--ey-color-gray-250);
padding: 16px 5%;
.no-redirect { .no-redirect {
color: var(--ey-color-black); color: var(--ey-color-black);
font-weight: bold; font-weight: bold;
......
<template> <template>
<layout :class="layoutClassName"> <layout :class="layoutClassName" ref="editViewLayout">
<header class="view-header"> <header class="view-header">
<div class="view-header__top"> <div class="view-header__top">
<slot name="headerTop" /> <slot name="headerTop" />
...@@ -41,7 +41,7 @@ export default class AppEditViewLayout extends Vue { ...@@ -41,7 +41,7 @@ export default class AppEditViewLayout extends Vue {
* @type {boolean} * @type {boolean}
* @memberof AppEditViewLayout * @memberof AppEditViewLayout
*/ */
@Prop({ default: true }) public viewDefaultUsage?: boolean; @Prop({ default: false }) public viewDefaultUsage?: boolean;
/** /**
* 布局类名 * 布局类名
...@@ -54,6 +54,21 @@ export default class AppEditViewLayout extends Vue { ...@@ -54,6 +54,21 @@ export default class AppEditViewLayout extends Vue {
'view-default-usage': this.viewDefaultUsage ? true :false} 'view-default-usage': this.viewDefaultUsage ? true :false}
} }
mounted(){
if (this.viewDefaultUsage) {
const layout:any = this.$refs.editViewLayout;
if (layout && layout.$el ){
const header = layout.$el.querySelector('.view-header');
const content = layout.$el.querySelector('.view-content');
console.log(layout, header, content);
setTimeout(() => {
const height = header.offsetHeight;
content.style.marginTop = height + 'px';
}, 500);
}
}
}
} }
</script> </script>
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
.index-view-content { .index-view-content {
height: calc(100% - 64px); height: calc(100% - 64px);
overflow: auto; overflow: auto;
padding: 20px 80px 0 80px; padding: 0 5%;
background-color: var(--ey-color-gray-250); background-color: var(--ey-color-gray-250);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -73,13 +73,14 @@ ...@@ -73,13 +73,14 @@
.index-view-content{ .index-view-content{
// 编辑视图默认使用 // 编辑视图默认使用
.edit-view-layout.view-default-usage{ .edit-view-layout.view-default-usage{
// 为什么写在这边,因为只有上布局会有copyright,这里算高度算上 position: inherit;
height: calc(100% - 130px); .view-header{
display: flex; position: absolute;
flex-direction: column; z-index: 100;
.view-content{ top: 106px;
flex: 1; width: calc(90% - 4px);
overflow-y: auto; background-color: var(--ey-color-white);
border-radius: 6px 6px 0 0;
} }
} }
// 表格视图默认使用 // 表格视图默认使用
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
<slot name="headerRight" /> <slot name="headerRight" />
</div> </div>
</header> </header>
<slot name="breadcrumb" />
<content class="index-view-content"> <content class="index-view-content">
<slot name="breadcrumb" />
<slot name="navPos" /> <slot name="navPos" />
<div class="copyright-notice"> <div class="copyright-notice">
<div class="notice">Copyright 1999-2021 Ernst & Young. All Rights Reserved.</div> <div class="notice">Copyright 1999-2021 Ernst & Young. All Rights Reserved.</div>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册