mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
Implement handle submit
This commit is contained in:
parent
620ccfbd91
commit
cdf68eaccf
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ let { sections, submit, discard } = $(props);
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<ValidationForm as="form" v-slot="{ values }" @submit="submit">
|
||||
<ValidationForm as="div" v-slot="{ values, handleSubmit }" @submit="submit">
|
||||
<template v-for="(section, index) in sections" :key="index">
|
||||
<h4 v-if="section.title">{{ section.title }}</h4>
|
||||
<div class="section">
|
||||
|
@ -39,7 +39,7 @@ let { sections, submit, discard } = $(props);
|
|||
</template>
|
||||
<div class="actions">
|
||||
<div class="flex-grow"/>
|
||||
<button>Submit</button>
|
||||
<button @click="handleSubmit($event, submit)">Submit</button>
|
||||
<div class="space"/>
|
||||
<button @click="discard">Discard</button>
|
||||
<div class="flex-grow"/>
|
||||
|
|
Loading…
Add table
Reference in a new issue