forked from SmartBench/CMVR-IOT-UI
- 调整了StatCards.vue中的字母间距,以提高可读性。 - 更新了RightBottomCharts.vue和RightTopCharts.vue中的图表样式,通过新的调色板和背景设置增强了视觉吸引力。 - 修改了图表中的工具提示和轴样式,以提高对比度和可见性。 - 将流程编辑器中的背景颜色更改为使用CSS变量,以保持一致性。 - 引入了新的网络主题风格,包括渐变和阴影,以提供沉浸式的暗色模式体验。 - 为各种组件添加了深色覆盖,以确保与新主题的兼容性。
94 lines
1.7 KiB
Vue
94 lines
1.7 KiB
Vue
<template>
|
|
<section class="app-main">
|
|
<router-view v-slot="{ Component, route }">
|
|
<transition name="fade-transform" mode="out-in">
|
|
<keep-alive :include="tagsViewStore.cachedViews">
|
|
<component v-if="!route.meta.link" :is="Component" :key="route.path"/>
|
|
</keep-alive>
|
|
</transition>
|
|
</router-view>
|
|
<iframe-toggle />
|
|
<copyright />
|
|
</section>
|
|
</template>
|
|
|
|
<script setup>
|
|
import copyright from "./Copyright/index"
|
|
import iframeToggle from "./IframeToggle/index"
|
|
import useTagsViewStore from '@/store/modules/tagsView'
|
|
|
|
const route = useRoute()
|
|
const tagsViewStore = useTagsViewStore()
|
|
|
|
onMounted(() => {
|
|
addIframe()
|
|
})
|
|
|
|
watchEffect(() => {
|
|
addIframe()
|
|
})
|
|
|
|
function addIframe() {
|
|
if (route.meta.link) {
|
|
useTagsViewStore().addIframeView(route)
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
@use "@/assets/styles/variables.module" as *;
|
|
.app-main {
|
|
height: calc(100% - 104px);
|
|
padding: 24px;
|
|
width: 100%;
|
|
position: relative;
|
|
overflow: hidden;
|
|
//background-color: rgba(242, 243, 245);
|
|
background-color:var(--main-fill-bg) ;
|
|
display: flex;
|
|
}
|
|
|
|
.fixed-header + .app-main {
|
|
padding-top: 64px;
|
|
}
|
|
|
|
.hasTagsView {
|
|
.app-main {
|
|
height: calc(100% - 104px);
|
|
}
|
|
|
|
.fixed-header + .app-main {
|
|
padding-top: 104px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.app-main {
|
|
padding: 16px;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
<style lang="scss">
|
|
// fix css style bug in open el-dialog
|
|
.el-popup-parent--hidden {
|
|
.fixed-header {
|
|
padding-right: 6px;
|
|
}
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background-color: #f1f1f1;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background-color: #c0c0c0;
|
|
border-radius: 3px;
|
|
}
|
|
</style>
|