From 92921431668181fb6d3387368c751ccc40aba8cf Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期五, 28 十一月 2025 17:14:32 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev-dataBoard'
---
src/views/DataBoard/components/DataBoardDataInfoItem.vue | 64 ++++++++++++++++++++++++++++++++
1 files changed, 64 insertions(+), 0 deletions(-)
diff --git a/src/views/DataBoard/components/DataBoardDataInfoItem.vue b/src/views/DataBoard/components/DataBoardDataInfoItem.vue
new file mode 100644
index 0000000..9f04cb2
--- /dev/null
+++ b/src/views/DataBoard/components/DataBoardDataInfoItem.vue
@@ -0,0 +1,64 @@
+<template>
+ <div
+ class="data-board-data-info-item"
+ :style="{
+ backgroundImage: `url(${backgroundImage})`,
+ }"
+ >
+ <div class="data-board-data-info-item-label">{{ label }}</div>
+ <div class="data-board-data-info-item-value">
+ <el-statistic :value="_value" />
+ </div>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { useTransition } from '@vueuse/core';
+
+defineOptions({
+ name: 'DataBoardDataInfoItem',
+});
+
+type Props = {
+ backgroundImage: string;
+ label: string;
+};
+
+const props = withDefaults(defineProps<Props>(), {});
+
+const value = defineModel<number>('value');
+
+const _value = useTransition(value, {
+ duration: 500,
+});
+</script>
+
+<style lang="scss" scoped>
+@use '@/style/common.scss' as *;
+
+.data-board-data-info-item {
+ display: flex;
+ justify-content: center;
+ text-align: left;
+ background-repeat: no-repeat;
+ background-size: 100% 100%;
+ flex-direction: column;
+
+ .data-board-data-info-item-label {
+ margin-bottom: 4px;
+ margin-left: 86px;
+ font-size: 13px;
+ color: #ffffff;
+ }
+
+ .data-board-data-info-item-value {
+ margin-left: 86px;
+ font-size: 16px;
+ font-family: YouSheBiaoTiHei Regular;
+ background: linear-gradient(to bottom, #ffffff, #6fcdff);
+ -webkit-background-clip: text;
+ line-height: 19px;
+ -webkit-text-fill-color: transparent;
+ }
+}
+</style>
--
Gitblit v1.9.1