Skip to content

Commit 9fb722d

Browse files
committed
refactor(packages): @sa/materials: remove tab close shortcut by mouse
1 parent c0e8795 commit 9fb722d

File tree

1 file changed

+1
-14
lines changed
  • packages/materials/src/libs/page-tab

1 file changed

+1
-14
lines changed

packages/materials/src/libs/page-tab/index.vue

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,23 +53,10 @@ const bindProps = computed(() => {
5353
function handleClose() {
5454
emit('close');
5555
}
56-
57-
function handleMouseup(e: MouseEvent) {
58-
// close tab by mouse wheel button click
59-
if (e.button === 1) {
60-
handleClose();
61-
}
62-
}
6356
</script>
6457

6558
<template>
66-
<component
67-
:is="activeTabComponent.component"
68-
:class="activeTabComponent.class"
69-
:style="cssVars"
70-
v-bind="bindProps"
71-
@mouseup="handleMouseup"
72-
>
59+
<component :is="activeTabComponent.component" :class="activeTabComponent.class" :style="cssVars" v-bind="bindProps">
7360
<template #prefix>
7461
<slot name="prefix"></slot>
7562
</template>

0 commit comments

Comments
 (0)