From a7e6761ba0cfccdf33ed552eb2d3b783c8e4ab4a Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 16 Apr 2025 20:49:12 +0800
Subject: [PATCH] feat:事件弹窗显示调整
---
src/components/CommonTitle.vue | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/src/components/CommonTitle.vue b/src/components/CommonTitle.vue
index 094c04d..9066cc0 100644
--- a/src/components/CommonTitle.vue
+++ b/src/components/CommonTitle.vue
@@ -3,14 +3,21 @@
<div class="left">
{{ title }}
</div>
- <div class="right" v-if="show" @click="attrs.onDetails()">详情 ></div>
+ <div class="right" v-if="show && text!=='返回'" @click="attrs.onDetails()">{{ text }} ></div>
+ <div v-if="title=='机巢概况' && text=='返回'" class="do-return" @click="attrs.onDetails()">
+ <img src="@/assets/images/return.png" alt="" />
+ </div>
</div>
</template>
<script setup>
const props = defineProps({
title: {
type: String,
- default: '机巢概况',
+ default: '标题',
+ },
+ text: {
+ type: String,
+ default: '详情',
},
});
const attrs = useAttrs();
@@ -58,5 +65,15 @@
right: 11px;
cursor: pointer;
}
+ .do-return {
+ position: absolute;
+ top: 3px;
+ right: -50px;
+ cursor: pointer;
+ img {
+ width: 60px;
+ height: 33px;
+ }
+ }
}
</style>
--
Gitblit v1.9.3