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