From 9cda914242234dd0673a31c6f5dc7a90aa4ad1f1 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Mon, 14 Mar 2022 14:45:52 +0800 Subject: [PATCH] 完善数字增减框的交互功能设计,修复TaroUI数字框的输入问题 --- forms/input/CInput.vue | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/forms/input/CInput.vue b/forms/input/CInput.vue index 95f98ff..d6ea19d 100644 --- a/forms/input/CInput.vue +++ b/forms/input/CInput.vue @@ -54,6 +54,7 @@ }, methods: { hanldeChange(evt) { + // 小程序中,可以粘贴换行符进来 const changeValue = (evt || '').replace(/[\n\r]/g, ''); this.itemRes.onChange(changeValue); }, -- Gitblit v1.9.1