Skip to content

Commit 5cdc238

Browse files
shaohuzhang1liuruibin
authored andcommitted
fix: In workflow applications, the display of custom icons for sub applications and tools in the box below the variable selection is incorrect (#4168)
1 parent 20e8b04 commit 5cdc238

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

ui/src/workflow/common/NodeCascader.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010
>
1111
<template #default="{ node, data }">
1212
<span class="flex align-center" @wheel="wheel">
13-
<component :is="iconComponent(`${data.type}-icon`)" class="mr-8" :size="18" />{{
14-
data.label
15-
}}</span
13+
<component
14+
:is="iconComponent(`${data.type}-icon`)"
15+
class="mr-8"
16+
:size="18"
17+
:item="data"
18+
/>{{ data.label }}</span
1619
>
1720
</template>
1821
</el-cascader>

ui/src/workflow/common/app-node.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ class AppNode extends HtmlResize.view {
7575
}
7676
result.push({
7777
value: this.props.model.id,
78+
icon: this.props.model.properties.node_data?.icon,
7879
label: this.props.model.properties.stepName,
7980
type: this.props.model.type,
8081
children: this.props.model.properties?.config?.fields || [],

0 commit comments

Comments
 (0)