From 17a81d641608545682e3f79f7c6090cac48fe81a Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 15 Sep 2025 18:10:01 +0800
Subject: [PATCH] feat:去除高亮
---
src/views/space/components/leftContainer.vue | 90 +++++++++++++++++++++++++++++++++++---------
1 files changed, 71 insertions(+), 19 deletions(-)
diff --git a/src/views/space/components/leftContainer.vue b/src/views/space/components/leftContainer.vue
index 52e9e19..40df9bb 100644
--- a/src/views/space/components/leftContainer.vue
+++ b/src/views/space/components/leftContainer.vue
@@ -2,11 +2,11 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2023-03-10 15:27:59
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-11-18 16:10:10
+ * @LastEditTime: 2025-01-04 20:25:11
* @FilePath: \bigScreen\src\views\space\components\leftContainer.vue
- * @Description:
- *
- * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
+ * @Description:
+ *
+ * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
-->
<script setup>
import EventBus from 'utils/bus'
@@ -16,6 +16,7 @@
const resData = reactive({
data: []
})
+
const curSelect = ref('')
// 获取下拉字典
@@ -36,18 +37,22 @@
}
const tabClick = (item) => {
- if (curSelect.value) EventBus.emit('restHandleDelChange', `3-${curSelect.value}`)
+ EventBus.emit('destroyPop', 'destroyPop')
+ if (curSelect.value) {
+ EventBus.emit('restHandleDelChange', `3-${curSelect.value}`)
+ }
curSelect.value = item.value
+
EventBus.emit('restHandleCheckChange', `3-${item.value}`)
+
EventBus.emit('spaceTabChange', item.value)
- EventBus.emit('flyToyqfw', 'flyToyqfw')
+ // EventBus.emit('flyToyqfw', 'flyToyqfw')
}
const showOn = computed(() => (item) => {
if (curSelect.value == item.value) {
return true
}
-
return false
})
@@ -55,16 +60,22 @@
onUnmounted(() => {
if (curSelect.value) EventBus.emit('restHandleDelChange', `3-${curSelect.value}`)
+ EventBus.emit('restHandleDelChange', `3-3-1`)
+ EventBus.emit('restHandleDelChange', `3-3-2`)
+ EventBus.emit('restHandleDelChange', `3-3-3`)
+ EventBus.emit('restHandleDelChange', `3-3-4`)
})
</script>
<template>
- <div class="left-container cur-container">
- <div class="tablist h100">
- <div class="cursor-p" :class="{ on: showOn(item) }" v-for="item, index in resData.data" :key="index"
- @click="tabClick(item)">
- <div class="label-box">
- {{ item.label }}
+ <div>
+ <div class="left-container cur-container">
+ <div class="tablist h100">
+ <div class="cursor-p" :class="{ on: showOn(item) }" v-for="item, index in resData.data" :key="index"
+ @click="tabClick(item)">
+ <div class="label-box">
+ {{ item.label }}
+ </div>
</div>
</div>
</div>
@@ -73,7 +84,7 @@
<style lang="scss" scoped>
.left-container {
- width: 64px;
+ width: auto;
}
.cur-container {
@@ -87,15 +98,16 @@
display: flex;
align-items: center;
justify-content: center;
- margin-top: 16px;
- padding: 10px;
+ margin-top: 10px;
+ padding: 8px;
width: 64px;
- height: 64px;
+ height: 48px;
border-radius: 50%;
box-shadow: inset 0 0 40px #409eff;
color: #fff;
box-sizing: content-box;
+ font-size: 12px;
&.on {
position: relative;
@@ -104,10 +116,50 @@
}
.label-box {
- line-height: 24px;
+ padding: 8px;
+ line-height: 20px;
text-align: center;
}
}
}
}
-</style>
\ No newline at end of file
+
+.cur-container-title {
+ background: transparent;
+ pointer-events: none;
+ margin-left: 120px;
+ margin-top: 120px;
+
+ .tablist {
+ pointer-events: all;
+
+ &>div {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-top: 10px;
+ padding: 8px;
+ width: 64px;
+ height: 48px;
+
+ color: #fff;
+ border-radius: 50%;
+ box-shadow: inset 0 0 40px #409eff;
+ box-sizing: content-box;
+ font-size: 12px;
+
+ &.on {
+ position: relative;
+ // color: #75b1ff;
+ box-shadow: inset 0 0 100px #2a8ef1;
+ }
+
+ .label-box {
+ padding: 8px;
+ line-height: 16px;
+ text-align: center;
+ }
+ }
+ }
+}
+</style>
--
Gitblit v1.9.3