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