From 1bd2968982eae6629c3ce9f47de64c3b445d2b03 Mon Sep 17 00:00:00 2001 From: alwayrun Date: Wed, 29 May 2024 21:25:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=97=AE=E5=8D=B7?= =?UTF-8?q?=E7=BC=96=E8=BE=91-=E6=B4=BB=E5=8A=A8=E9=A2=98=E5=9E=8B?= =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E9=80=89=E5=8C=BA=E6=9C=AA=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#187)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/edit/components/QuestionWrapper.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web/src/management/pages/edit/components/QuestionWrapper.vue b/web/src/management/pages/edit/components/QuestionWrapper.vue index f0b7daa7..fa25395e 100644 --- a/web/src/management/pages/edit/components/QuestionWrapper.vue +++ b/web/src/management/pages/edit/components/QuestionWrapper.vue @@ -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)) {