options info
This commit is contained in:
parent
aba14f0e16
commit
30449ee65b
|
@ -44,6 +44,15 @@
|
||||||
/>
|
/>
|
||||||
{:else if schema.type === "array"}
|
{:else if schema.type === "array"}
|
||||||
|
|
||||||
|
{#each (schema?.constraints?.inclusion ?? []) as option, index}
|
||||||
|
<Property
|
||||||
|
name={`Option ${index + 1}`}
|
||||||
|
truncate
|
||||||
|
>
|
||||||
|
<span style:background-color={schema?.optionColors?.[option]} class="optionCircle" />{option}
|
||||||
|
</Property>
|
||||||
|
{/each}
|
||||||
|
{:else if schema.type === "options"}
|
||||||
{#each (schema?.constraints?.inclusion ?? []) as option, index}
|
{#each (schema?.constraints?.inclusion ?? []) as option, index}
|
||||||
<Property
|
<Property
|
||||||
name={`Option ${index + 1}`}
|
name={`Option ${index + 1}`}
|
||||||
|
|
Loading…
Reference in New Issue