VueRouter, Pinia state management, add pages, design preferences page
This commit is contained in:
17
software/src/components/alertBanner.vue
Normal file
17
software/src/components/alertBanner.vue
Normal file
@@ -0,0 +1,17 @@
|
||||
<script setup lang="ts">
|
||||
import BannerModel from '@/data/models/bannerModel';
|
||||
|
||||
const alertBanner = defineModel("alertBanner", { required: true, type: BannerModel })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<v-expand-transition>
|
||||
<v-row v-if="alertBanner.show">
|
||||
<v-col>
|
||||
<v-alert v-model="alertBanner.show" :color="alertBanner.color" :icon="alertBanner.icon" closable>
|
||||
{{ alertBanner.message }}
|
||||
</v-alert>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-expand-transition>
|
||||
</template>
|
||||
Reference in New Issue
Block a user