2FAuth/resources/js/components/FieldError.vue

23 lines
473 B
Vue
Raw Normal View History

<template>
2022-10-12 11:30:20 +02:00
<div role="alert">
<p :id="'valError' + field[0].toUpperCase() + field.toLowerCase().slice(1)" class="help is-danger" v-if="form.errors.has(field)" v-html="form.errors.get(field)" />
</div>
</template>
<script>
export default {
name: 'field-error',
props: {
form: {
type: Object,
required: true
},
field: {
type: String,
required: true
}
}
}
</script>