mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-04 22:31:58 +01:00
20 lines
431 B
Vue
20 lines
431 B
Vue
<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> |