2020-04-16 16:22:58 +03:00
|
|
|
|
<template>
|
|
|
|
|
<div class="specimens specimens--group">
|
2020-04-19 21:34:25 +03:00
|
|
|
|
<FormulateForm
|
|
|
|
|
v-model="formResult"
|
|
|
|
|
@submit="save"
|
2020-04-16 16:22:58 +03:00
|
|
|
|
>
|
|
|
|
|
<FormulateInput
|
2020-04-19 21:34:25 +03:00
|
|
|
|
name="users"
|
|
|
|
|
label="Invite some new users"
|
|
|
|
|
type="group"
|
|
|
|
|
placeholder="users"
|
|
|
|
|
help="Fields can be grouped"
|
|
|
|
|
>
|
|
|
|
|
<FormulateInput
|
|
|
|
|
label="First and last name"
|
|
|
|
|
name="name"
|
|
|
|
|
type="text"
|
|
|
|
|
placeholder="User’s name"
|
|
|
|
|
/>
|
|
|
|
|
<FormulateInput
|
|
|
|
|
name="email"
|
|
|
|
|
label="Email address"
|
|
|
|
|
type="email"
|
|
|
|
|
placeholder="User’s email"
|
|
|
|
|
validation="required|email"
|
|
|
|
|
/>
|
|
|
|
|
</FormulateInput>
|
2020-04-16 16:22:58 +03:00
|
|
|
|
<FormulateInput
|
2020-04-19 21:34:25 +03:00
|
|
|
|
type="submit"
|
2020-04-16 16:22:58 +03:00
|
|
|
|
/>
|
2020-04-19 21:34:25 +03:00
|
|
|
|
</FormulateForm>
|
|
|
|
|
<span>Form Values</span>
|
|
|
|
|
<pre>{{ formResult }}</pre>
|
|
|
|
|
<span>Save Values</span>
|
|
|
|
|
<pre>{{ saveValues }}</pre>
|
2020-04-16 16:22:58 +03:00
|
|
|
|
</div>
|
|
|
|
|
</template>
|
2020-04-19 06:57:43 +03:00
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
data () {
|
|
|
|
|
return {
|
2020-04-19 21:34:25 +03:00
|
|
|
|
formResult: null,
|
|
|
|
|
saveValues: null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
save (values) {
|
|
|
|
|
this.saveValues = values
|
2020-04-19 06:57:43 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|