瀏覽代碼

Merge branch 'http_mock' of git.xiaojukeji.com:pu_qa_tool/thoth-frontend into http_mock

qinzhipeng_v@didiglobal.com 4 年之前
父節點
當前提交
3595d00f53
共有 2 個文件被更改,包括 5 次插入3 次删除
  1. 3 1
      src/components/newLayout/components/baseData.js
  2. 2 2
      src/components/newLayout/components/menu.vue

文件差異過大導致無法顯示
+ 3 - 1
src/components/newLayout/components/baseData.js


+ 2 - 2
src/components/newLayout/components/menu.vue

@@ -3,7 +3,7 @@
     <el-popover placement="right-end" trigger="hover" width="400" :open-delay="200">
       <div class="menu-wrapper">
         <div class="children-menu-wrapper borderBottom normal no-children">
-          <div v-for="(elm, index) in menuBaseData" :key="elm.key" :style="{width: elm.width}">
+          <div v-for="(elm, index) in menuBaseData" :key="elm.key" :style="elm.styles">
             <div
               v-if="index < 4"
               class="title"
@@ -11,7 +11,7 @@
               @click="switchProjects(elm)"
             >
             <!-- :style="{ display:index === 2 ? 'none' : 'auto' }" -->
-              <img width="16" height="14" :src="elm.iconData" style="position: relative; top: -2px;">
+              <img width="16" height="14" :src="elm.iconData" style="position: relative; top: -2px;" :style="elm.imageStyle">
               <span class="content">{{ elm.name }}</span>
               <span v-if="elm.key === 'thothFrontend'" style="  position: absolute; top: -5px; right: -10-px;">
                 <svg xmlns="http://www.w3.org/2000/svg" width="25.925" height="11.431" viewBox="0 0 25.925 11.431"> <g id="组_3108" data-name="组 3108" transform="translate(-1132.681 -133.742)"> <path id="标签_3_" data-name="标签 (3)" d="M10.629,0c.443,0,.8.548.8,1.224V20.483a1.328,1.328,0,0,1-.51,1.14L6.007,25.842a.55.55,0,0,1-.583,0L.511,21.623A1.328,1.328,0,0,1,0,20.483V1.224C0,.548.359,0,.8,0Z" transform="translate(1158.606 133.742) rotate(90)" fill="#409eff" /> <text id="当前" transform="translate(1140 142)" fill="#fff" font-size="8" fontFamily="PingFangSC-Regular, PingFang SC" letterSpacing="0.038em"> <tspan x="0" y="0">当前</tspan> </text> <circle id="椭圆_263" data-name="椭圆 263" cx="1.5" cy="1.5" r="1.5" transform="translate(1136 138)" fill="#fff" /> </g> </svg>

部分文件因文件數量過多而無法顯示