Skip to content

Commit 4259b9d

Browse files
committed
chore: add description field to FieldFormDialog
--story=1019827 --user=刘瑞斌 工具- 使用参数同启用参数一样增加 提示信息字段,目前参数没有说明,不方便使用 https://www.tapd.cn/62980211/s/1782428
1 parent 1b56707 commit 4259b9d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@
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>
3142
<el-form-item :label="$t('views.tool.form.source.label')">
3243
<el-select v-model="form.source">
3344
<el-option :label="$t('views.tool.form.source.reference')" value="reference" />
@@ -64,6 +75,7 @@ const isEdit = ref(false)
6475
const form = ref<any>({
6576
name: '',
6677
type: typeOptions[0],
78+
desc: '',
6779
source: 'reference',
6880
is_required: true,
6981
})
@@ -85,6 +97,7 @@ watch(dialogVisible, (bool) => {
8597
form.value = {
8698
name: '',
8799
type: typeOptions[0],
100+
desc: '',
88101
source: 'reference',
89102
is_required: true,
90103
}

0 commit comments

Comments
 (0)