no message

This commit is contained in:
kuaifan 2025-03-18 10:23:01 +08:00
parent 8c9e928ddc
commit da7c1e40e3
4 changed files with 11 additions and 8 deletions

View File

@ -60,7 +60,7 @@
"stylus-loader": "^7.1.0",
"tinymce": "^5.10.3",
"tui-calendar-hi": "^1.15.1-5",
"view-design-hi": "^4.7.0-69",
"view-design-hi": "^4.7.0-70",
"vite": "^2.9.15",
"vite-plugin-file-copy": "^1.0.0",
"vite-plugin-require": "^1.1.10",

View File

@ -457,7 +457,7 @@
:autosize="{minRows:3,maxRows:5}"
v-model="modifyData.value"
:placeholder="$L('例如你是一个人开发的AI助手')"
show-word-limit/>
:show-word-limit="0.9"/>
</FormItem>
</Form>
<div slot="footer" class="adaption">

View File

@ -10,10 +10,11 @@
<FormItem :label="$L(field.label)" :prop="field.prop">
<template v-if="field.type === 'password'">
<Input
:maxlength="255"
:maxlength="field.maxlength || 255"
v-model="formData[field.prop]"
type="password"
:placeholder="$L(field.placeholder)"/>
:placeholder="$L(field.placeholder)"
:show-word-limit="typeof field.showWordLimit === 'undefined' ? 0.9 : field.showWordLimit"/>
</template>
<template v-else-if="field.type === 'model'">
<Select v-model="formData[field.prop]" transfer>
@ -27,13 +28,14 @@
:autosize="{minRows:2,maxRows:6}"
v-model="formData[field.prop]"
:placeholder="$L(field.placeholder)"
:show-word-limit="!!field.showWordLimit"/>
:show-word-limit="typeof field.showWordLimit === 'undefined' ? 0.9 : field.showWordLimit"/>
</template>
<template v-else>
<Input
:maxlength="500"
:maxlength="field.maxlength || 255"
v-model="formData[field.prop]"
:placeholder="$L(field.placeholder)"/>
:placeholder="$L(field.placeholder)"
:show-word-limit="typeof field.showWordLimit === 'undefined' ? 0.9 : field.showWordLimit"/>
</template>
<div v-if="field.link || field.tip" class="form-tip">
<template v-if="field.link">

View File

@ -89,6 +89,7 @@ const AISystemConfig = {
prop: "models",
type: "textarea",
maxlength: 1000,
showWordLimit: 0.9,
placeholder: "一行一个模型名称",
functions: "使用默认模型列表"
},
@ -122,7 +123,7 @@ const AISystemConfig = {
prop: "system",
type: "textarea",
maxlength: 20000,
showWordLimit: true,
showWordLimit: 0.9,
placeholder: "请输入默认提示词",
tip: "例如你是一个人开发的AI助手"
}