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

v3.2
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 }"> <template #default="{ node, data }">
<span class="flex align-center" @wheel="wheel"> <span class="flex align-center" @wheel="wheel">
<component :is="iconComponent(`${data.type}-icon`)" class="mr-8" :size="18" />{{ <component
data.label :is="iconComponent(`${data.type}-icon`)"
}}</span class="mr-8"
:size="18"
:item="data"
/>{{ data.label }}</span
> >
</template> </template>
</el-cascader> </el-cascader>

View File

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