Browse Source

处理日历弹窗问题

qin_v13
herenshan112 8 months ago
parent
commit
24a9c86d6e
  1. 7
      src/components/lowCode/assistant/datePicker.vue
  2. 5
      src/components/lowCode/assistant/editTime.vue
  3. 10
      src/components/lowCode/formItem.vue

7
src/components/lowCode/assistant/datePicker.vue

@ -23,6 +23,11 @@ const value = computed({
emits('update:modelValue', newVal) emits('update:modelValue', newVal)
}, },
}); });
//
const handleClick = (event) => {
//
event.target.readOnly = true;
};
</script> </script>
<template> <template>
<el-date-picker <el-date-picker
@ -36,6 +41,8 @@ const value = computed({
:placeholder="props.data.control.placeholder" :placeholder="props.data.control.placeholder"
:value-format="props.data.valueFormat" :value-format="props.data.valueFormat"
:format="props.data.control.format" :format="props.data.control.format"
@click="handleClick"
@focus="handleClick"
/> />
</template> </template>
<style lang='scss' scoped> <style lang='scss' scoped>

5
src/components/lowCode/assistant/editTime.vue

@ -203,11 +203,14 @@ const getCurrentTime = () => {
</script> </script>
<template> <template>
<div class="inputbox"> <div class="inputbox">
<el-input v-model="value" :style="getFormItemInputStyle(configStyle,2)" :input-style="getFormItemInputStyle(configStyle,3)" placeholder="系统自动生成" disabled></el-input> <el-input v-model="value" :style="getFormItemInputStyle(configStyle,2)" :input-style="getFormItemInputStyle(configStyle,3)" placeholder="系统自动生成" disabled readonly></el-input>
</div> </div>
</template> </template>
<style lang='scss' scoped> <style lang='scss' scoped>
.inputbox{ .inputbox{
width:100%; width:100%;
input:focus {
pointer-events: none;
}
} }
</style> </style>

10
src/components/lowCode/formItem.vue

@ -553,10 +553,14 @@ const currentComponent = computed(() => {
} }
return `el-${props.data.type}` return `el-${props.data.type}`
}) })
//
const handleClick = (event) => {
//
event.target.readOnly = true;
};
</script> </script>
<template> <template>
<div> <div>{{data.type}}
<template class="form-value" v-if="type === 15"> <template class="form-value" v-if="type === 15">
2 2
</template> </template>
@ -735,6 +739,8 @@ const currentComponent = computed(() => {
? data.control.placeholder ? data.control.placeholder
: '请选择' + getLabel(data.item) : '请选择' + getLabel(data.item)
" "
@click="handleClick"
@focus="handleClick"
/> />
<!--多选--> <!--多选-->
<el-checkbox-group <el-checkbox-group

Loading…
Cancel
Save