index.vue
1.09 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!-- 弹窗 -->
<template>
<div v-if="showTip" class="table-top-tips">
<div>
<span class="el-icon-warning"></span>
<div>
<slot>{{ content }}</slot>
</div>
</div>
<span class="el-icon-close" @click="showTip = false"></span>
</div>
</template>
<script>
export default {
name: 'title-tip',
data() {
return {}
},
props: {
showTip: {
type: Boolean,
default: true
},
content: {
type: String,
default: '--'
}
},
methods: {}
}
</script>
<style lang="scss" scoped>
.table-top-tips {
box-sizing: border-box;
margin-bottom: 16px;
width: 100%;
min-height: 40px;
line-height: 30px;
font-size: 14px;
background-color: #fdf0bb;
border: 1px solid #f9ca78;
padding: 0 16px;
border-radius: 4px;
color: rgba(0, 0, 0, 0.65);
display: flex;
align-items: center;
justify-content: space-between;
&>div{
display: flex;
align-items: center;
}
.el-icon-warning {
color: #f77315;
margin-right: 8px;
}
.el-icon-close {
margin-left: 30px;
color: #666;
cursor: pointer;
}
}
</style>