2025-03-31 18:24:37 +08:00
|
|
|
<template>
|
|
|
|
<div class="deviceStatistics card">
|
|
|
|
<div class="card-head">
|
|
|
|
<div class="title">内容数据</div>
|
2025-04-30 10:50:03 +08:00
|
|
|
<SectionDate @change="api" />
|
2025-03-31 18:24:37 +08:00
|
|
|
</div>
|
|
|
|
<slot name="chart"></slot>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script setup>
|
2025-04-30 10:50:03 +08:00
|
|
|
import SectionDate from "@/components/sectionDate.vue";
|
|
|
|
|
|
|
|
const props = defineProps({
|
2025-04-07 18:35:54 +08:00
|
|
|
api: {
|
|
|
|
type: Function,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
});
|
2025-03-31 18:24:37 +08:00
|
|
|
</script>
|
|
|
|
<style scoped lang="less">
|
|
|
|
.card {
|
2025-04-01 18:07:18 +08:00
|
|
|
height: 380px;
|
2025-03-31 18:24:37 +08:00
|
|
|
height: 100%;
|
|
|
|
background: #ffffff;
|
|
|
|
padding: 16px 10px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2025-04-01 13:52:57 +08:00
|
|
|
border-radius: 5px;
|
|
|
|
box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.12);
|
2025-04-01 18:07:18 +08:00
|
|
|
margin-bottom: 20px;
|
2025-03-31 18:24:37 +08:00
|
|
|
.card-head {
|
|
|
|
color: #061451;
|
2025-04-08 18:31:37 +08:00
|
|
|
font-size: 18px;
|
2025-03-31 18:24:37 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
2025-04-01 13:52:57 +08:00
|
|
|
transform: translateX(-10px);
|
2025-03-31 18:24:37 +08:00
|
|
|
.title {
|
|
|
|
&::before {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 10px;
|
|
|
|
content: "";
|
|
|
|
width: 2px;
|
|
|
|
height: 14px;
|
|
|
|
border-radius: 20px;
|
|
|
|
background: #061451;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|