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

g6图谱修复

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