index.vue
1.14 KB
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
37
38
39
40
41
42
43
44
<template>
<div>
<el-alert class="fedexAlert" :type="type" :closable="closable" left v-if="tipList.length > 0" @close="close">
<div slot="title" class="fedexAlert-list">
<svg-icon style="width: 36px!important;height:36px!important;margin-top:25px" class="el-icon-user-solid"
:icon-class="iconClass" />
<div style="margin-top:30px">
<div style="margin-bottom:3px" v-for="(item, index) in tipList" :key="index" v-html="item"></div>
</div>
<!-- <el-button type="text">返回编辑</el-button> -->
</div>
</el-alert>
</div>
</template>
<script>
export default {
props: {
tipList: {
type: Array,
default: []
},
iconClass: {
type: String,
default: 'fedexWarning'
},
type:{
type:String,
default:'info'
},
closable:{
type:Boolean,
default:true
}
},
methods: {
close() {
this.$emit('close')
}
}
}
</script>
<style></style>