fix: 修复问卷编辑-活动题型移动选区未移动问题 (#187)

This commit is contained in:
alwayrun 2024-05-29 21:25:50 +08:00 committed by sudoooooo
parent 3dc15aeb68
commit 1bd2968982

View File

@ -102,8 +102,13 @@ const onCopy = () => {
}
const onMoveUp = () => {
const index = props.qIndex
emit('changeSeq', { type: 'move', index, range: -1 })
isHover.value = false
if (props.isSelected) {
emit('select', index - 1)
}
}
const onMouseenter = () => {
@ -114,8 +119,13 @@ const onMouseleave = () => {
}
const onMoveDown = () => {
const index = props.qIndex
emit('changeSeq', { type: 'move', index, range: 1 })
isHover.value = false
if (props.isSelected) {
emit('select', index + 1)
}
}
const onDelete = async () => {
if (unref(hasShowLogic)) {