提交 c6ff7d60 编写于 作者: Shine-zwj's avatar Shine-zwj

update:更新

上级 7fbf6a17
...@@ -141,6 +141,7 @@ import ExtendActionTimeline from './components/extend-action-timeline/extend-act ...@@ -141,6 +141,7 @@ import ExtendActionTimeline from './components/extend-action-timeline/extend-act
import AppIndexViewLayoutLeft from './layout/index-view-layout-left/index-view-layout-left.vue'; import AppIndexViewLayoutLeft from './layout/index-view-layout-left/index-view-layout-left.vue';
import AppIndexViewLayoutTop from './layout/index-view-layout-top/index-view-layout-top.vue'; import AppIndexViewLayoutTop from './layout/index-view-layout-top/index-view-layout-top.vue';
import AppGridViewLayout from './layout/grid-view-layout/grid-view-layout.vue'; import AppGridViewLayout from './layout/grid-view-layout/grid-view-layout.vue';
import AppEditViewLayout from './layout/edit-view-layout/edit-view-layout.vue';
// 全局挂载UI实体服务注册中心 // 全局挂载UI实体服务注册中心
window['uiServiceRegister'] = uiServiceRegister; window['uiServiceRegister'] = uiServiceRegister;
// 全局挂载实体权限服务注册中心 // 全局挂载实体权限服务注册中心
...@@ -167,6 +168,7 @@ export const AppComponents = { ...@@ -167,6 +168,7 @@ export const AppComponents = {
v.prototype.$verify = Verify; v.prototype.$verify = Verify;
v.prototype.$viewTool = ViewTool; v.prototype.$viewTool = ViewTool;
v.prototype.$uiActionTool = UIActionTool; v.prototype.$uiActionTool = UIActionTool;
v.component('app-edit-view-layout',AppEditViewLayout);
v.component('app-index-view-layout-top',AppIndexViewLayoutTop); v.component('app-index-view-layout-top',AppIndexViewLayoutTop);
v.component('app-index-view-layout-left',AppIndexViewLayoutLeft); v.component('app-index-view-layout-left',AppIndexViewLayoutLeft);
v.component('app-grid-view-layout',AppGridViewLayout); v.component('app-grid-view-layout',AppGridViewLayout);
......
.edit-view-layout {
}
\ No newline at end of file
<template>
<layout class="edit-view-layout view-layout view-container">
<header class="view-header">
<div class="view-header__left">
<slot name="headerLeft" />
</div>
<div class="view-header__center">
<slot name="headerCenter" />
</div>
<div class="view-header__right">
<slot name="headerRight" />
</div>
</header>
<content class="view-content content-container">
<slot />
</content>
<footer class="view-footer">
<slot name="footer" />
</footer>
</layout>
</template>
<script lang="ts">
import { Vue, Component, Watch, Prop } from 'vue-property-decorator';
@Component({})
export default class AppGridViewLayout extends Vue {
}
</script>
<style lang="scss">
@import "./edit-view-layout.scss";
</style>
.index-view-layout--left { .index-view-layout--left {
position: relative; position: relative;
.index-view-layout-sider { .index-view-sider {
flex: none !important; flex: none !important;
max-width: none !important; max-width: none !important;
transition: none 0s ease 0s; transition: none 0s ease 0s;
background-color: var(--app-color-white); background-color: var(--app-color-white);
.sider__top { .index-view-sider__top {
font-size: 21px; font-size: 21px;
font-weight: 700; font-weight: 700;
height: 64px; height: 64px;
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
} }
} }
.index-view-layout-split { .index-view-split {
position: absolute; position: absolute;
left: 195px; left: 195px;
width: 5px; width: 5px;
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
cursor: w-resize; cursor: w-resize;
} }
.index-view-layout-header { .index-view-header {
height: 64px; height: 64px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
...@@ -39,20 +39,20 @@ ...@@ -39,20 +39,20 @@
background-color: var(--app-color-white); background-color: var(--app-color-white);
color: var(--app-color-black); color: var(--app-color-black);
.header__left { .index-view-header__left {
display: flex; display: flex;
font-size: 21px; font-size: 21px;
margin-left: 8px; margin-left: 8px;
align-items: center; align-items: center;
} }
.header__right { .index-view-header__right {
display: flex; display: flex;
align-items: center; align-items: center;
} }
} }
.index-view-layout-content { .index-view-content {
height: calc(100% - 64px); height: calc(100% - 64px);
background-color: var(--app-color-gray-400); background-color: var(--app-color-gray-400);
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
margin: 0 12px; margin: 0 12px;
} }
&.index-view-layout-content--tab { &.index-view-content--tab {
>.view-container { >.view-container {
height: calc(100% - 65px); height: calc(100% - 65px);
......
<template> <template>
<layout class="index-view-layout index-view-layout--left" id="movebox"> <layout class="index-view-layout index-view-layout--left" id="movebox">
<sider class="index-view-layout-sider" :width="collapseChange ? 64 : 200" hide-trigger id="left_move"> <sider class="index-view-sider" :width="collapseChange ? 64 : 200" hide-trigger id="left_move">
<div class="sider__top"> <div class="index-view-sider__top">
<slot name="siderTop" /> <slot name="siderTop" />
</div> </div>
<slot name="siderContent" /> <slot name="siderContent" />
</sider> </sider>
<div v-show="!collapseChange" class="index-view-layout-split" id="move_axis"></div> <div v-show="!collapseChange" class="index-view-split" id="move_axis"></div>
<layout id="right_move"> <layout id="right_move">
<header class="index-view-layout-header"> <header class="index-view-header">
<div class="header__left"> <div class="index-view-header__left">
<slot name="headerLeft" /> <slot name="headerLeft" />
</div> </div>
<div class="header__center"> <div class="index-view-header__center">
<slot name="headerCenter" /> <slot name="headerCenter" />
</div> </div>
<div class="header__right"> <div class="index-view-header__right">
<slot name="headerRight" /> <slot name="headerRight" />
</div> </div>
</header> </header>
<content :class="{ 'index-view-layout-content': true, 'index-view-layout-content--tab': Object.is(navModel,'tab') ? true : false, 'index-view-layout-content--route': Object.is(navModel,'route') ? true : false }"> <content :class="{ 'index-view-content': true, 'index-view-content--tab': Object.is(navModel,'tab') ? true : false, 'index-view-content--route': Object.is(navModel,'route') ? true : false }">
<slot name="tabPageExp" /> <slot name="tabPageExp" />
<slot name="navPos" /> <slot name="navPos" />
</content> </content>
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</layout> </layout>
</template> </template>
<script lang="ts"> <script lang="ts">
import { Vue, Component, Watch, Prop } from 'vue-property-decorator'; import { Vue, Component, Prop } from 'vue-property-decorator';
@Component({}) @Component({})
export default class AppIndexViewLayoutLeft extends Vue { export default class AppIndexViewLayoutLeft extends Vue {
......
.index-view-layout--top { .index-view-layout--top {
.index-view-layout-header { .index-view-header {
height: 64px; height: 64px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
background-color: var(--app-color-black); background-color: var(--app-color-black);
color: var(--app-color-white); color: var(--app-color-white);
.header__left { .index-view-header__left {
font-size: 21px; font-size: 21px;
font-weight: 700; font-weight: 700;
margin-left: 50px; margin-left: 50px;
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
margin-right: 6px; margin-right: 6px;
} }
} }
.header__right { .index-view-header__right {
display: flex; display: flex;
align-items: center; align-items: center;
} }
} }
.index-view-layout-content { .index-view-content {
height: calc(100% - 64px); height: calc(100% - 64px);
overflow: auto; overflow: auto;
padding: 20px 38px 0 38px; padding: 20px 38px 0 38px;
......
<template> <template>
<layout class="index-view-layout index-view-layout--top"> <layout class="index-view-layout index-view-layout--top">
<header class="index-view-layout-header"> <header class="index-view-header">
<div class="header__left"> <div class="index-view-header__left">
<slot name="headerLeft" /> <slot name="headerLeft" />
</div> </div>
<div class="header__center"> <div class="index-view-header__center">
<slot name="headerCenter" /> <slot name="headerCenter" />
</div> </div>
<div class="header__right"> <div class="index-view-header__right">
<slot name="headerRight" /> <slot name="headerRight" />
</div> </div>
</header> </header>
<content class="index-view-layout-content"> <content class="index-view-content">
<slot name="navPos" /> <slot name="navPos" />
</content> </content>
<footer class="layout-footer-center"> <footer class="index-view-footer">
<slot name="footer"></slot> <slot name="footer"></slot>
</footer> </footer>
</layout> </layout>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册