mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 13:55:01 +02:00
Enable the Vue 3 front-end
This commit is contained in:
20
resources/js/components/formElements/FieldError.vue
Normal file
20
resources/js/components/formElements/FieldError.vue
Normal file
@ -0,0 +1,20 @@
|
||||
<script setup>
|
||||
const props = defineProps({
|
||||
error: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
field: {
|
||||
type: String,
|
||||
required: true
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div role="alert">
|
||||
<p :id="'valError' + field[0].toUpperCase() + field.toLowerCase().slice(1)"
|
||||
class="help is-danger"
|
||||
v-html="error" />
|
||||
</div>
|
||||
</template>
|
Reference in New Issue
Block a user