From a0074411caff48a059b327898e8f040c21ab7e57 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Sat, 24 Apr 2021 17:19:41 +0800 Subject: [PATCH] feat: add tagViews right click menu --- src/layout/components/tag/index.vue | 255 ++++++++++++++++++++-------- 1 file changed, 188 insertions(+), 67 deletions(-) diff --git a/src/layout/components/tag/index.vue b/src/layout/components/tag/index.vue index 0d03956be..f0c523e2b 100644 --- a/src/layout/components/tag/index.vue +++ b/src/layout/components/tag/index.vue @@ -1,15 +1,31 @@ - @@ -220,6 +319,28 @@ export default { } } } + + .contextmenu { + margin: 0; + background: #fff; + z-index: 3000; + position: absolute; + list-style-type: none; + padding: 5px 0; + border-radius: 4px; + font-size: 12px; + font-weight: 400; + color: #333; + box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.3); + li { + margin: 0; + padding: 7px 16px; + cursor: pointer; + &:hover { + background: #eee; + } + } + } } .el-icon-close {