From 9c82df0a7a204d193d0dd28b96ebf279246c7f0a Mon Sep 17 00:00:00 2001 From: webfansplz <308241863@qq.com> Date: Wed, 18 Jan 2023 14:07:07 +0800 Subject: [PATCH] fix: prevent default event when hide dropdown (#1277) --- components/common/CommonMask.vue | 13 ++++++++++++ components/user/UserDropdown.vue | 6 +++++- composables/mask.ts | 34 ++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 components/common/CommonMask.vue create mode 100644 composables/mask.ts diff --git a/components/common/CommonMask.vue b/components/common/CommonMask.vue new file mode 100644 index 00000000..a2f926ba --- /dev/null +++ b/components/common/CommonMask.vue @@ -0,0 +1,13 @@ + + + diff --git a/components/user/UserDropdown.vue b/components/user/UserDropdown.vue index 9c427469..e02dc61d 100644 --- a/components/user/UserDropdown.vue +++ b/components/user/UserDropdown.vue @@ -1,5 +1,9 @@ + +