|
|
|
@ -23,6 +23,11 @@ const value = computed({ |
|
|
|
emits('update:modelValue', newVal) |
|
|
|
}, |
|
|
|
}); |
|
|
|
//阻止唤起键盘 |
|
|
|
const handleClick = (event) => { |
|
|
|
// 阻止输入框默认行为 |
|
|
|
event.target.readOnly = true; |
|
|
|
}; |
|
|
|
</script> |
|
|
|
<template> |
|
|
|
<el-date-picker |
|
|
|
@ -36,6 +41,8 @@ const value = computed({ |
|
|
|
:placeholder="props.data.control.placeholder" |
|
|
|
:value-format="props.data.valueFormat" |
|
|
|
:format="props.data.control.format" |
|
|
|
@click="handleClick" |
|
|
|
@focus="handleClick" |
|
|
|
/> |
|
|
|
</template> |
|
|
|
<style lang='scss' scoped> |
|
|
|
|