fix: update tool param name

This commit is contained in:
wangdan-fit2cloud 2025-10-10 11:01:59 +08:00 committed by CaptainB
parent 679276bd17
commit 5321b5d43e
3 changed files with 33 additions and 19 deletions

View File

@ -28,17 +28,15 @@
<el-option v-for="item in typeOptions" :key="item" :label="item" :value="item" />
</el-select>
</el-form-item>
<el-form-item :label="$t('views.tool.form.toolDescription.label')">
<el-input
v-model="form.desc"
type="textarea"
:placeholder="$t('components.folder.descriptionPlaceholder')"
maxlength="128"
show-word-limit
:autosize="{ minRows: 3 }"
@blur="form.desc = form.desc?.trim()"
/>
</el-form-item>
<el-form-item :label="$t('dynamicsForm.paramForm.tooltip.label')">
<el-input
v-model="form.desc"
:placeholder="$t('dynamicsForm.paramForm.tooltip.placeholder')"
:maxlength="128"
show-word-limit
@blur="form.desc = form.desc?.trim()"
/>
</el-form-item>
<el-form-item :label="$t('views.tool.form.source.label')">
<el-select v-model="form.source">
<el-option :label="$t('views.tool.form.source.reference')" value="reference" />

View File

@ -27,13 +27,21 @@
>
<template #label>
<div class="flex-between">
<div class="flex">
<span class="flex">
<div class="flex align-center">
<div class="mr-4">
<auto-tooltip :content="item.name" style="max-width: 130px">
{{ item.name }}
</auto-tooltip>
<span class="color-danger" v-if="item.is_required">*</span></span
>
</div>
<el-tooltip v-if="item.desc" effect="dark" placement="right" popper-class="max-w-200">
<template #content>
{{ item.desc }}
</template>
<AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
</el-tooltip>
<span class="color-danger" v-if="item.is_required">*</span>
<el-tag type="info" class="info-tag ml-4">{{ item.type }}</el-tag>
</div>
</div>

View File

@ -32,13 +32,21 @@
>
<template #label>
<div class="flex-between">
<div class="flex">
<span class="flex">
<div class="flex align-center">
<div class="mr-4">
<auto-tooltip :content="item.name" style="max-width: 130px">
{{ item.name }}
</auto-tooltip>
<span class="color-danger" v-if="item.is_required">*</span>
</span>
</div>
<el-tooltip v-if="item.desc" effect="dark" placement="right" popper-class="max-w-200">
<template #content>
{{ item.desc }}
</template>
<AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
</el-tooltip>
<span class="color-danger" v-if="item.is_required">*</span>
<el-tag type="info" class="info-tag ml-4">{{ item.type }}</el-tag>
</div>
<div>