This commit is contained in:
2023-07-26 14:07:17 +03:00
parent 288c5cbb7e
commit 6179e53af7
10 changed files with 77 additions and 54 deletions
+3 -3
View File
@@ -1,13 +1,13 @@
<script setup lang="ts">
const props = defineProps<{
type?: string,
color?: 'primary' | 'accent' | 'info' | 'success' | 'warning' | 'error'
value?: string
}>()
</script>
<template>
<div class="ui-alert" :class="props.type">
<span v-if="props.value">{{props.value}}</span>
<div class="ui-alert" :class="props.color">
{{ props.value }}
<slot v-if="$slots.default" name="default" />
</div>
</template>