refactor to UI components

This commit is contained in:
2023-05-26 00:50:19 +02:00
parent 0f48494469
commit c76bf3f6d8
20 changed files with 160 additions and 78 deletions

View File

@@ -7,12 +7,12 @@ const props = withDefaults(defineProps<Props>(), {
})
const styleClass = computed(() => {
const colorClass = `alert-${props.color}`
const colorClass = `dui-alert-${props.color}`
return [colorClass]
})
</script>
<template>
<div class="alert shadow-lg" :class="styleClass">
<div class="dui-alert shadow-lg" :class="styleClass">
<div><slot></slot></div>
</div>
</template>