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
65
| <template>
| <div class="card">
| <el-tooltip effect="dark" :content="info.nodePath" placement="top-start">
| <div class="path ellipsis">{{ info.nodePath }}</div>
| </el-tooltip>
| <div class="content">
| <div class="name">{{ info.nodeName }}</div>
| <div class="value">{{ info.nodeValue }}</div>
| </div>
| </div>
| </template>
|
| <script>
| export default {
| name: "",
| props: {
| info: {
| type: Object,
| required: true,
| },
| keyword: {
| type: String,
| default: "",
| },
| },
| data() {
| return {};
| },
| components: {},
| methods: {},
|
| mounted() {},
| };
| </script>
|
| <style scoped lang="less">
| .ellipsis {
| white-space: nowrap;
| overflow: hidden;
| text-overflow: ellipsis;
| }
| .card {
| border: 1px #00f7f9 solid;
| border-radius: 4px;
| overflow: hidden;
| .path {
| padding: 6px;
| background: #214865;
| }
| .content {
| padding: 6px;
| height: 40px;
| display: flex;
| justify-content: center;
| align-items: center;
| .name {
| flex: 1;
| padding-right: 0.4em;
| }
| .value {
| width: 8em;
| }
| }
| }
| </style>
|
|