|
|
@@ -1,16 +1,23 @@
|
|
|
<template>
|
|
|
- <section class="layout-bottom">
|
|
|
- <CapitalInfo class="capital-info-container"></CapitalInfo>
|
|
|
- <main>
|
|
|
- <div class="conditionIcon icon iconfont icon-shouqi"></div>
|
|
|
- <firstMenu :list="list" :value="'value'" @selectMenu="selectMenu" />
|
|
|
- <quoteTable :columns="columns" :dataSource="data" />
|
|
|
- <thirdMenu></thirdMenu>
|
|
|
- </main>
|
|
|
- </section>
|
|
|
+ <section class="layout-bottom">
|
|
|
+ <CapitalInfo class="capital-info-container"></CapitalInfo>
|
|
|
+ <main>
|
|
|
+ <firstMenu :list="list"
|
|
|
+ :value="'value'"
|
|
|
+ @selectMenu="selectMenu">
|
|
|
+ <div class="conditionIcon icon iconfont icon-shouqi"
|
|
|
+ @click="openOrCloseBottom"></div>
|
|
|
+ </firstMenu>
|
|
|
+ <template v-if="isShowBottom">
|
|
|
+ <quoteTable :columns="columns"
|
|
|
+ :dataSource="data" />
|
|
|
+ <thirdMenu></thirdMenu>
|
|
|
+ </template>
|
|
|
+ </main>
|
|
|
+ </section>
|
|
|
</template>
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent } from 'vue';
|
|
|
+import { defineComponent, ref } from 'vue';
|
|
|
import CapitalInfo from '@/common/components/capitalInfo/index.vue';
|
|
|
import firstMenu from '@/common/components/firstMenu/index.vue';
|
|
|
import thirdMenu from '@/common/components/thirdMenu/index.vue';
|
|
|
@@ -62,6 +69,14 @@ function handleMenu() {
|
|
|
function selectMenu(item: any) {}
|
|
|
return { list, selectMenu };
|
|
|
}
|
|
|
+// 控制底部打开与关闭
|
|
|
+function handleBottom() {
|
|
|
+ const isShowBottom = ref<boolean>(true);
|
|
|
+ function openOrCloseBottom() {
|
|
|
+ isShowBottom.value = !isShowBottom.value;
|
|
|
+ }
|
|
|
+ return { isShowBottom, openOrCloseBottom };
|
|
|
+}
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'layout-top',
|
|
|
@@ -73,11 +88,14 @@ export default defineComponent({
|
|
|
},
|
|
|
setup() {
|
|
|
const { list, selectMenu } = handleMenu();
|
|
|
+ const { isShowBottom, openOrCloseBottom } = handleBottom();
|
|
|
return {
|
|
|
columns,
|
|
|
data,
|
|
|
list,
|
|
|
selectMenu,
|
|
|
+ isShowBottom,
|
|
|
+ openOrCloseBottom,
|
|
|
};
|
|
|
},
|
|
|
});
|
|
|
@@ -102,11 +120,10 @@ export default defineComponent({
|
|
|
font-size: 16px;
|
|
|
color: @m-grey1;
|
|
|
width: 16px;
|
|
|
- height: 16px;
|
|
|
- line-height: 16px;
|
|
|
cursor: pointer;
|
|
|
- .position(absolute, 8px, 14px, auto, auto);
|
|
|
- z-index: 2;
|
|
|
+ height: 40px;
|
|
|
+ line-height: 40px;
|
|
|
+ margin-right: 10px;
|
|
|
&:hover {
|
|
|
color: rgba(@m-grey1, 0.8);
|
|
|
}
|