mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 14:23:58 +00:00
fixed tab component
This commit is contained in:
@@ -4,7 +4,6 @@
|
|||||||
if (tabComponent) {
|
if (tabComponent) {
|
||||||
return {
|
return {
|
||||||
tabComponent,
|
tabComponent,
|
||||||
props: selectedTab && selectedTab.props,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
@@ -50,12 +49,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$: openedTabsByTabId = _.keyBy($openedTabs, x => x.tabid);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#each _.keys(mountedTabs) as tabid (tabid)}
|
{#each _.keys(mountedTabs) as tabid (tabid)}
|
||||||
<TabContent
|
<TabContent
|
||||||
tabComponent={mountedTabs[tabid].tabComponent}
|
tabComponent={mountedTabs[tabid].tabComponent}
|
||||||
{...mountedTabs[tabid].props}
|
{...openedTabsByTabId[tabid]?.props}
|
||||||
{tabid}
|
{tabid}
|
||||||
tabVisible={tabid == (selectedTab && selectedTab.tabid)}
|
tabVisible={tabid == (selectedTab && selectedTab.tabid)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user