mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 19:58: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}
|
||||
{#if selected === i}
|
||||
{#if typeof tab.component === 'string'}
|
||||
<Component is={tab.component} props={tab.props} />
|
||||
<Component is={tab.component} props={tab.props} on:change />
|
||||
{:else}
|
||||
<svelte:component this={tab.component} {...tab.props} />
|
||||
<svelte:component this={tab.component} {...tab.props} on:change />
|
||||
{/if}
|
||||
{/if}
|
||||
{/each}
|
||||
|
Loading…
Reference in New Issue
Block a user