<template>
|
<div class="the-box-card" :class="currentThemeMode === 'dark' ? 'box-card-dark' : ''">
|
<a-card class="card-box">
|
<div class="card-title">
|
<div class="title-left">
|
<icon-home />
|
<div style="margin-left: 10px">A小区</div>
|
</div>
|
<div class="card-more">详情 ></div>
|
</div>
|
<div class="card-content">
|
<div :span="8" class="card-box-col">
|
<div class="card-box-title">
|
<div>实用人口</div>
|
<div>></div>
|
</div>
|
<div>2323 人</div>
|
</div>
|
<div :span="8" class="card-box-col">
|
<div class="card-box-title">
|
<div>实用人口</div>
|
<div>></div>
|
</div>
|
<div>2323 人</div>
|
</div>
|
<div :span="8" class="card-box-col">
|
<div class="card-box-title">
|
<div>实用人口</div>
|
<div>></div>
|
</div>
|
<div>2323 人</div>
|
</div>
|
</div>
|
<div class="card-content"></div>
|
</a-card>
|
</div>
|
</template>
|
<script lang="ts" setup name="TheIconCard">
|
import { useTheme } from "@/hooks/useTheme";
|
import { Svg } from "@easyfe/admin-component";
|
|
const { themeModeOptions, currentThemeMode, handleThemeChange } = useTheme();
|
const props = withDefaults(
|
defineProps<{
|
icon?: string;
|
title?: string;
|
unit?: string;
|
metering?: number;
|
}>(),
|
{
|
icon: "",
|
title: "",
|
unit: "",
|
metering: 0
|
}
|
);
|
// 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>
|
.box-card-dark {
|
.card-box {
|
// display: flex;
|
}
|
}
|
.the-box-card {
|
border-radius: 5px;
|
box-sizing: border-box;
|
margin-right: 10px;
|
min-width: 188px;
|
width: 382.5px;
|
max-height: 257px;
|
border-radius: 5px;
|
opacity: 1;
|
.card-title {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
.title-left {
|
display: flex;
|
color: rgb(var(--link-6));
|
font-size: 20px;
|
}
|
.card-more {
|
color: var(--color-text-3);
|
font-size: 14px;
|
}
|
}
|
.card-content {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
margin-top: 13px;
|
.card-box-col {
|
background-color: var(--color-bg-3);
|
// margin-right: 10px;
|
width: 108px;
|
height: 70px;
|
border-radius: 5px;
|
padding: 10px;
|
line-height: 24px;
|
.card-box-title {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
color: var(--color-text-3);
|
font-size: 14px;
|
}
|
}
|
}
|
|
.card-box {
|
width: 100%;
|
height: 100%;
|
}
|
:deep(.arco-card-body) {
|
// display: flex;
|
// align-items: center;
|
// justify-content: center;
|
}
|
.card-content {
|
// margin-left: 20px;
|
// line-height: 22px;
|
// color: var(--color-text-1);
|
// font-size: 12px;
|
}
|
}
|
</style>
|