File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
ui/src/workflow/nodes/loop-body-node Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,12 @@ function enlargeHandle() {
217217 props .nodeModel .setHeight (height .value )
218218 }
219219}
220+ const zoom = () => {
221+ if (enlarge .value ) {
222+ enlargeHandle ()
223+ }
224+ }
225+ defineExpose ({ close , zoom })
220226 </script >
221227<style lang="scss" scoped>
222228.workflow-node-container {
Original file line number Diff line number Diff line change 11<template >
2- <LoopBodyContainer :nodeModel =" nodeModel" >
2+ <LoopBodyContainer :nodeModel =" nodeModel" ref = " LoopBodyContainerRef " >
33 <div ref =" containerRef" @wheel.stop style =" height : 100% ; width : 100% " ></div >
44 </LoopBodyContainer >
55</template >
@@ -19,7 +19,7 @@ const loop_workflow_mode = inject('loopWorkflowMode') || WorkflowMode.Applicatio
1919const nodes: any = import .meta .glob (' @/workflow/nodes/**/index.ts' , { eager: true })
2020const props = defineProps <{ nodeModel: any }>()
2121const containerRef = ref ()
22-
22+ const LoopBodyContainerRef = ref < InstanceType < typeof LoopBodyContainer >>()
2323const validate = () => {
2424 const workflow = new WorkFlowInstance (lf .value .getGraphData (), WorkflowMode .ApplicationLoop )
2525 return Promise .all (lf .value .graphModel .nodes .map ((element : any ) => element ?.validate ?.()))
@@ -159,6 +159,7 @@ const renderGraphData = (data?: any) => {
159159}
160160
161161const loopLayout = () => {
162+ LoopBodyContainerRef .value ?.zoom ()
162163 lf .value ?.extension ?.dagre .layout ()
163164}
164165onMounted (() => {
You can’t perform that action at this time.
0 commit comments