diff --git a/components/process-flow/custom/ApiNode.vue b/components/process-flow/custom/ApiNode.vue index 1e5a734..ce66b3e 100644 --- a/components/process-flow/custom/ApiNode.vue +++ b/components/process-flow/custom/ApiNode.vue @@ -43,6 +43,12 @@ const nodeStyle = computed(() => { } }) +// Computed for shape class +const shapeClass = computed(() => { + const shape = props.data?.shape || 'rectangle' + return `shape-${shape}` +}) + // Handle node click event const emit = defineEmits(['node-click']) const onClick = () => { @@ -52,7 +58,7 @@ const onClick = () => {