From 6565078d7af60fe9496a43a7d3d9bf00f92f0531 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期四, 11 七月 2024 17:38:37 +0800
Subject: [PATCH] 图书bug修改

---
 src/components/dragQuestion/index.vue |   35 +++++++++++++++++++++++------------
 1 files changed, 23 insertions(+), 12 deletions(-)

diff --git a/src/components/dragQuestion/index.vue b/src/components/dragQuestion/index.vue
index ddeca7d..f057489 100644
--- a/src/components/dragQuestion/index.vue
+++ b/src/components/dragQuestion/index.vue
@@ -1,10 +1,16 @@
 <template>
   <div class="drag-box" :style="{ borderColor: bcColor }">
     <div class="title-box">
-      <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="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
+        <svg
           t="1719309984490"
           class="icon"
           viewBox="0 0 1024 1024"
@@ -20,7 +26,6 @@
             p-id="6317"
           ></path>
         </svg>
-
       </span>
     </div>
     <div
@@ -278,7 +283,7 @@
       spaceList: [],
       submitState: false,
       isLift: false,
-      ishowTitle:false
+      ishowTitle: false,
     };
   },
   mounted() {},
@@ -302,6 +307,11 @@
     },
     // 榧犳爣绉诲姩
     mousemove(e) {
+      if (this.isLift) {
+        this.moveDom.style.position = "";
+        this.moveDom.style.left = "0px";
+        this.moveDom.style.top = "0px";
+      }
       if (!this.moveDom) return false;
       this.moveDom.style.position = "absolute";
       // 闄愬埗鍦ㄦ棰樿寖鍥村唴鎷栧姩
@@ -310,6 +320,7 @@
         const moveY = e.y - this.parentY + 40;
         this.moveDom.style.left = moveX + "px";
         this.moveDom.style.top = moveY + "px";
+        this.moveDom.style.zIndex = "99999999";
         // 濡傛灉杩樻湁鏈夌┖鏍�
         if (this.spaceList.length) {
           for (let index = 0; index < this.spaceList.length; index++) {
@@ -492,13 +503,13 @@
       return flag;
     },
     mouseenterTitle() {
-      this.ishowTitle = true
-      console.log(this.ishowTitle );
+      this.ishowTitle = true;
+      console.log(this.ishowTitle);
     },
     mouseleaveTitle() {
-      this.ishowTitle = false
-      console.log(this.ishowTitle );
-    }
+      this.ishowTitle = false;
+      console.log(this.ishowTitle);
+    },
   },
 };
 </script>
@@ -582,7 +593,7 @@
   text-indent: 0 !important;
   position: absolute;
   top: -33px;
-  background-color:#8fae34 ;
+  background-color: #8fae34;
   padding: 0 4px;
   white-space: nowrap;
   border-radius: 4px;
@@ -593,7 +604,7 @@
   margin-bottom: 20px;
   p {
     margin: 0;
-    text-indent: 2em ;
+    text-indent: 2em;
   }
 }
 /** 瑙f瀽 */

--
Gitblit v1.9.1