Files
maintenance_system/src/views/ueScreen/index.vue

61 lines
986 B
Vue
Raw Normal View History

2025-11-14 16:34:39 +08:00
<template>
2025-11-14 16:46:34 +08:00
<div class="ueScreen">
<Header />
2025-11-15 10:08:05 +08:00
<div class="content_box">
<LeftPage class="left" />
<!-- <div>ue</div> -->
<RightPage class="right" />
</div>
2025-11-14 19:01:12 +08:00
</div>
2025-11-14 16:34:39 +08:00
</template>
2025-11-14 16:46:34 +08:00
<script setup lang="ts">
import Header from './components/header.vue';
import LeftPage from './components/leftPage.vue';
2025-11-15 10:08:05 +08:00
import RightPage from './components/rightPage.vue';
2025-11-14 16:46:34 +08:00
</script>
2025-11-14 16:34:39 +08:00
2025-11-14 16:38:51 +08:00
<style scoped lang="scss">
2025-11-14 19:01:12 +08:00
$vm_base: 1920;
$vh_base: 1080;
2025-11-15 10:08:05 +08:00
2025-11-14 19:01:12 +08:00
// 计算vw
@function vw($px) {
@return calc(($px / $vm_base) * 100vw);
}
// 计算vh
@function vh($px) {
@return calc(($px / $vh_base) * 100vh);
}
2025-11-14 16:34:39 +08:00
.ueScreen {
width: 100vw;
height: 100vh;
background-color: rgba(4, 7, 17, 0.8);
color: #fff;
}
2025-11-14 19:01:12 +08:00
2025-11-15 10:08:05 +08:00
.content_box {
position: relative;
width: 100vw;
height: calc(100vh - 8vh);
}
.left {
position: absolute;
top: 0;
left: vw(20);
width: 25vw;
height: 100%;
}
2025-11-14 19:01:12 +08:00
.right {
position: absolute;
2025-11-15 10:08:05 +08:00
top: 0;
2025-11-14 19:01:12 +08:00
right: vw(20);
width: 25vw;
2025-11-15 10:08:05 +08:00
height: 100%;
2025-11-14 19:01:12 +08:00
}
2025-11-14 16:34:39 +08:00
</style>