mirror of
https://github.com/IoTManagerProject/IoTManagerWeb.git
synced 2026-03-27 07:22:28 +03:00
fixed problem with color
This commit is contained in:
@@ -10,20 +10,58 @@
|
||||
<div class="card-items">
|
||||
<div class="md:w-2/3 lg:w-2/3 2xl:w-2/3">
|
||||
<!-- svelte-ignore a11y-label-has-associated-control -->
|
||||
<label class="widget-descr-gray-left">{!widget.descr ? "" : widget.descr}</label>
|
||||
<label class="widget-descr-gray-left"
|
||||
>{!widget.descr ? "" : widget.descr}</label>
|
||||
</div>
|
||||
<div class="md:w-1/3 lg:w-1/3 2xl:w-1/3">
|
||||
{#if widget.type == "number"}
|
||||
<input on:change={WSpush(widget.ws, widget.topic, widget.status)} bind:value class="widget-input-indigo text-right" step="0.1" type="number" />
|
||||
<input
|
||||
class={widget["send"] == true
|
||||
? "widget-input border-red-500"
|
||||
: "widget-input focus:border-indigo-500"}
|
||||
on:change={() => (
|
||||
(widget["send"] = true),
|
||||
WSpush(widget.ws, widget.topic, widget.status)
|
||||
)}
|
||||
bind:value
|
||||
step="0.1"
|
||||
type="number" />
|
||||
{/if}
|
||||
{#if widget.type == "text"}
|
||||
<input on:change={WSpush(widget.ws, widget.topic, widget.status)} bind:value class="widget-input-indigo text-right" type="text" />
|
||||
<input
|
||||
class={widget["send"] == true
|
||||
? "widget-input border-red-500"
|
||||
: "widget-input focus:border-indigo-500"}
|
||||
on:change={() => (
|
||||
(widget["send"] = true),
|
||||
WSpush(widget.ws, widget.topic, widget.status)
|
||||
)}
|
||||
bind:value
|
||||
type="text" />
|
||||
{/if}
|
||||
{#if widget.type == "date"}
|
||||
<input on:change={WSpush(widget.ws, widget.topic, widget.status)} bind:value class="widget-input-indigo text-right" type="date" />
|
||||
<input
|
||||
class={widget["send"] == true
|
||||
? "widget-input border-red-500"
|
||||
: "widget-input focus:border-indigo-500"}
|
||||
on:change={() => (
|
||||
(widget["send"] = true),
|
||||
WSpush(widget.ws, widget.topic, widget.status)
|
||||
)}
|
||||
bind:value
|
||||
type="date" />
|
||||
{/if}
|
||||
{#if widget.type == "time"}
|
||||
<input on:change={WSpush(widget.ws, widget.topic, widget.status)} bind:value class="widget-input-indigo text-right" type="time" />
|
||||
<input
|
||||
class={widget["send"] == true
|
||||
? "widget-input border-red-500"
|
||||
: "widget-input focus:border-indigo-500"}
|
||||
on:change={() => (
|
||||
(widget["send"] = true),
|
||||
WSpush(widget.ws, widget.topic, widget.status)
|
||||
)}
|
||||
bind:value
|
||||
type="time" />
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user