fix(仪表板): 修复开启辅助网格模式后矩阵和悬浮视图叠在一起的问题

This commit is contained in:
wangjiahao 2022-11-14 12:02:44 +08:00
parent 3df8a9f8e3
commit 29f43af992

View File

@ -64,7 +64,7 @@
@mousedown.stop.prevent="handleDown(handlei, $event)" @mousedown.stop.prevent="handleDown(handlei, $event)"
@touchstart.stop.prevent="handleTouchDown(handlei, $event)" @touchstart.stop.prevent="handleTouchDown(handlei, $event)"
> >
<slot :name="handlei" /> <slot :name="handlei"/>
</div> </div>
<div <div
:id="componentCanvasId" :id="componentCanvasId"
@ -77,7 +77,7 @@
class="svg-background" class="svg-background"
:icon-class="mainSlotSvgInner" :icon-class="mainSlotSvgInner"
/> />
<slot /> <slot/>
</div> </div>
</div> </div>
</div> </div>
@ -1929,6 +1929,7 @@ export default {
const nodes = this.$el.parentNode.childNodes // const nodes = this.$el.parentNode.childNodes //
for (const item of nodes) { for (const item of nodes) {
if ( if (
item.tagName !== 'svg' &&
item.className !== undefined && item.className !== undefined &&
!item.className.split(' ').includes(this.classNameActive) && !item.className.split(' ').includes(this.classNameActive) &&
item.getAttribute('tab-is-check') !== null && item.getAttribute('tab-is-check') !== null &&