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

update: 更新

上级 42234c58
<template> <template>
<layout class="edit-view-layout view-layout view-container"> <layout :class="layoutClassName">
<header class="view-header"> <header class="view-header">
<div class="view-header__top"> <div class="view-header__top">
<slot name="headerTop" /> <slot name="headerTop" />
...@@ -30,11 +30,30 @@ ...@@ -30,11 +30,30 @@
</layout> </layout>
</template> </template>
<script lang="ts"> <script lang="ts">
import { Vue, Component } from 'vue-property-decorator'; import { Vue, Component, Prop } from 'vue-property-decorator';
@Component({}) @Component({})
export default class AppEditViewLayout extends Vue { export default class AppEditViewLayout extends Vue {
/**
* 视图默认使用
*
* @type {boolean}
* @memberof AppEditViewLayout
*/
@Prop({ default: true }) public viewDefaultUsage?: boolean;
/**
* 布局类名
*
* @memberof AppEditViewLayout
*/
get layoutClassName(){
return {'edit-view-layout view-layout':true,
'view-container': true,
'view-default-usage': this.viewDefaultUsage ? true :false}
}
} }
</script> </script>
......
...@@ -79,7 +79,4 @@ ...@@ -79,7 +79,4 @@
flex: auto; flex: auto;
background: var(--app-color-white); background: var(--app-color-white);
} }
>.view-footer {
height: 40px;
}
} }
\ No newline at end of file
<template> <template>
<layout class="grid-view-layout view-layout"> <layout :class="layoutClassName">
<header class="view-header"> <header class="view-header">
<div class="view-header__top"> <div class="view-header__top">
<slot name="headerTop" /> <slot name="headerTop" />
...@@ -25,6 +25,25 @@ import { Vue, Component, Watch, Prop } from 'vue-property-decorator'; ...@@ -25,6 +25,25 @@ import { Vue, Component, Watch, Prop } from 'vue-property-decorator';
@Component({}) @Component({})
export default class AppGridViewLayout extends Vue { export default class AppGridViewLayout extends Vue {
/**
* 视图默认使用
*
* @type {boolean}
* @memberof AppGridViewLayout
*/
@Prop({ default: true }) public viewDefaultUsage?: boolean;
/**
* 布局类名
*
* @memberof AppGridViewLayout
*/
get layoutClassName(){
return {'grid-view-layout':true,
'view-layout': true,
'view-default-usage': this.viewDefaultUsage ? true :false}
}
} }
</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 38px 0 38px; padding: 20px 80px 0 80px;
background-color: var(--ey-color-gray-250); background-color: var(--ey-color-gray-250);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -63,8 +63,36 @@ ...@@ -63,8 +63,36 @@
bottom: 0px; bottom: 0px;
.notice { .notice {
padding-top: 10px; padding-top: 40px;
color: var(--app-color-gray-200); color: var(--app-color-gray-200);
} }
} }
} }
.index-view-layout--top {
.index-view-content{
// 编辑视图默认使用
.edit-view-layout.view-default-usage{
// 为什么写在这边,因为只有上布局会有copyright,这里算高度算上
height: calc(100% - 130px);
display: flex;
flex-direction: column;
.view-content{
flex: 1;
overflow-y: auto;
}
}
// 表格视图默认使用
.grid-view-layout.view-default-usage{
// 为什么写在这边,因为只有上布局会有copyright,这里算高度算上
height: calc(100% - 130px);
display: flex;
flex-direction: column;
.view-content{
flex: 1;
overflow-y: auto;
}
}
}
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册