chenzhou/src/pages/ThreeDimension.vue
DESKTOP-FUDKNA8\znjsz bb44001961 update
2024-03-14 17:06:53 +08:00

61 lines
1.1 KiB
Vue

<!-- 实时数据页面 -->
<script setup>
import HourChart from "../components/HourChart.vue";
import TeamChartDay from "../components/TeamChartDay.vue";
import TeamChartMonth from "../components/TeamChartMonth.vue";
import LatestWeekYield from '../components/LatestWeekYield.vue'
import ThreeD from './3D.vue'
const props = defineProps({
line: {
type: Number,
default: 1,
},
});
</script>
<template>
<div class="data-page">
<div style="position: absolute; top: 0; left: -279px; width: calc(100% + 279px); height: 100%;">
<ThreeD :line="line ?? '1'" />
</div>
<div class="data-list">
<HourChart />
<LatestWeekYield />
<!-- <TeamChartDay />
<TeamChartMonth /> -->
</div>
</div>
</template>
<style scoped>
.data-page {
flex: 1;
position: relative;
}
.data-list {
height: 100%;
width: 480px;
position: absolute;
top: 24px;
right: 32px;
gap: 24px;
display: flex;
flex-direction: column;
}
:fullscreen .data-list {
width: 35%;
gap: 12px;
padding: 32px 0;
justify-content: space-around;
}
:fullscreen .data-list>div {
flex: 1;
}
</style>