From bbf650c05d393447f8ff4afb7e6e21f109281c7b Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Thu, 17 Aug 2023 16:48: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