vue components refactoring

This commit is contained in:
Čarodej
2022-04-13 16:19:10 +02:00
parent 6a4bfa8bfe
commit 338f8664b7
251 changed files with 1068 additions and 1943 deletions

View File

@@ -0,0 +1,26 @@
<template>
<div :class="{ 'mb-6 sm:mb-7': !isLast }">
<!--Label for input-->
<label v-if="title" class="mb-1.5 block text-sm font-bold text-gray-700 dark:text-gray-200">
{{ title }}:
</label>
<!--Form element-->
<slot />
<!--Input Description-->
<span v-if="error" class="pt-2 text-xs dark:text-rose-600 text-rose-600">
{{ error }}
</span>
<!--Input Description-->
<small v-if="description" class="block pt-2 text-xs leading-4 dark:text-gray-500 text-gray-500" v-html="description"></small>
</div>
</template>
<script>
export default {
name: 'AppInputText',
props: ['description', 'isLast', 'title', 'error'],
}
</script>