feat(ui): step roles, numbers and run trace on workflow canvas
This commit is contained in:
1 parent
91bfb0ee44
commit
8a2354447e
6 files changed
+117
-66
No files matched your search
@@ -5,7 +5,7 @@ import { BaseEdge, EdgeLabelRenderer, getSmoothStepPath, type EdgeProps } from "
|
||||
import AddStepMenu from "./AddStepMenu.vue";
|
||||
import type { StepPath } from "./workflow-edit";
|
||||
|
||||
const props = defineProps<EdgeProps<{ insertAfter?: StepPath; types: string[]; editable: boolean; onInsert: (after: StepPath, type: string) => void }>>();
|
||||
const props = defineProps<EdgeProps<{ trace?: string; insertAfter?: StepPath; types: string[]; editable: boolean; onInsert: (after: StepPath, type: string) => void }>>();
|
||||
|
||||
const path = computed(() =>
|
||||
getSmoothStepPath({
|
||||
@@ -21,7 +21,7 @@ const path = computed(() =>
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<BaseEdge :id="id" :path="path[0]" class="workflow-flow-edge" />
|
||||
<BaseEdge :id="id" :path="path[0]" :class="['workflow-flow-edge', data?.trace && `trace-${data.trace}`]" />
|
||||
<EdgeLabelRenderer v-if="data?.editable && data.insertAfter !== undefined">
|
||||
<div
|
||||
class="workflow-insert absolute"
|
||||
|
||||
Reference in new issue
Block a user