Kaynağa Gözat

左侧图例样式修改

haojianlong 4 yıl önce
ebeveyn
işleme
d17bfab50d
1 değiştirilmiş dosya ile 7 ekleme ve 1 silme
  1. 7 1
      src/components/edit/left_toolbar.vue

+ 7 - 1
src/components/edit/left_toolbar.vue

@@ -107,6 +107,7 @@
                     v-for="(items,indexs) in item.GraphElements"
                     :key="indexs"
                     :class="[activeIndexs==indexs &&activeIndex==index ?'active-li':'']"
+                    :title="items.Name"
                   >
                     <img
                       :class="['item',`item-${items.Type}`]"
@@ -641,8 +642,13 @@ export default {
               background: #fff;
             }
             .text {
+              width: 100%;
+              padding: 0 5px;
               font-size: 12px;
-              margin: 0 auto;
+              text-align: center;
+              overflow: hidden;
+              text-overflow:ellipsis;
+              white-space: nowrap;
             }
           }
           .active-li {