From 946876e4c34cc49655928f3a1fc438a4e3d3207a Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Thu, 27 Mar 2025 13:37:07 +0800
Subject: [PATCH] feat: 标题调整
---
src/components/CommonTitle.vue | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/components/CommonTitle.vue b/src/components/CommonTitle.vue
index 7ebdbc3..9606796 100644
--- a/src/components/CommonTitle.vue
+++ b/src/components/CommonTitle.vue
@@ -3,7 +3,7 @@
<div class="left">
{{ title }}
</div>
- <div class="right">详情 ></div>
+ <div class="right" v-if="show" @click="attrs.onDetails()">详情 ></div>
</div>
</template>
<script setup>
@@ -13,6 +13,9 @@
default: '机巢概况',
},
});
+l
+const attrs = useAttrs();
+const show = ref(attrs.onDetails);
</script>
<style scoped lang="scss">
.overview-title {
@@ -24,7 +27,6 @@
background-repeat: no-repeat;
display: flex;
justify-content: space-between;
- margin-bottom: 18px;
.left {
position: absolute;
@@ -55,6 +57,7 @@
text-transform: none;
bottom: hToV(16);
right: 11px;
+ cursor: pointer;
}
}
</style>
--
Gitblit v1.9.3