|
|
@@ -29,7 +29,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</a-layout-header>
|
|
|
- <a-layout>
|
|
|
+ <a-layout class="middleLayout">
|
|
|
<a-layout-sider class="m-layout-left" width="180" v-model:collapsed="collapsed" @collapse="collapse" collapsible>
|
|
|
<a-menu theme="dark" mode="inline" class="left-menu" v-model:selectedKeys="selectedKeys" v-model:openKeys="openKeys" @click="menuClick">
|
|
|
<a-sub-menu v-for="item in menuList" :key="item.code">
|
|
|
@@ -47,11 +47,20 @@
|
|
|
</a-sub-menu>
|
|
|
</a-menu>
|
|
|
</a-layout-sider>
|
|
|
- <a-layout :style="{ flex: 1 }">
|
|
|
- <a-layout-content :style="{ background: '#0E0E0F', height: '100%' }">
|
|
|
- <router-view />
|
|
|
- </a-layout-content>
|
|
|
- </a-layout>
|
|
|
+ <a-layout-content :style="{ background: '#0E0E0F', flex: 1 }">
|
|
|
+ <router-view />
|
|
|
+ </a-layout-content>
|
|
|
+ </a-layout>
|
|
|
+ <div class="sliderLayout">
|
|
|
+ <div class="shortLine"></div>
|
|
|
+ </div>
|
|
|
+ <a-layout class="bottomLayout">
|
|
|
+ <a-layout-sider class="m-layout-left" width="180">
|
|
|
+ <!-- 这里左边需要加上资金信息 capital-info -->
|
|
|
+ <capitalInfo></capitalInfo>
|
|
|
+ </a-layout-sider>
|
|
|
+ <a-layout-content :style="{ background: '#0E0E0F', flex: 1 }">
|
|
|
+ </a-layout-content>
|
|
|
</a-layout>
|
|
|
</a-layout>
|
|
|
</template>
|
|
|
@@ -60,6 +69,7 @@ import { UserOutlined } from '@ant-design/icons-vue';
|
|
|
import { defineComponent, ref, provide } from 'vue';
|
|
|
import APP from '@/services';
|
|
|
import Setting from '@/views/setting/index.vue';
|
|
|
+import capitalInfo from '@/components/capitalInfo/index.vue';
|
|
|
|
|
|
// 菜单栏
|
|
|
const handleMenu = () => {
|
|
|
@@ -158,6 +168,10 @@ export default defineComponent({
|
|
|
</script>
|
|
|
<style lang="less">
|
|
|
.layout {
|
|
|
+ .flex;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ flex-direction: column;
|
|
|
.m-layout-header {
|
|
|
width: 100%;
|
|
|
height: 40px;
|
|
|
@@ -189,9 +203,6 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .m-layout-left {
|
|
|
- background: @m-black0;
|
|
|
- }
|
|
|
.left-menu {
|
|
|
height: 100%;
|
|
|
.menu-item_title {
|
|
|
@@ -205,5 +216,41 @@ export default defineComponent({
|
|
|
background-color: @m-grey1;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
+ .m-layout-left {
|
|
|
+ background: @m-black0;
|
|
|
+ }
|
|
|
+ .middleLayout {
|
|
|
+ flex: 1;
|
|
|
+ width: 100%;
|
|
|
+ .inlineflex;
|
|
|
+ border-bottom: 1px solid @m-black2;
|
|
|
+ .m-layout-left {
|
|
|
+ position: relative;
|
|
|
+ }
|
|
|
+ .ant-layout-sider-trigger {
|
|
|
+ position: absolute;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .sliderLayout {
|
|
|
+ width: 100%;
|
|
|
+ height: 4px;
|
|
|
+ background: #242A2E;
|
|
|
+ border-top: 1px solid @m-grey5;
|
|
|
+ border-bottom: 1px solid @m-grey5;
|
|
|
+ position: relative;
|
|
|
+ .shortLine {
|
|
|
+ width: 30px;
|
|
|
+ height: 2px;
|
|
|
+ background: #4B5861;
|
|
|
+ border-radius: 1px;
|
|
|
+ .position(absolute, 50%, auto, auto, 50%);
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .bottomLayout {
|
|
|
+ width: 100%;
|
|
|
+ height: @bottomHeight;
|
|
|
+ .inlineflex;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|