zhangxiao
2024-08-21 406a398a94d54b854472063f219ae87e8fcf4a98
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<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>