diff --git a/src/editor/text-box/input/input.tsx b/src/editor/text-box/input/input.tsx index b0f198a7d0f1a95699982c69881f0d145df71200..939fc8b4067cfe1df82d46c6cd7054c66cef9425 100644 --- a/src/editor/text-box/input/input.tsx +++ b/src/editor/text-box/input/input.tsx @@ -35,8 +35,8 @@ import './input.scss'; * * @description 使用el-input组件,用于数据录入,通过鼠标或键盘输入字符。支持编辑器类型包含:`文本框`、`多行输入框`、`多行输入(10行)`、`密码框` * @primary - * @editorparams {name:SHOWLIMIT,parameterType:boolean,defaultvalue:true,description:el-input组件的show-word-limit属性,当编辑器类型为多行输入框、多行输入(10行)时生效} - * @editorparams {name:ISAUTO,parameterType:boolean,defaultvalue:false,description:el-input组件的autosize属性,文本域是否自适应高度,当编辑器类型为多行输入框、多行输入(10行)时生效} + * @editorparams {name:showlimit,parameterType:boolean,defaultvalue:true,description:el-input组件的show-word-limit属性,控制文本域是否显示字数限制,当编辑器类型为多行输入框、多行输入(10行)时生效} + * @editorparams {name:isauto,parameterType:boolean,defaultvalue:false,description:el-input组件的autosize属性,控制文本域高度是否自适应,当编辑器类型为多行输入框、多行输入(10行)时生效} * @editorparams {name:autocomplete,parameterType:boolean,defaultvalue:false,description:el-input组件的autocomplete属性,是否允许自动填充} * @editorparams {name:srfaiappendcurdata,parameterType:boolean,defaultvalue:false,description:在打开AI功能时,该参数用于判断是否传入对象参数,主要用于在请求历史记录时,附加当前参数} * @editorparams {name:srfaiappendcurcontent,parameterType:string,description:在打开AI功能时,如果该参数存在值,会将其传入编辑内容作为用户消息,主要用于在请求历史记录后,附加当前编辑内容作为用户消息} @@ -72,10 +72,16 @@ export const IBizInput = defineComponent({ } if (c.editorParams) { - if (c.editorParams.SHOWLIMIT === 'false') { + if ( + c.editorParams.SHOWLIMIT === 'false' || + c.editorParams.showlimit === 'false' + ) { showLimit.value = false; } - if (c.editorParams.ISAUTO === 'true') { + if ( + c.editorParams.ISAUTO === 'true' || + c.editorParams.isauto === 'true' + ) { isAuto.value = true; } }