Files
axp-ui/src/components/Alert.vue
T

14 lines
274 B
Vue
Raw Normal View History

2023-07-11 10:38:21 +03:00
<script setup lang="ts">
const props = defineProps<{
type?: string,
value?: string
}>()
</script>
<template>
<div class="ui-alert" :class="props.type">
<span v-if="props.value">{{props.value}}</span>
<slot v-if="$slots.default" name="default" />
</div>
</template>