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; +}; - + {{data.type}} 2 @@ -735,6 +739,8 @@ const currentComponent = computed(() => { ? data.control.placeholder : '请选择' + getLabel(data.item) " + @click="handleClick" + @focus="handleClick" />