Add simplified Form component to Create vue

This commit is contained in:
Bubka
2020-01-20 17:16:08 +01:00
parent a0d6c9ace7
commit 540a4368f1
5 changed files with 459 additions and 26 deletions

View File

@ -0,0 +1,21 @@
<template>
<p class="help is-danger" v-if="form.errors.has(field)" v-html="form.errors.get(field)" />
</template>
<script>
export default {
name: 'field-error',
props: {
form: {
type: Object,
required: true
},
field: {
type: String,
required: true
}
}
}
</script>