mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复工作流函数节点滚动事件导致整个页面变大
This commit is contained in:
parent
7c218284a1
commit
55e3310a5f
|
|
@ -72,8 +72,6 @@
|
|||
<CodemirrorEditor
|
||||
v-model="chat_data.code"
|
||||
@wheel="wheel"
|
||||
@keydown="isKeyDown = true"
|
||||
@keyup="isKeyDown = false"
|
||||
style="height: 130px !important"
|
||||
/>
|
||||
<div class="function-CodemirrorEditor__footer">
|
||||
|
|
@ -126,16 +124,15 @@ import { isLastNode } from '@/workflow/common/data'
|
|||
|
||||
const props = defineProps<{ nodeModel: any }>()
|
||||
|
||||
const isKeyDown = ref(false)
|
||||
const wheel = (e: any) => {
|
||||
if (isKeyDown.value) {
|
||||
if (e.ctrlKey === true) {
|
||||
e.preventDefault()
|
||||
return true
|
||||
} else {
|
||||
e.stopPropagation()
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
const FieldFormDialogRef = ref()
|
||||
const nodeCascaderRef = ref()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue