{
if (e.detail >= 0) {
tab.setData(e.detail)
}
}}
>
{#if $$slots.title1}
twJoin("tab", selected && "primary")}>
Tab 0
{/if}
{#if $$slots.title1}
twJoin("tab", selected && "primary")}>
{/if}
{#if $$slots.title2}
twJoin("tab", selected && "primary")}>
{/if}
{#if $$slots.title3}
twJoin("tab", selected && "primary")}>
{/if}
{#if $$slots.title4}
twJoin("tab", selected && "primary")}>
{/if}