浏览代码

逻辑图字体样式下拉菜单高度优化

chenlei 7 月之前
父节点
当前提交
88fbfc9dfd
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      src/views/sandbox_manage/sandFlowNew/index.vue

+ 6 - 4
src/views/sandbox_manage/sandFlowNew/index.vue

@@ -120,10 +120,12 @@
                   </el-tooltip>
                 </div>
               <el-dropdown-menu slot="dropdown">
-                <el-dropdown-item v-for="f in familyOptions" :command="f.value" :key="f.value"
-                :class="styleOptions.fontF==f.value?'style-acitve':''">
-                    {{ f.name }}
-                </el-dropdown-item>
+                <div style="max-height: 300px; overflow-y: auto;">
+                  <el-dropdown-item v-for="f in familyOptions" :command="f.value" :key="f.value"
+                  :class="styleOptions.fontF==f.value?'style-acitve':''">
+                      {{ f.name }}
+                  </el-dropdown-item>
+                </div>
               </el-dropdown-menu>
             </el-dropdown>
           </div>