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>
|
</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%"
|
||||||
|
Loading…
Reference in New Issue
Block a user