fix: In workflow applications, the display of custom icons for sub applications and tools in the box below the variable selection is incorrect (#4168)

This commit is contained in:
shaohuzhang1 2025-10-10 13:55:16 +08:00 committed by GitHub
parent f59648b817
commit 6faa72d0b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View File

@ -10,9 +10,12 @@
>
<template #default="{ node, data }">
<span class="flex align-center" @wheel="wheel">
<component :is="iconComponent(`${data.type}-icon`)" class="mr-8" :size="18" />{{
data.label
}}</span
<component
:is="iconComponent(`${data.type}-icon`)"
class="mr-8"
:size="18"
:item="data"
/>{{ data.label }}</span
>
</template>
</el-cascader>

View File

@ -75,6 +75,7 @@ class AppNode extends HtmlResize.view {
}
result.push({
value: this.props.model.id,
icon: this.props.model.properties.node_data?.icon,
label: this.props.model.properties.stepName,
type: this.props.model.type,
children: this.props.model.properties?.config?.fields || [],