Fix custom options drawer layout
This commit is contained in:
parent
c873b42242
commit
dd6f35e816
|
@ -6,6 +6,7 @@
|
||||||
DrawerContent,
|
DrawerContent,
|
||||||
Layout,
|
Layout,
|
||||||
Body,
|
Body,
|
||||||
|
Label,
|
||||||
} from "@budibase/bbui"
|
} from "@budibase/bbui"
|
||||||
import { generate } from "shortid"
|
import { generate } from "shortid"
|
||||||
|
|
||||||
|
@ -35,19 +36,12 @@
|
||||||
{/if}
|
{/if}
|
||||||
{#if options?.length}
|
{#if options?.length}
|
||||||
<div class="options">
|
<div class="options">
|
||||||
|
<Label>Label</Label>
|
||||||
|
<Label>Value</Label>
|
||||||
|
<div />
|
||||||
{#each options as option (option.id)}
|
{#each options as option (option.id)}
|
||||||
<Input
|
<Input placeholder="Label" bind:value={option.label} />
|
||||||
placeholder="Label"
|
<Input placeholder="Value" bind:value={option.value} />
|
||||||
bind:value={option.label}
|
|
||||||
label="Label"
|
|
||||||
labelPosition="left"
|
|
||||||
/>
|
|
||||||
<Input
|
|
||||||
placeholder="Value"
|
|
||||||
bind:value={option.value}
|
|
||||||
label="Value"
|
|
||||||
labelPosition="left"
|
|
||||||
/>
|
|
||||||
<Icon
|
<Icon
|
||||||
name="Close"
|
name="Close"
|
||||||
hoverable
|
hoverable
|
||||||
|
|
Loading…
Reference in New Issue