diff --git a/src/resources/plugins/TsForm/TsFormInput.vue b/src/resources/plugins/TsForm/TsFormInput.vue index 7cac1f9065b485e6b7b7dd2bf58f49ad76476881..42b8284a5160d9dc4f4a7fe69c8f46a86ee572c0 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; } },