mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-17 14:13:41 +08:00
fix(tab): fix active tab switch issue after removal
- Optimized `removeTab` to use index-based removal for better efficiency - Ensured the next tab is selected correctly when removing the active tab - Prevented unnecessary state updates"
This commit is contained in:
@@ -63,7 +63,7 @@ function handleClose() {
|
||||
<slot></slot>
|
||||
<template #suffix>
|
||||
<slot name="suffix">
|
||||
<SvgClose v-if="closable" :class="[style['svg-close']]" @click.stop="handleClose" />
|
||||
<SvgClose v-if="closable" :class="[style['svg-close']]" @pointerdown.stop="handleClose" />
|
||||
</slot>
|
||||
</template>
|
||||
</component>
|
||||
|
||||
Reference in New Issue
Block a user