151 lines
3.3 KiB
Vue
151 lines
3.3 KiB
Vue
<template>
|
|
<div class="my-screen-page">
|
|
<header class="my-screen-top">顶部区域</header>
|
|
<section class="my-screen-bottom">
|
|
<div class="my-screen-left">
|
|
<section class="my-screen-panel my-screen-left-top">左上区域</section>
|
|
<section class="my-screen-left-middle">
|
|
<div class="my-screen-panel">左中左区域</div>
|
|
<div class="my-screen-panel">左中右区域</div>
|
|
</section>
|
|
<section class="my-screen-left-bottom">
|
|
<div class="my-screen-panel">左下左区域</div>
|
|
<div class="my-screen-panel">左下右区域</div>
|
|
</section>
|
|
</div>
|
|
<aside class="my-screen-right">
|
|
<section class="my-screen-panel my-screen-right-top">右上区域</section>
|
|
<section class="my-screen-panel my-screen-right-middle">右中区域</section>
|
|
<section class="my-screen-panel my-screen-right-bottom">右下区域</section>
|
|
</aside>
|
|
</section>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup name="BizMyScreen"></script>
|
|
|
|
<style lang="less" scoped>
|
|
@dark-bg: #141414;
|
|
|
|
.my-screen-page {
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
padding: 4px;
|
|
box-sizing: border-box;
|
|
overflow: hidden;
|
|
background: transparent;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.my-screen-top,
|
|
.my-screen-panel {
|
|
min-height: 0;
|
|
border-radius: 10px;
|
|
border: 1px solid rgb(226 232 240);
|
|
background: rgb(248 250 252);
|
|
box-shadow: 0 1px 3px rgb(15 23 42 / 0.06);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: rgb(71 85 105);
|
|
font-size: 16px;
|
|
}
|
|
|
|
.my-screen-top {
|
|
flex: 0 0 10%;
|
|
}
|
|
|
|
.my-screen-bottom {
|
|
flex: 1 1 90%;
|
|
min-height: 0;
|
|
display: flex;
|
|
gap: 12px;
|
|
background: transparent;
|
|
}
|
|
|
|
.my-screen-left {
|
|
flex: 0 0 70%;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.my-screen-right {
|
|
flex: 0 0 calc(30% - 12px);
|
|
min-width: 0;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.my-screen-left-top {
|
|
flex: 0 0 10%;
|
|
}
|
|
|
|
.my-screen-left-middle,
|
|
.my-screen-left-bottom {
|
|
flex: 1 1 0;
|
|
min-height: 0;
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
.my-screen-left-middle .my-screen-panel,
|
|
.my-screen-left-bottom .my-screen-panel {
|
|
flex: 1 1 0;
|
|
}
|
|
|
|
.my-screen-right-top,
|
|
.my-screen-right-middle,
|
|
.my-screen-right-bottom {
|
|
flex: 1 1 0;
|
|
}
|
|
|
|
html[data-theme='dark'] .my-screen-page,
|
|
html[data-theme='dark'] .my-screen-bottom {
|
|
background: @dark-bg !important;
|
|
}
|
|
|
|
html[data-theme='dark'] .my-screen-top,
|
|
html[data-theme='dark'] .my-screen-panel {
|
|
border-color: rgb(51 65 85);
|
|
background: @dark-bg !important;
|
|
color: rgb(203 213 225);
|
|
box-shadow: none;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.my-screen-page {
|
|
height: auto;
|
|
min-height: 100%;
|
|
}
|
|
|
|
.my-screen-top {
|
|
flex-basis: 72px;
|
|
}
|
|
|
|
.my-screen-bottom {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.my-screen-left,
|
|
.my-screen-right {
|
|
flex: 1 1 auto;
|
|
width: 100%;
|
|
min-height: 360px;
|
|
}
|
|
|
|
.my-screen-left-middle,
|
|
.my-screen-left-bottom {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
</style>
|