From e1b028d486713eaf55aaf35fbf334aa568059c0d Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 14 四月 2026 15:46:54 +0800
Subject: [PATCH] 项目复制
---
src/views/components/statusTag.vue | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/src/views/components/statusTag.vue b/src/views/components/statusTag.vue
new file mode 100644
index 0000000..1f086af
--- /dev/null
+++ b/src/views/components/statusTag.vue
@@ -0,0 +1,31 @@
+<template>
+ <template v-if="$property[propertyKey]">
+ <el-tag
+ :round="round"
+ :style="{ borderColor: $property[propertyKey].borderColor[statusKey]}"
+ :color="$property[propertyKey].bgColor[statusKey]"
+ >
+ <el-text :style="{ color: $property[propertyKey].textColor[statusKey] }">
+ {{ $property[propertyKey].text[statusKey] }}
+ </el-text>
+ </el-tag>
+ </template>
+ <el-text v-else>
+ {{ statusKey }}
+ </el-text>
+</template>
+<script>
+export default {
+ data() {
+ return {}
+ },
+ props: {
+ statusKey: String,
+ propertyKey: String,
+ round: {
+ type: Boolean,
+ default: true
+ }
+ },
+}
+</script>
\ No newline at end of file
--
Gitblit v1.8.0