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
| <template>
| <div class="contentBox">
| <div class="tipTitle">系统拓扑</div>
| <div class="diagram-stc" ref="static"></div>
| <div class="diagram-flush" ref="flush"></div>
| </div>
| </template>
|
| <script>
| import gridCircuitDiagram from "@/pages/home/topoGraphdiagram/js/gridCircuitDiagram"
| let diagram;
| export default {
| data() {
| return {
|
| }
| },
| mounted() {
| diagram = gridCircuitDiagram(this.$refs.static, this.$refs.flush);
| },
| }
| </script>
|
| <style scoped>
| .tipTitle {
| position: absolute;
| left: 40px;
| top: 20px;
| }
|
| .topoTitle::before {
| display: block;
| content: "";
| width: 12px;
| height: 24px;
| background-color: #ffe328;
| position: absolute;
| top: 50%;
| left: 0;
| padding: 0;
| transform: translateY(-12px);
| }
| </style>
|
|