feat: 工作编排
Some checks failed
sync2gitee / repo-sync (push) Has been cancelled
Typos Check / Spell Check with Typos (push) Has been cancelled

This commit is contained in:
wangdan-fit2cloud 2024-06-07 18:25:27 +08:00
parent e80f58dd7b
commit bb9672f1f8

View File

@ -1,13 +1,18 @@
<template>
<el-cascader :options="options" @visible-change="visibleChange" v-bind="$attrs" separator=" > ">
<template #default="{ node, data }">
<span>{{ data.label }}</span>
<span class="flex align-center">
<component :is="iconComponent(`${data.type}-icon`)" class="mr-8" :size="18" />{{
data.label
}}</span
>
</template>
</el-cascader>
</template>
<script setup lang="ts">
import { ref, computed } from 'vue'
import { iconComponent } from '../icons/utils'
const props = defineProps<{
nodeModel: any
}>()
@ -29,6 +34,7 @@ function getIncomingNode(id: string) {
options.value.unshift({
value: item.id,
label: item.properties.stepName,
type: item.type,
children: item.properties?.fields || []
})
}