|
@@ -33,6 +33,9 @@ const props = {
|
|
type: Array as PropType<Array<any>>,
|
|
type: Array as PropType<Array<any>>,
|
|
default: () => []
|
|
default: () => []
|
|
},
|
|
},
|
|
|
|
+ links: {
|
|
|
|
+ default: () => []
|
|
|
|
+ },
|
|
labelShow: {
|
|
labelShow: {
|
|
type: Boolean as PropType<boolean>,
|
|
type: Boolean as PropType<boolean>,
|
|
default: true
|
|
default: true
|
|
@@ -117,7 +120,7 @@ const GraphChart = defineComponent({
|
|
draggable: true,
|
|
draggable: true,
|
|
force: {
|
|
force: {
|
|
repulsion: 300,
|
|
repulsion: 300,
|
|
- edgeLength: 100
|
|
|
|
|
|
+ edgeLength: 200
|
|
},
|
|
},
|
|
symbol: 'roundRect',
|
|
symbol: 'roundRect',
|
|
symbolSize: 70,
|
|
symbolSize: 70,
|
|
@@ -136,6 +139,11 @@ const GraphChart = defineComponent({
|
|
return newStr.length > 60 ? newStr.slice(0, 60) + '...' : newStr
|
|
return newStr.length > 60 ? newStr.slice(0, 60) + '...' : newStr
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ edgeSymbol: ['circle', 'arrow'],
|
|
|
|
+ edgeSymbolSize: [4, 10],
|
|
|
|
+ edgeLabel: {
|
|
|
|
+ fontSize: 20
|
|
|
|
+ },
|
|
data: props.seriesData.map((item) => {
|
|
data: props.seriesData.map((item) => {
|
|
const category = getCategory(
|
|
const category = getCategory(
|
|
Number(item.schedulePublishStatus),
|
|
Number(item.schedulePublishStatus),
|
|
@@ -175,6 +183,14 @@ const GraphChart = defineComponent({
|
|
itemStyle
|
|
itemStyle
|
|
}
|
|
}
|
|
}),
|
|
}),
|
|
|
|
+ links: props.links,
|
|
|
|
+ lineStyle: {
|
|
|
|
+ opacity: 0.9,
|
|
|
|
+ width: 2,
|
|
|
|
+ curveness: 0
|
|
|
|
+ },
|
|
|
|
+ nodeScaleRatio: 0,
|
|
|
|
+ zoom: 1,
|
|
categories: legendData
|
|
categories: legendData
|
|
}
|
|
}
|
|
]
|
|
]
|