|
@@ -155,12 +155,10 @@
|
|
</table>
|
|
</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)">
|
|
<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>
|
|
<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 v-model="activeNames" @change="handleChange" v-if="menu.children">
|
|
<el-collapse-item name="1">
|
|
<el-collapse-item name="1">
|
|
<template slot="title">
|
|
<template slot="title">
|
|
@@ -358,6 +356,8 @@ export default {
|
|
isInsertCalculateDate: false,//日期计算弹窗
|
|
isInsertCalculateDate: false,//日期计算弹窗
|
|
insertCalculateDateInfo: {},//日期计算info
|
|
insertCalculateDateInfo: {},//日期计算info
|
|
|
|
|
|
|
|
+ activeNames: []
|
|
|
|
+
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -1424,6 +1424,9 @@ export default {
|
|
.el-collapse {
|
|
.el-collapse {
|
|
border: none !important;
|
|
border: none !important;
|
|
.el-collapse-item__header {
|
|
.el-collapse-item__header {
|
|
|
|
+ padding: 0;
|
|
|
|
+ height: auto;
|
|
|
|
+ line-height: normal;
|
|
margin-bottom: 0 !important;
|
|
margin-bottom: 0 !important;
|
|
background: transparent !important;
|
|
background: transparent !important;
|
|
}
|
|
}
|