都是静态数据,本地预览没啥问题。
到了线上就成这样了
node节点没加载出来,控制爱也不报错,版本也没冲突,插件看起来能跑,毕竟渲染出来了一部分。
show() {
console.log(dataJson,'this.dataJson = dataJson1')
this.showTimer && clearTimeout(this.showTimer)
this.showTimer = setTimeout(() => {
this.dataJson = dataJson
console.log(this.dataJson,'this.dataJson = dataJson')
this.visible1 = false
// 初始化 graph
this.initGraph()
// 按钮绑定
// this.keyBindFn()
// 执行
this.startFn()
clearTimeout(this.showTimer)
}, 500)
},
Graph.registerNode(
'dag-condition',
{
inherit: 'vue-shape',
width: 180,
height: 36,
component: {
template: `<condition />`,
components: {
condition
}
},
ports: {
groups: {
top: {
position: 'top',
attrs:
{
circle: {
r: 4,
magnet: true,
stroke:
'#C2C8D5',
strokeWidth: 1,
fill: '#fff'
}
}
},
bottom: {
position: 'bottom',
attrs: {
circle: {
r: 4,
magnet:
true,
stroke: '#C2C8D5',
strokeWidth: 1,
fill: '#fff'
}
}
}
}
},
children: {
groups: {
}
}
},
true
)