parsley/app/javascript/components/AppValidationErrors.vue

19 lines
316 B
Vue

<template>
<div>
<div class="notification is-danger" v-if="errors !== null" v-for="(errs, prop) in errors">
{{ prop }}: {{ errs.join(", ") }}
</div>
</div>
</template>
<script setup>
const props = defineProps({
errors: {
required: false,
type: Object,
default: {}
}
});
</script>