diff --git a/src/resources/plugins/TsForm/TsFormInput.vue b/src/resources/plugins/TsForm/TsFormInput.vue index 68cda96674cb73f80e106c11a8b0242cd619e8e3..570cc170f40013ec447d9d33a259f6e4773e12aa 100755 --- a/src/resources/plugins/TsForm/TsFormInput.vue +++ b/src/resources/plugins/TsForm/TsFormInput.vue @@ -210,7 +210,9 @@ export default { this.valid(value); } } else { - // this.validMesage = ''; // enter键回车会清空校验提示信息 + if (this.type != 'textarea') { + this.validMesage = ''; // 当类型为 textarea 时,按 Enter 键回车时保留校验提示信息;其他类型在值变化时清除校验提示信息。 + } this.isValidPass = true; } },