From 5e2aafeede13d337380f736567caf74f49713be7 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Fri, 09 Aug 2024 14:38:32 +0800
Subject: [PATCH] 代码优化
---
src/views/place/components/boxTitle.vue | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/views/place/components/boxTitle.vue b/src/views/place/components/boxTitle.vue
index 507271a..2995eb8 100644
--- a/src/views/place/components/boxTitle.vue
+++ b/src/views/place/components/boxTitle.vue
@@ -10,7 +10,7 @@
<div class="titleContent">
<!-- <div class="title1" data-color="red"></div> -->
- <div :class="'title title' + classVal">
+ <div :class="`title title${classVal} ${classStyle}`">
{{ title }}</div>
</div>
</template>
@@ -26,7 +26,12 @@
classVal: {
type: Number,
- }
+ },
+
+ classStyle: {
+ type: String,
+ default: ''
+ },
}
}
</script>
@@ -50,6 +55,10 @@
z-index: 0;
}
+.echarts-title {
+ margin: 0 !important;
+}
+
.title1 {
padding-left: 15px;
--
Gitblit v1.9.3