mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复模型添加参数,各个字段没有限制长度,并且在应用设置中显示样式错误
This commit is contained in:
parent
292eb994bc
commit
ff164e60f6
|
|
@ -11,10 +11,10 @@
|
|||
<el-input v-model="form_data.field" placeholder="请输入参数" />
|
||||
</el-form-item>
|
||||
<el-form-item label="显示名称" :required="true" prop="label" :rules="rules.label">
|
||||
<el-input v-model="form_data.label" placeholder="请输入显示名称" />
|
||||
<el-input v-model="form_data.label" :maxlength="64" placeholder="请输入显示名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="参数提示说明">
|
||||
<el-input v-model="form_data.tooltip" placeholder="请输入参数提示说明" />
|
||||
<el-input v-model="form_data.tooltip" :maxlength="128" placeholder="请输入参数提示说明" />
|
||||
</el-form-item>
|
||||
<el-form-item label="是否必填" :required="true" prop="required" :rules="rules.required">
|
||||
<el-switch v-model="form_data.required" :active-value="true" :inactive-value="false" />
|
||||
|
|
|
|||
|
|
@ -4,7 +4,9 @@
|
|||
<span>{{ label }}</span>
|
||||
</div>
|
||||
<el-tooltip effect="dark" placement="right">
|
||||
<template #content>{{ tooltip }}</template>
|
||||
<template #content
|
||||
><div style="width: 200px">{{ tooltip }}</div></template
|
||||
>
|
||||
<AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue