mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 11:56:00 +00:00
18 lines
416 B
Svelte
18 lines
416 B
Svelte
<script>
|
|
import { getFormContext } from './FormProviderCore.svelte';
|
|
import { createEventDispatcher } from 'svelte';
|
|
import LargeButton from '../buttons/LargeButton.svelte';
|
|
|
|
const dispatch = createEventDispatcher();
|
|
|
|
const { values } = getFormContext();
|
|
|
|
function handleClick() {
|
|
dispatch('click', $values);
|
|
}
|
|
</script>
|
|
|
|
<LargeButton on:click={handleClick} {...$$props}>
|
|
<slot />
|
|
</LargeButton>
|