优化contextmenu指令

This commit is contained in:
fan committed 2021-02-09 16:52:51 +08:00
1 parent 5d53ee6b41
commit 763935791a
7 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ export default {
binding.modifiers.click ? "click" : "contextmenu",
e => {
if (isEmpty(binding.value) || !Array.isArray(binding.value)) return;
e.stopPropagation();
if (binding.modifiers.click == "click") e.stopPropagation();
e.preventDefault();
LemonPopover.methods.closeAll();
let component;