Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f76d85c

Browse files
committed
feat: update flowchart
1 parent 4363e0a commit f76d85c

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

‎src/components/FlowChart.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default {
2323
color: '#eeeeee'
2424
}
2525
},
26-
adjustEdge: false,
26+
//adjustEdge: false,
2727
hoverOutline: false,
2828
edgeSelectedOutline: false,
2929
keyboard: {
@@ -84,12 +84,6 @@ export default {
8484
x: 1020,
8585
y: 300,
8686
text: 'function'
87-
},
88-
{
89-
id: 'node_8',
90-
type: 'vue-html',
91-
x: 400,
92-
y: 100
9387
}
9488
],
9589
edges: [

‎src/components/engine/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class Engine {
2+
run() {}
3+
initFlow() {}
4+
}

‎src/components/node-red/nodes/BaseNode.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class RedNodeModel extends RectNodeModel {
1111
this.width = 100;
1212
this.height = 30;
1313
this.radius = 5;
14-
this.text.editable = false;
14+
// this.text.editable = false;
1515
this.text.x = this.x + 10;
1616
this.iconPosition = ''; // icon位置,left表示左边,'right'表示右边
1717
}
@@ -28,6 +28,10 @@ class RedNodeModel extends RectNodeModel {
2828
this.width = width;
2929
}
3030
}
31+
updateText(val) {
32+
super.updateText(val)
33+
this.setAttributes();
34+
}
3135
/**
3236
* 重写节点样式
3337
*/

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /