|
|
@ -6,7 +6,7 @@ import { useMouse } from '@vueuse/core' |
|
|
|
import { computed, ref, unref } from 'vue' |
|
|
|
import { computed, ref, unref } from 'vue' |
|
|
|
|
|
|
|
|
|
|
|
import { Tabs } from 'ant-design-vue' |
|
|
|
import { Tabs } from 'ant-design-vue' |
|
|
|
import { useRouter } from 'vue-router' |
|
|
|
import { useRoute, useRouter } from 'vue-router' |
|
|
|
import TabContent from './components/TabContent.vue' |
|
|
|
import TabContent from './components/TabContent.vue' |
|
|
|
|
|
|
|
|
|
|
|
import { initAffixTabs, useTabsDrag } from './useMultipleTabs' |
|
|
|
import { initAffixTabs, useTabsDrag } from './useMultipleTabs' |
|
|
@ -89,6 +89,8 @@ function handleEdit(targetKey: string) { |
|
|
|
|
|
|
|
|
|
|
|
tabStore.closeTabByKey(targetKey, router) |
|
|
|
tabStore.closeTabByKey(targetKey, router) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const route = useRoute() |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
@ -111,7 +113,7 @@ function handleEdit(targetKey: string) { |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template v-if="getShowQuick" #rightExtra> |
|
|
|
<template v-if="getShowQuick" #rightExtra> |
|
|
|
<TabContent is-extra :tab-item="$route" /> |
|
|
|
<TabContent is-extra :tab-item="route" /> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</Tabs> |
|
|
|
</Tabs> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|