Browse Source

fix: BsUi-组件修改

hanxiaohui 4 months ago
parent
commit
336a4c69de

+ 1 - 1
src/components/BsUi/Catalog/index.vue

@@ -61,7 +61,7 @@
       .h-right {
         position: absolute;
         right: 0;
-        top: 0;
+        bottom: 6px;
       }
     }
 

+ 0 - 4
src/components/BsUi/Descriptions/index.vue

@@ -103,10 +103,6 @@
       display: flex;
       align-items: center;
       gap: 10px;
-      &:hover {
-        background: rgba(#000, 0.1);
-        border-radius: 8px;
-      }
       &::before {
         width: 4px;
         height: 18px;

+ 4 - 1
src/components/BsUi/DicTag/index.vue

@@ -1,6 +1,9 @@
 <template>
   <a-space>
-    <a-tag v-for="(tag, idx) in dicts" :key="idx" :color="tag.dictStyle || 'default'">{{ tag.valueName }}</a-tag>
+    <div v-for="(tag, idx) in dicts" :key="idx">
+      <a-tag v-if="tag.dictStyle && tag.dictStyle !== 'default'" :color="tag.dictStyle">{{ tag.valueName }}</a-tag>
+      <div  v-else>{{ tag.valueName }}</div>
+    </div>
   </a-space>
 </template>
 

+ 1 - 1
src/components/BsUi/index.js

@@ -30,7 +30,7 @@ const BsUi = {
     app.component('BsEllipsisText', BsEllipsisText);
     app.component('BsDicTag', BsDicTag);
     app.component('BsLink', BsLink);
-    app.component('BsCatalog', BsCatalog)
+    app.component('BsCatalog', BsCatalog);
   },
 };