mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: update tool param name
This commit is contained in:
parent
679276bd17
commit
5321b5d43e
|
|
@ -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" />
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue