From f56e474c81bb25845b46cf99c85bd313dbfcd3b5 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期六, 31 一月 2026 19:26:25 +0800
Subject: [PATCH] 项目初始化+首页+公告详情页面
---
src/views/main/components/statusTag.vue | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/src/views/main/components/statusTag.vue b/src/views/main/components/statusTag.vue
new file mode 100644
index 0000000..1f086af
--- /dev/null
+++ b/src/views/main/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