Skip to content

Commit c795cb3

Browse files
fix: update tool param name
1 parent f3ef42b commit c795cb3

File tree

3 files changed

+33
-19
lines changed

3 files changed

+33
-19
lines changed

ui/src/views/tool/component/FieldFormDialog.vue

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,15 @@
2828
<el-option v-for="item in typeOptions" :key="item" :label="item" :value="item" />
2929
</el-select>
3030
</el-form-item>
31-
<el-form-item :label="$t('views.tool.form.toolDescription.label')">
32-
<el-input
33-
v-model="form.desc"
34-
type="textarea"
35-
:placeholder="$t('components.folder.descriptionPlaceholder')"
36-
maxlength="128"
37-
show-word-limit
38-
:autosize="{ minRows: 3 }"
39-
@blur="form.desc = form.desc?.trim()"
40-
/>
41-
</el-form-item>
31+
<el-form-item :label="$t('dynamicsForm.paramForm.tooltip.label')">
32+
<el-input
33+
v-model="form.desc"
34+
:placeholder="$t('dynamicsForm.paramForm.tooltip.placeholder')"
35+
:maxlength="128"
36+
show-word-limit
37+
@blur="form.desc = form.desc?.trim()"
38+
/>
39+
</el-form-item>
4240
<el-form-item :label="$t('views.tool.form.source.label')">
4341
<el-select v-model="form.source">
4442
<el-option :label="$t('views.tool.form.source.reference')" value="reference" />

ui/src/workflow/nodes/tool-lib-node/index.vue

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,21 @@
2727
>
2828
<template #label>
2929
<div class="flex-between">
30-
<div class="flex">
31-
<span class="flex">
30+
<div class="flex align-center">
31+
<div class="mr-4">
3232
<auto-tooltip :content="item.name" style="max-width: 130px">
3333
{{ item.name }}
3434
</auto-tooltip>
35-
<span class="color-danger" v-if="item.is_required">*</span></span
36-
>
35+
</div>
36+
<el-tooltip v-if="item.desc" effect="dark" placement="right" popper-class="max-w-200">
37+
<template #content>
38+
{{ item.desc }}
39+
</template>
40+
<AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
41+
</el-tooltip>
42+
43+
<span class="color-danger" v-if="item.is_required">*</span>
44+
3745
<el-tag type="info" class="info-tag ml-4">{{ item.type }}</el-tag>
3846
</div>
3947
</div>

ui/src/workflow/nodes/tool-node/index.vue

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,21 @@
3232
>
3333
<template #label>
3434
<div class="flex-between">
35-
<div class="flex">
36-
<span class="flex">
35+
<div class="flex align-center">
36+
<div class="mr-4">
3737
<auto-tooltip :content="item.name" style="max-width: 130px">
3838
{{ item.name }}
3939
</auto-tooltip>
40-
<span class="color-danger" v-if="item.is_required">*</span>
41-
</span>
40+
</div>
41+
<el-tooltip v-if="item.desc" effect="dark" placement="right" popper-class="max-w-200">
42+
<template #content>
43+
{{ item.desc }}
44+
</template>
45+
<AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
46+
</el-tooltip>
47+
48+
<span class="color-danger" v-if="item.is_required">*</span>
49+
4250
<el-tag type="info" class="info-tag ml-4">{{ item.type }}</el-tag>
4351
</div>
4452
<div>

0 commit comments

Comments
 (0)