mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 04:56:00 +00:00
16 lines
422 B
Svelte
16 lines
422 B
Svelte
<script>
|
|
import FormStyledButton from '../elements/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={handleClick} {...$$props} />
|