From 48222e6e99947e696cb903724ee9252992ce7f33 Mon Sep 17 00:00:00 2001 From: thomasRalee Date: Tue, 9 Jan 2024 21:51:05 +0800 Subject: [PATCH] chore: layer modal wrapper remove animation --- layer/components/ModalWrapper.vue | 48 +++++++++++-------------------- 1 file changed, 16 insertions(+), 32 deletions(-) diff --git a/layer/components/ModalWrapper.vue b/layer/components/ModalWrapper.vue index 4bbc69e4..0ed37e48 100644 --- a/layer/components/ModalWrapper.vue +++ b/layer/components/ModalWrapper.vue @@ -40,9 +40,7 @@ function onModalClose() { closeModal() } -onKeyStroke('Escape', () => { - closeModal() -}) +onKeyStroke('Escape', closeModal) onClickOutside( modalRef, @@ -61,39 +59,25 @@ export default { - -