Add default options for options field

This commit is contained in:
Andrew Kingston 2021-08-04 14:33:51 +01:00
parent bbf9f42555
commit 246d89b680
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@
export let placeholder export let placeholder
export let disabled = false export let disabled = false
export let optionsType = "select" export let optionsType = "select"
export let defaultValue
let fieldState let fieldState
let fieldApi let fieldApi
@ -17,6 +18,7 @@
{field} {field}
{label} {label}
{disabled} {disabled}
{defaultValue}
type="options" type="options"
bind:fieldState bind:fieldState
bind:fieldApi bind:fieldApi