Merge pull request #7727 from dataease/pr@dev-v2@fix_screen

fix: 数据大屏非图表组件输入样式信息回车出现跳转问题
This commit is contained in:
王嘉豪 2024-01-22 11:01:40 +08:00 committed by GitHub
commit 0c25455106
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,6 +102,12 @@ onMounted(() => {
}) })
}) })
}) })
const stopEvent = e => {
if (e && e.code === 'Enter') {
e.stopPropagation()
e.preventDefault()
}
}
</script> </script>
<template> <template>
@ -231,6 +237,8 @@ onMounted(() => {
></el-option> ></el-option>
</el-select> </el-select>
<el-input-number <el-input-number
@keydown="stopEvent"
@keyup="stopEvent"
v-else v-else
size="middle" size="middle"
style="width: 100%" style="width: 100%"