From 4da588c6baaaed81674902f19590850f690799e2 Mon Sep 17 00:00:00 2001 From: Soybean Date: Sat, 21 Sep 2024 08:23:20 +0800 Subject: [PATCH] refactor(packages): @sa/materials: remove tab close shortcut by mouse --- packages/materials/src/libs/page-tab/index.vue | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/packages/materials/src/libs/page-tab/index.vue b/packages/materials/src/libs/page-tab/index.vue index dd4c5d13..0c0c6995 100644 --- a/packages/materials/src/libs/page-tab/index.vue +++ b/packages/materials/src/libs/page-tab/index.vue @@ -53,23 +53,10 @@ const bindProps = computed(() => { function handleClose() { emit('close'); } - -function handleMouseup(e: MouseEvent) { - // close tab by mouse wheel button click - if (e.button === 1) { - handleClose(); - } -}