fix(图表):修复点击图表图例时拖动阴影闪烁的问题

This commit is contained in:
jianneng-fit2cloud
2026-08-27 22:25:34 +08:00
parent 5fd7478a7d
commit 4e289b22d2

View File

@@ -1644,8 +1644,12 @@ defineExpose({
:matrix-style="matrixStyle"
:themes="themes"
></de-grid-screen>
<!-- 按下时 moveItem 仅初始化拖动上下文,普通移动待 isPlayer 后显示阴影,缩放保持即时显示,避免图表内部点击闪现占位 -->
<drag-shadow
v-if="infoBox && infoBox.moveItem && editMode !== 'preview'"
:style="{
visibility: infoBox.resizeItem || infoBox.moveItem.isPlayer ? 'visible' : 'hidden'
}"
:base-height="dashboardScaleWithWidth ? baseWidth * 1.6 : baseHeight"
:base-width="baseWidth"
:cur-gap="curGap"