mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
chore: add description field to FieldFormDialog
--story=1019827 --user=刘瑞斌 工具- 使用参数同启用参数一样增加 提示信息字段,目前参数没有说明,不方便使用 https://www.tapd.cn/62980211/s/1782428
This commit is contained in:
parent
1b56707503
commit
8e8948cf87
|
|
@ -28,6 +28,17 @@
|
|||
<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('views.tool.form.source.label')">
|
||||
<el-select v-model="form.source">
|
||||
<el-option :label="$t('views.tool.form.source.reference')" value="reference" />
|
||||
|
|
@ -64,6 +75,7 @@ const isEdit = ref(false)
|
|||
const form = ref<any>({
|
||||
name: '',
|
||||
type: typeOptions[0],
|
||||
desc: '',
|
||||
source: 'reference',
|
||||
is_required: true,
|
||||
})
|
||||
|
|
@ -85,6 +97,7 @@ watch(dialogVisible, (bool) => {
|
|||
form.value = {
|
||||
name: '',
|
||||
type: typeOptions[0],
|
||||
desc: '',
|
||||
source: 'reference',
|
||||
is_required: true,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue