|
@@ -25,10 +25,12 @@ export default {
|
|
|
y: 40,
|
|
|
children: [
|
|
|
{
|
|
|
- name: 'node2'
|
|
|
+ name: 'node2',
|
|
|
+ label: '同意'
|
|
|
},
|
|
|
{
|
|
|
- name: 'node3'
|
|
|
+ name: 'node3',
|
|
|
+ label: '拒绝'
|
|
|
}
|
|
|
]
|
|
|
},
|
|
@@ -36,7 +38,12 @@ export default {
|
|
|
x: 100,
|
|
|
y: 320,
|
|
|
name: 'node2',
|
|
|
- children: []
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ name: 'node3',
|
|
|
+ label: '拒绝'
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
x: 660,
|
|
@@ -115,7 +122,7 @@ export default {
|
|
|
connector: 'Flowchart',
|
|
|
// 添加两个标签和箭头
|
|
|
overlays: [
|
|
|
- { type: 'Label', options: { label: 'Connection 1', location: 0.5 } },
|
|
|
+ { type: 'Label', options: { label: children.label, location: 0.5 } },
|
|
|
{ type: 'Arrow', options: { location: 1 } }
|
|
|
]
|
|
|
})
|
|
@@ -200,4 +207,9 @@ export default {
|
|
|
font-size: 24px;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
+/deep/.jtk-overlay{
|
|
|
+color: #1890ff;
|
|
|
+font-size: 18px;
|
|
|
+z-index: 9;
|
|
|
+}
|
|
|
</style>
|