mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 13:06:01 +00:00
feat: pass tabVisible to tabs
This commit is contained in:
@@ -53,7 +53,12 @@
|
||||
<div class="content-container" data-testid={contentTestId}>
|
||||
{#each _.compact(tabs) as tab, index}
|
||||
<div class="container" class:isInline class:tabVisible={index == value} style:max-width={containerMaxWidth}>
|
||||
<svelte:component this={tab.component} {...tab.props} tabControlHiddenTab={index != value} />
|
||||
<svelte:component
|
||||
this={tab.component}
|
||||
{...tab.props}
|
||||
tabVisible={index == value}
|
||||
tabControlHiddenTab={index != value}
|
||||
/>
|
||||
{#if tab.slot != null}
|
||||
{#if tab.slot == 0}<slot name="0" />
|
||||
{:else if tab.slot == 1}<slot name="1" />
|
||||
|
||||
Reference in New Issue
Block a user