forked from github/dataease
Merge pull request #7727 from dataease/pr@dev-v2@fix_screen
fix: 数据大屏非图表组件输入样式信息回车出现跳转问题
This commit is contained in:
commit
0c25455106
@ -102,6 +102,12 @@ onMounted(() => {
|
||||
})
|
||||
})
|
||||
})
|
||||
const stopEvent = e => {
|
||||
if (e && e.code === 'Enter') {
|
||||
e.stopPropagation()
|
||||
e.preventDefault()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@ -231,6 +237,8 @@ onMounted(() => {
|
||||
></el-option>
|
||||
</el-select>
|
||||
<el-input-number
|
||||
@keydown="stopEvent"
|
||||
@keyup="stopEvent"
|
||||
v-else
|
||||
size="middle"
|
||||
style="width: 100%"
|
||||
|
Loading…
Reference in New Issue
Block a user