From 24a9c86d6eec6016ae9c91c8515b3101ddb981ad Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Mon, 17 Mar 2025 15:42:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=97=A5=E5=8E=86=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/lowCode/assistant/datePicker.vue | 7 +++++++ src/components/lowCode/assistant/editTime.vue | 5 ++++- src/components/lowCode/formItem.vue | 10 ++++++++-- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/components/lowCode/assistant/datePicker.vue b/src/components/lowCode/assistant/datePicker.vue index a7c8742..78322d0 100644 --- a/src/components/lowCode/assistant/datePicker.vue +++ b/src/components/lowCode/assistant/datePicker.vue @@ -23,6 +23,11 @@ const value = computed({ emits('update:modelValue', newVal) }, }); +//阻止唤起键盘 +const handleClick = (event) => { + // 阻止输入框默认行为 + event.target.readOnly = true; +}; \ No newline at end of file diff --git a/src/components/lowCode/formItem.vue b/src/components/lowCode/formItem.vue index 2ffe23e..6525944 100644 --- a/src/components/lowCode/formItem.vue +++ b/src/components/lowCode/formItem.vue @@ -553,10 +553,14 @@ const currentComponent = computed(() => { } return `el-${props.data.type}` }) - +//阻止唤起键盘 +const handleClick = (event) => { + // 阻止输入框默认行为 + event.target.readOnly = true; +};