mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 04:46:02 +00:00
forms
This commit is contained in:
14
packages/web/src/forms/SelectField.svelte
Normal file
14
packages/web/src/forms/SelectField.svelte
Normal file
@@ -0,0 +1,14 @@
|
||||
<script lang="ts">
|
||||
export let options = [];
|
||||
export let value;
|
||||
|
||||
$: console.log('FIELD', $$props.value);
|
||||
</script>
|
||||
|
||||
<select {...$$restProps} on:change>
|
||||
{#each options as x (x.value)}
|
||||
<option value={x.value} selected={value == x.value}>
|
||||
{x.label}
|
||||
</option>
|
||||
{/each}
|
||||
</select>
|
||||
Reference in New Issue
Block a user