From e40f5578322d7ecbcd45e70debef9c67184d837d Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Wed, 22 Nov 2023 10:57:27 +0800 Subject: [PATCH] 增强业务基类能力,可以转嫁整个继承链 --- forms/input/CInput.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/forms/input/CInput.vue b/forms/input/CInput.vue index 7c8d604..5d01979 100644 --- a/forms/input/CInput.vue +++ b/forms/input/CInput.vue @@ -17,7 +17,7 @@ :error="itemRes.error" :cursorSpacing="0" :value="value" - :onChange="evt => hanldeChange(evt)" + :onChange="evt => handleChange(evt)" > <slot v-if="!unit" /> <text @@ -61,7 +61,7 @@ }, }, methods: { - hanldeChange(evt) { + handleChange(evt) { // 去除首尾空格,小程序中还可以粘贴换行符进来 const changeValue = ((evt || '') + '') .replace(/^\s+|\s+$/g, '') -- Gitblit v1.9.1