|
|
|
@ -7,19 +7,11 @@ import MdiView from '~icons/mdi/eye-circle-outline'
|
|
|
|
|
import MdiAccountGroup from '~icons/mdi/account-group' |
|
|
|
|
|
|
|
|
|
const { tabs, activeTabIndex, activeTab, closeTab } = useTabs() |
|
|
|
|
const { getMeta } = useMetas() |
|
|
|
|
|
|
|
|
|
const { isLoading } = useGlobal() |
|
|
|
|
|
|
|
|
|
provide(TabMetaInj, activeTab) |
|
|
|
|
|
|
|
|
|
watch( |
|
|
|
|
() => activeTab?.value?.id, |
|
|
|
|
async () => { |
|
|
|
|
await getMeta(activeTab?.value?.id as string, true) |
|
|
|
|
}, |
|
|
|
|
{ immediate: true }, |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
const icon = (tab: TabItem) => { |
|
|
|
|
switch (tab.type) { |
|
|
|
@ -101,6 +93,7 @@ function onEdit(targetKey: number, action: 'add' | 'remove' | string) {
|
|
|
|
|
.ant-tabs-nav-add { |
|
|
|
|
@apply !hidden; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.ant-tabs-nav-more { |
|
|
|
|
@apply text-white; |
|
|
|
|
} |
|
|
|
|