mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-17 02:11:34 +00:00
30 lines
435 B
Vue
30 lines
435 B
Vue
<template>
|
|
<transition name="ds-input-error">
|
|
<div
|
|
class="ds-input-error"
|
|
v-show="!!error">
|
|
{{ error }}
|
|
</div>
|
|
</transition>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
|
|
/**
|
|
* @version 1.0.0
|
|
* @private
|
|
*/
|
|
export default defineComponent({
|
|
name: 'DsInputError',
|
|
|
|
props: {
|
|
error: {
|
|
type: String,
|
|
required: false,
|
|
default: null
|
|
}
|
|
},
|
|
});
|
|
</script>
|