mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 08:26:01 +00:00
forms
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
<script>
|
||||
import FormStyledButton from '../widgets/FormStyledButton.svelte';
|
||||
import { getFormContext } from './FormProviderCore.svelte';
|
||||
import { createEventDispatcher } from 'svelte';
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
const { values } = getFormContext();
|
||||
|
||||
function handleClick() {
|
||||
dispatch('click', $values);
|
||||
}
|
||||
</script>
|
||||
|
||||
<FormStyledButton type="button" on:click {...$$props} />
|
||||
<FormStyledButton type="button" on:click={handleClick} {...$$props} />
|
||||
|
||||
Reference in New Issue
Block a user