implemented stock display from location tree to property list

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-10-13 23:41:12 +02:00
parent 6e9a2b6aca
commit a52df2b434
10 changed files with 185 additions and 138 deletions

View File

@@ -1,5 +1,22 @@
<ul>
<li>Prop 1</li>
<li>Prop 2</li>
<li>Prop 3</li>
</ul>
<script>
let { item } = $props();
</script>
{#if item}
<h3>{item.name}</h3>
<table>
<tbody>
{#each item.properties as prop}
<tr>
<td>
{prop.name}
</td>
<td>
{prop.value}
{prop.unit}
</td>
</tr>
{/each}
</tbody>
</table>
{/if}