passing json direct to component

This commit is contained in:
Dmitry Borisenko
2021-10-16 21:27:57 +08:00
parent eaae5c7708
commit 2d290b9541
2 changed files with 13 additions and 16 deletions

View File

@@ -120,21 +120,21 @@
<Card title="Corridor">
{#each wigets as widget, i}
{#if widget.widget === "input"}
<Myinput bind:value={widget.status} descr={widget.descr} topic={widget.topic} ws={1} type={widget.type} />
<Myinput bind:value={widget.status} widget={widget} />
{/if}
{/each}
</Card>
<Card title="Living room">
{#each wigets as widget, i}
{#if widget.widget === "input"}
<Myinput bind:value={widget.status} descr={widget.descr} topic={widget.topic} ws={1} type={widget.type} />
<Myinput bind:value={widget.status} widget={widget} />
{/if}
{/each}
</Card>
<Card title="Bedroom">
{#each wigets as widget, i}
{#if widget.widget === "input"}
<Myinput bind:value={widget.status} descr={widget.descr} topic={widget.topic} ws={1} type={widget.type} />
<Myinput bind:value={widget.status} widget={widget} />
{/if}
{/each}
</Card>