forked from misterGF/CoPilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlert.vue
More file actions
36 lines (35 loc) · 686 Bytes
/
Copy pathAlert.vue
File metadata and controls
36 lines (35 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<template>
<div :class="['alert', 'alert-' + type, {'alert-dismissible': dismissible}]">
<button v-if="dismissible" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h4>
<i :class="['icon', iconClasses]"></i>
<span>{{title}}</span>
</h4>
<span>
<slot></slot>
</span>
</div>
</template>
<script>
export default {
name: 'Alert',
props: {
dismissible: {
type: Boolean,
default: true
},
type: {
type: String,
default: 'info'
},
iconClasses: {
type: Array,
default: []
},
title: {
type: String,
required: true
}
}
}
</script>