mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 19:08:20 +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>
|
</script>
|
||||||
|
|
||||||
<template>
|
<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">
|
<template v-for="(section, index) in sections" :key="index">
|
||||||
<h4 v-if="section.title">{{ section.title }}</h4>
|
<h4 v-if="section.title">{{ section.title }}</h4>
|
||||||
<div class="section">
|
<div class="section">
|
||||||
|
@ -39,7 +39,7 @@ let { sections, submit, discard } = $(props);
|
||||||
</template>
|
</template>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<div class="flex-grow"/>
|
<div class="flex-grow"/>
|
||||||
<button>Submit</button>
|
<button @click="handleSubmit($event, submit)">Submit</button>
|
||||||
<div class="space"/>
|
<div class="space"/>
|
||||||
<button @click="discard">Discard</button>
|
<button @click="discard">Discard</button>
|
||||||
<div class="flex-grow"/>
|
<div class="flex-grow"/>
|
||||||
|
|
Loading…
Add table
Reference in a new issue