From 447fad1797cc37d2a9e2d5129ce74af728fa8836 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期四, 27 六月 2024 18:23:05 +0800
Subject: [PATCH] 题目公共请求方法添加收藏获取

---
 src/components/dragQuestion/index.vue |   30 +++++++++++++++++++++++++-----
 1 files changed, 25 insertions(+), 5 deletions(-)

diff --git a/src/components/dragQuestion/index.vue b/src/components/dragQuestion/index.vue
index d1e4169..ddeca7d 100644
--- a/src/components/dragQuestion/index.vue
+++ b/src/components/dragQuestion/index.vue
@@ -1,9 +1,9 @@
 <template>
   <div class="drag-box" :style="{ borderColor: bcColor }">
     <div class="title-box">
-      <p class="text"><span class="hs1">鈼�</span>{{ titileText }}</p>
-      <span class="svg-btn t0">
-        <el-tooltip class="item" effect="dark" content="璇锋嫋鎷界瓟妗堝埌鎷彿閲屽惂" placement="top-start">
+      <p class="text" style="text-indent:2em !important"><span class="hs1">鈼�</span>{{ titileText }}</p>
+      <span class="svg-btn t0"  @mouseenter="mouseenterTitle" @mouseleave="mouseleaveTitle">
+        <p class="p-title" v-if="ishowTitle">璇锋嫋鎷界瓟妗堝埌鎷彿閲屽惂</p>
           <svg
           t="1719309984490"
           class="icon"
@@ -20,7 +20,6 @@
             p-id="6317"
           ></path>
         </svg>
-    </el-tooltip>
 
       </span>
     </div>
@@ -279,6 +278,7 @@
       spaceList: [],
       submitState: false,
       isLift: false,
+      ishowTitle:false
     };
   },
   mounted() {},
@@ -491,6 +491,14 @@
       }
       return flag;
     },
+    mouseenterTitle() {
+      this.ishowTitle = true
+      console.log(this.ishowTitle );
+    },
+    mouseleaveTitle() {
+      this.ishowTitle = false
+      console.log(this.ishowTitle );
+    }
   },
 };
 </script>
@@ -555,7 +563,9 @@
   width: 100%;
 }
 .svg-btn {
+  position: relative;
   margin-left: 5px;
+  max-height: 20px;
   cursor: pointer;
   display: flex;
   padding: 3px;
@@ -568,12 +578,22 @@
     background-color: #fff;
   }
 }
+.p-title {
+  text-indent: 0 !important;
+  position: absolute;
+  top: -33px;
+  background-color:#8fae34 ;
+  padding: 0 4px;
+  white-space: nowrap;
+  border-radius: 4px;
+  color: #fff;
+}
 .title-box {
   display: flex;
   margin-bottom: 20px;
   p {
     margin: 0;
-    text-indent: 2em !important;
+    text-indent: 2em ;
   }
 }
 /** 瑙f瀽 */

--
Gitblit v1.9.1