提交 f968c6d2 authored 作者: 刘宇琪's avatar 刘宇琪

g6图谱修复

上级 85dc600b
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<script setup> <script setup>
import { ref, onMounted, onUnmounted, watch, nextTick } from 'vue' import { ref, onMounted, onUnmounted, watch, nextTick } from 'vue'
import { Graph, TreeGraph } from '@antv/g6' import G6 from '@antv/g6'
import { Close } from '@element-plus/icons-vue' import { Close } from '@element-plus/icons-vue'
import echartsIcon01 from '../assets/echartsicon01.png' import echartsIcon01 from '../assets/echartsicon01.png'
import echartsIcon02 from '../assets/echartsicon02.png' import echartsIcon02 from '../assets/echartsicon02.png'
...@@ -103,7 +103,7 @@ const initNormalGraph = (layoutType, width, height) => { ...@@ -103,7 +103,7 @@ const initNormalGraph = (layoutType, width, height) => {
alphaMin: 0.001 alphaMin: 0.001
} }
graphInstance.value = new Graph({ graphInstance.value = new G6.Graph({
container: containerRef.value, container: containerRef.value,
width, width,
height, height,
...@@ -232,7 +232,7 @@ const initCircularGraph = (width, height) => { ...@@ -232,7 +232,7 @@ const initCircularGraph = (width, height) => {
centerNode.fy = centerY centerNode.fy = centerY
} }
graphInstance.value = new Graph({ graphInstance.value = new G6.Graph({
container: containerRef.value, container: containerRef.value,
width, width,
height, height,
...@@ -338,7 +338,7 @@ const initTreeGraph = (width, height) => { ...@@ -338,7 +338,7 @@ const initTreeGraph = (width, height) => {
if (!treeDataSource) return if (!treeDataSource) return
graphInstance.value = new TreeGraph({ graphInstance.value = new G6.TreeGraph({
container: containerRef.value, container: containerRef.value,
width, width,
height, height,
...@@ -793,4 +793,4 @@ defineExpose({ ...@@ -793,4 +793,4 @@ defineExpose({
} }
} }
} }
</style> </style>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论