修改拓扑图
This commit is contained in:
parent
e24ca3ef6a
commit
65e2f75b60
@ -250,9 +250,9 @@ onMounted(() => {
|
|||||||
graph.on('node:click', (row:any) => {
|
graph.on('node:click', (row:any) => {
|
||||||
|
|
||||||
let node:any = row.node
|
let node:any = row.node
|
||||||
|
|
||||||
if( node.store.data.shape == 'rect'){
|
|
||||||
nodeId.value = node.id
|
nodeId.value = node.id
|
||||||
|
if( node.store.data.shape == 'rect'){
|
||||||
|
|
||||||
styleInfo.value = {
|
styleInfo.value = {
|
||||||
name: node.store.data.attrs.label.text,
|
name: node.store.data.attrs.label.text,
|
||||||
color: node.store.data.attrs.body.stroke,
|
color: node.store.data.attrs.body.stroke,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user