File tree Expand file tree Collapse file tree 5 files changed +24
-10
lines changed
variable-aggregation-node Expand file tree Collapse file tree 5 files changed +24
-10
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,14 @@ class AppNode extends HtmlResize.view {
3939 )
4040 }
4141
42- props . model . properties . config = nodeDict [ props . model . type ] . properties . config
42+ props . model . properties . config = this . getConfig ( props )
4343 if ( props . model . properties . height ) {
4444 props . model . height = props . model . properties . height
4545 }
4646 }
47+ getConfig ( props : any ) {
48+ return nodeDict [ props . model . type ] . properties . config
49+ }
4750 getNodeName ( nodes : Array < any > , baseName : string ) {
4851 let index = 0
4952 let name = baseName
Original file line number Diff line number Diff line change @@ -4,9 +4,12 @@ class FormNode extends AppNode {
44 constructor ( props : any ) {
55 super ( props , FormNodeVue )
66 }
7+ getConfig ( props : any ) {
8+ return props . model . properties . config
9+ }
710}
811export default {
912 type : 'form-node' ,
1013 model : AppNodeModel ,
11- view : FormNode
14+ view : FormNode ,
1215}
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ class ParameterExtractionNode extends AppNode {
55 constructor ( props : any ) {
66 super ( props , ParameterExtractionNodeVue )
77 }
8+ getConfig ( props : any ) {
9+ return props . model . properties . config
10+ }
811}
912
1013export default {
Original file line number Diff line number Diff line change @@ -2,14 +2,16 @@ import VariableAggregationNodeVue from './index.vue'
22import { AppNode , AppNodeModel } from '@/workflow/common/app-node'
33
44class VariableAggregationNode extends AppNode {
5- constructor ( props : any ) {
6- super ( props , VariableAggregationNodeVue )
7- }
5+ constructor ( props : any ) {
6+ super ( props , VariableAggregationNodeVue )
7+ }
8+ getConfig ( props : any ) {
9+ return props . model . properties . config
10+ }
811}
912
10-
1113export default {
12- type : 'variable-aggregation-node' ,
13- model : AppNodeModel ,
14- view : VariableAggregationNode ,
15- }
14+ type : 'variable-aggregation-node' ,
15+ model : AppNodeModel ,
16+ view : VariableAggregationNode ,
17+ }
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ class VariableSplittingNode extends AppNode {
55 constructor ( props : any ) {
66 super ( props , VariableSplittingNodeVue )
77 }
8+ getConfig ( props : any ) {
9+ return props . model . properties . config
10+ }
811}
912
1013export default {
You can’t perform that action at this time.
0 commit comments