File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
ui/src/workflow/nodes/form-node Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,24 @@ class FormNode extends AppNode {
44 constructor ( props : any ) {
55 super ( props , FormNodeVue )
66 }
7+ get_node_field_list ( ) {
8+ const result = [ ]
9+ const fields = this . props . model . properties ?. config ?. fields || [ ]
10+ let otherFields = [ ]
11+ try {
12+ otherFields = this . props . model . properties . node_data . form_field_list . map ( ( item : any ) => ( {
13+ label : typeof item . label == 'string' ? item . label : item . label . label ,
14+ value : item . field
15+ } ) )
16+ } catch ( e ) { }
17+ result . push ( {
18+ value : this . props . model . id ,
19+ label : this . props . model . properties . stepName ,
20+ type : this . props . model . type ,
21+ children : [ ...fields , ...otherFields ]
22+ } )
23+ return result
24+ }
725}
826export default {
927 type : 'form-node' ,
You can’t perform that action at this time.
0 commit comments