From bdf32ad320fbeb09afeb144cf6f0f0fff314ec0e Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 25 六月 2024 17:08:45 +0800 Subject: [PATCH] 戏曲优化 --- src/components/dragQuestion/index.vue | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/components/dragQuestion/index.vue b/src/components/dragQuestion/index.vue index 7d2f42d..1dedf10 100644 --- a/src/components/dragQuestion/index.vue +++ b/src/components/dragQuestion/index.vue @@ -212,7 +212,7 @@ this.moveDom = e.toElement; this.parentDom = this.getParentWithClass(e.toElement, "question-box"); this.questionIndex = this.parentDom.getAttribute("num"); - this.getSpaceInfo(this.parentDom); + if(!this.spaceList.length) this.getSpaceInfo(this.parentDom); const parentInfo = this.parentDom.getBoundingClientRect(); this.parentX = parentInfo.x; this.parentY = parentInfo.y; @@ -241,6 +241,7 @@ e.y <= item.maxY ) { if(!this.isLift) return false + this.spaceList = this.spaceList.filter(citem => citem !== item) this.$set( this.drageQuestion[this.questionIndex].userAnswer, index, @@ -406,6 +407,7 @@ text-align: center; min-width: 60px !important; min-height: 15px !important; + text-indent: 0em; } .option-box { display: flex; @@ -415,6 +417,7 @@ cursor: pointer; } .stem { + text-indent: 2em; line-height: 2em; } .drag-bottom-btn { -- Gitblit v1.9.1