<template>
|
<div class="icon-card"></div>
|
</template>
|
<script lang="ts" setup name="TheChartCard">
|
const props = withDefaults(
|
defineProps<{
|
chartConfig?: ChartType;
|
title?: string;
|
}>(),
|
{
|
chartConfig: undefined,
|
title: ""
|
}
|
);
|
const dateType = ref("hour");
|
|
const emits = defineEmits<{
|
(e: "init", value: echarts.ECharts): void;
|
}>();
|
|
function initChart(v: any) {
|
emits("init", v);
|
}
|
</script>
|
<style lang="scss" scoped>
|
.icon-card {
|
background-color: $bg2;
|
width: 100%;
|
padding: 24px;
|
margin-top: 20px;
|
.top {
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
padding-bottom: 20px;
|
.left {
|
font-size: 18px;
|
font-weight: 700;
|
position: relative;
|
padding-left: 18px;
|
&::before {
|
position: absolute;
|
top: 50%;
|
left: 0;
|
width: 8px;
|
height: 8px;
|
background-color: #315efb;
|
border: 1px solid #b4c0da;
|
transform: translateY(-50%);
|
content: " ";
|
}
|
}
|
}
|
}
|
</style>
|