瀏覽代碼

热点样式定制

bill 3 年之前
父節點
當前提交
7531ea6920
共有 1 個文件被更改,包括 18 次插入6 次删除
  1. 18 6
      src/components/tagging/sign.vue

+ 18 - 6
src/components/tagging/sign.vue

@@ -6,11 +6,14 @@
     @mouseenter="isHover = true"
     @mouseleave="isHover = false"
   >
-    <img 
-      :src="getResource(taggingStyle.icon)" 
-      @click="iconClickHandler" 
-      v-if="taggingStyle" 
-    />
+    <ui-tip :tip="tagging.title" foreShow tipV="top" class="tag-tip">
+      <img 
+        class="tag-img"
+        :src="getResource(taggingStyle.icon)" 
+        @click="iconClickHandler" 
+        v-if="taggingStyle" 
+      />
+    </ui-tip>
     <div @click.stop>
       <UIBubble
         class="hot-bubble pc" 
@@ -111,7 +114,7 @@ const iconClickHandler = () => {
   transform: translate(-50%, -50%);
   cursor: pointer;
 
-  > img {
+  .tag-img {
     width: 32px;
     height: 32px;
   }
@@ -165,4 +168,13 @@ const iconClickHandler = () => {
   }
 }
 
+</style>
+
+<style>
+.tag-tip {
+  z-index: 8 !important;
+}
+.tag-tip p {
+  margin: 5px 0 !important;
+}
 </style>