|
@@ -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;
|
|
|
}
|