Karsa 9 달 전
부모
커밋
3657ba5ed8
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      src/views/datasheet_manage/components/MixedTable.vue

+ 6 - 3
src/views/datasheet_manage/components/MixedTable.vue

@@ -155,12 +155,10 @@
       </table>
 
       <!-- 右键菜单 -->
-       <!-- @mouseleave="hideContextMenu" -->
-      <div class="contextMenu-wrapper" id="contextMenu-wrapper">
+      <div class="contextMenu-wrapper" id="contextMenu-wrapper" @mouseleave="()=>{activeNames=[];hideContextMenu()}">
         <div :class="['item',{'deletesty': menu.key==='reset'}]" v-for="menu in config.contextMenuOption" :key="menu.key" @click="handleContext(menu.key)">
           <span v-if="!menu.children">{{menu.label}}</span>
           
-          <!-- <i class="el-icon-arrow-right" v-if="menu.children"></i> -->
           <el-collapse v-model="activeNames" @change="handleChange" v-if="menu.children">
             <el-collapse-item name="1">
               <template slot="title">
@@ -358,6 +356,8 @@ export default {
       isInsertCalculateDate: false,//日期计算弹窗
       insertCalculateDateInfo: {},//日期计算info
 
+      activeNames: []
+
     };
   },
   mounted() {
@@ -1424,6 +1424,9 @@ export default {
 .el-collapse {
   border: none !important;
   .el-collapse-item__header {
+    padding: 0;
+    height: auto;
+    line-height: normal;
     margin-bottom: 0 !important;
     background: transparent !important;
   }