index.vue
727 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
37
38
<template>
<div class="table-tooltip">
<el-popover placement="top" width="200" trigger="hover" :content="content">
<el-button slot="reference" icon="el-icon-warning" circle></el-button>
</el-popover>
</div>
</template>
<script>
export default {
name: 'table-tooltip',
props: {
content: {
type: String,
default: ''
}
}
}
</script>
<style scope>
.table-tooltip {
padding-right: 0 !important;
}
.table-tooltip .el-button {
border: none !important;
}
.table-tooltip .el-button.is-circle {
padding: 0 !important;
}
.table-tooltip .el-button:focus,
.table-tooltip .el-button:hover {
background-color: transparent;
}
.table-tooltip .el-button:focus {
color: initial;
}
</style>