|
@@ -34,7 +34,7 @@
|
|
<ul
|
|
<ul
|
|
v-show="visible"
|
|
v-show="visible"
|
|
:style="{ left: buttonLeft + 'px', top: buttonTop + 'px' }"
|
|
:style="{ left: buttonLeft + 'px', top: buttonTop + 'px' }"
|
|
- class="contextmenu"
|
|
|
|
|
|
+ class="contextmenu animate__animated animate__flipInX"
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
v-for="(item, key) in tagsViews"
|
|
v-for="(item, key) in tagsViews"
|
|
@@ -70,8 +70,9 @@
|
|
:divided="item.divided"
|
|
:divided="item.divided"
|
|
:disabled="item.disabled"
|
|
:disabled="item.disabled"
|
|
@click="onClickDrop(key, item)"
|
|
@click="onClickDrop(key, item)"
|
|
- >{{ item.text }}</el-dropdown-item
|
|
|
|
>
|
|
>
|
|
|
|
+ {{ item.text }}
|
|
|
|
+ </el-dropdown-item>
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
</template>
|
|
</template>
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
@@ -306,7 +307,12 @@ export default {
|
|
onClickDrop(key, {}, currentSelect.value);
|
|
onClickDrop(key, {}, currentSelect.value);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ function closeMenu() {
|
|
|
|
+ visible.value = false;
|
|
|
|
+ }
|
|
|
|
+
|
|
function openMenu(tag, e) {
|
|
function openMenu(tag, e) {
|
|
|
|
+ closeMenu();
|
|
if (tag.path === "/welcome") {
|
|
if (tag.path === "/welcome") {
|
|
// 右键菜单为首页,只显示刷新
|
|
// 右键菜单为首页,只显示刷新
|
|
Array.from([1, 2, 3]).forEach(v => {
|
|
Array.from([1, 2, 3]).forEach(v => {
|
|
@@ -343,11 +349,11 @@ export default {
|
|
buttonLeft.value = left;
|
|
buttonLeft.value = left;
|
|
}
|
|
}
|
|
buttonTop.value = e.clientY;
|
|
buttonTop.value = e.clientY;
|
|
- visible.value = true;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- function closeMenu() {
|
|
|
|
- visible.value = false;
|
|
|
|
|
|
+ nextTick(() => {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ visible.value = true;
|
|
|
|
+ }, 50);
|
|
|
|
+ });
|
|
}
|
|
}
|
|
|
|
|
|
// 鼠标移入
|
|
// 鼠标移入
|
|
@@ -515,6 +521,8 @@ export default {
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
color: #333;
|
|
color: #333;
|
|
|
|
+ outline: 0;
|
|
|
|
+ box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
|
|
li {
|
|
li {
|
|
width: 100%;
|
|
width: 100%;
|
|
margin: 0;
|
|
margin: 0;
|