mirror of
https://github.com/IoTManagerProject/IoTManagerWeb.git
synced 2026-03-26 23:12:34 +03:00
кнопки
This commit is contained in:
@@ -191,6 +191,8 @@
|
||||
let p = str.indexOf(found) + found.length;
|
||||
return str.substring(p);
|
||||
}
|
||||
|
||||
export let moduleOrder = (id, key, value) => {};
|
||||
</script>
|
||||
|
||||
{#if show}
|
||||
@@ -248,12 +250,23 @@
|
||||
<td />
|
||||
<td />
|
||||
<td />
|
||||
<td class="tbl-bdy-sm text-right">
|
||||
<p class="txt-ita">{key}</p>
|
||||
</td>
|
||||
<td class="tbl-bdy-sm text-center">
|
||||
<input bind:value={element[key]} class="ipt-sm w-full" type="text" />
|
||||
</td>
|
||||
{#if key.startsWith("btn")}
|
||||
<td class="tbl-bdy-sm text-right">
|
||||
<button on:click={() => moduleOrder(element.id, key.substring(4), element[key])} class="h-3 sm:h-6 md:h-6 lg:h-6 xl:h-6 2xl:h-6 w-auto bg-blue-100 inline-flex items-center border border-gray-300 hover:bg-blue-200">{key.substring(4)}</button>
|
||||
</td>
|
||||
{#if element[key] != "nil"}
|
||||
<td class="tbl-bdy-sm text-center">
|
||||
<input bind:value={element[key]} class="ipt-sm w-full" type="text" />
|
||||
</td>
|
||||
{/if}
|
||||
{:else}
|
||||
<td class="tbl-bdy-sm text-right">
|
||||
<p class="txt-ita">{key}</p>
|
||||
</td>
|
||||
<td class="tbl-bdy-sm text-center">
|
||||
<input bind:value={element[key]} class="ipt-sm w-full" type="text" />
|
||||
</td>
|
||||
{/if}
|
||||
</tr>
|
||||
{/if}
|
||||
{/each}
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
function timeOut() {
|
||||
empty = false;
|
||||
setTimeout(timeIsOut, 1000);
|
||||
setTimeout(timeIsOut, 3000);
|
||||
}
|
||||
|
||||
export let pages;
|
||||
|
||||
@@ -168,11 +168,13 @@
|
||||
</div>
|
||||
<div class="flex justify-center w-1/3">
|
||||
<select class="border border-indigo-500 border-4 text-center" bind:value={choosingVersion}>
|
||||
{#each Object.entries(versionsList) as [key, param]}
|
||||
<option value={param}>
|
||||
{param}
|
||||
</option>
|
||||
{/each}
|
||||
{#if versionsList}
|
||||
{#each Object.entries(versionsList) as [key, param]}
|
||||
<option value={param}>
|
||||
{param}
|
||||
</option>
|
||||
{/each}
|
||||
{/if}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user