Karsa 9 hónapja
szülő
commit
3657ba5ed8
1 módosított fájl, 6 hozzáadás és 3 törlés
  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;
   }