|
|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
|
|
|
|
<ul class="context-menu"
|
|
|
+ v-show="contextMenu.show"
|
|
|
:style="{ top: y, left: x }">
|
|
|
<li v-for="(item, index) in contextMenu.menuList"
|
|
|
:key="index"
|
|
|
@@ -21,6 +22,7 @@ export default defineComponent({
|
|
|
default: {
|
|
|
position: { clientX: 0, clientY: 0 },
|
|
|
menuList: [],
|
|
|
+ show: false,
|
|
|
},
|
|
|
type: Object as PropType<ContextMenu>,
|
|
|
},
|