提交 bcccf598 authored 作者: 付康's avatar 付康

合并分支 'pre' 到 'master'

lyq-修复实体清单图谱打包无图问题 查看合并请求 !140
差异被折叠。
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
"author": "", "author": "",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@antv/g6": "^4.8.24",
"@element-plus/icons-vue": "^2.3.1", "@element-plus/icons-vue": "^2.3.1",
"@kangc/v-md-editor": "^2.3.18", "@kangc/v-md-editor": "^2.3.18",
"@microsoft/fetch-event-source": "^2.0.1", "@microsoft/fetch-event-source": "^2.0.1",
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<script setup> <script setup>
import { ref, onMounted, onUnmounted, watch, nextTick } from 'vue' import { ref, onMounted, onUnmounted, watch, nextTick } from 'vue'
import G6 from '@antv/g6' import { Graph, TreeGraph } 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'
...@@ -107,7 +107,7 @@ const initNormalGraph = (layoutType, width, height) => { ...@@ -107,7 +107,7 @@ const initNormalGraph = (layoutType, width, height) => {
alphaMin: 0.001 alphaMin: 0.001
} }
graphInstance.value = new G6.Graph({ graphInstance.value = new Graph({
container: containerRef.value, container: containerRef.value,
width, width,
height, height,
...@@ -236,7 +236,7 @@ const initCircularGraph = (width, height) => { ...@@ -236,7 +236,7 @@ const initCircularGraph = (width, height) => {
centerNode.fy = centerY centerNode.fy = centerY
} }
graphInstance.value = new G6.Graph({ graphInstance.value = new Graph({
container: containerRef.value, container: containerRef.value,
width, width,
height, height,
...@@ -342,7 +342,7 @@ const initTreeGraph = (width, height) => { ...@@ -342,7 +342,7 @@ const initTreeGraph = (width, height) => {
if (!treeDataSource) return if (!treeDataSource) return
graphInstance.value = new G6.TreeGraph({ graphInstance.value = new TreeGraph({
container: containerRef.value, container: containerRef.value,
width, width,
height, height,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论