fix: 修复问卷编辑-活动题型移动选区未移动问题 (#187)
This commit is contained in:
parent
3dc15aeb68
commit
1bd2968982
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user