mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-17 22:03:09 +00:00
Add "on:change" tab event (#2541)
Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@xored.com>
This commit is contained in:
parent
2707c34659
commit
17f7563d85
@ -45,9 +45,9 @@
|
|||||||
{#each model as tab, i}
|
{#each model as tab, i}
|
||||||
{#if selected === i}
|
{#if selected === i}
|
||||||
{#if typeof tab.component === 'string'}
|
{#if typeof tab.component === 'string'}
|
||||||
<Component is={tab.component} props={tab.props} />
|
<Component is={tab.component} props={tab.props} on:change />
|
||||||
{:else}
|
{:else}
|
||||||
<svelte:component this={tab.component} {...tab.props} />
|
<svelte:component this={tab.component} {...tab.props} on:change />
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
|
Loading…
Reference in New Issue
Block a user