<template>
<div>
<!-- 这里是要渲染的图表 -->
<div :id="chartId" style="width: 100%;height: 100%;"></div>
</div>
</template>
<script>
export default {
name: "topology",
props: ['chartId','titleText'],
data() {
return {
graph: {
// 数据
nodes: [
{
id: 'test1',
name: 'test1',
draggable: false
},{
id: 'test2',
name: 'test2',
draggable: false,
category: 1
},{
id: 'test3',
name: 'test3',
draggable: false,
category: 1
}
],
// 指向
links: [
{
s
echarts关系拓扑图
最新推荐文章于 2024-04-24 19:36:07 发布