2017-01-25 21:29:23 -08:00
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="col-md-12" :class="alertType">
|
|
|
|
<div class="alert" :class="alertClassName">
|
|
|
|
<button type="button" class="close" @click="hideEvent">×</button>
|
2021-09-26 01:11:08 -07:00
|
|
|
<i class="fas fa-check faa-pulse animated" aria-hidden="true" v-show="alertType == 'success'"></i>
|
2017-01-25 21:29:23 -08:00
|
|
|
<strong>{{ title }} </strong>
|
|
|
|
<slot></slot>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
/*
|
|
|
|
* The component's data.
|
|
|
|
*/
|
|
|
|
props: ['alertType', 'title'],
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
alertClassName() {
|
|
|
|
return 'alert-' + this.alertType;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
hideEvent() {
|
|
|
|
this.$emit('hide');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|