refactor: 优化不缩放大屏联动图标显示方式 (#17103)

This commit is contained in:
王嘉豪
2025-09-28 12:57:45 +08:00
committed by GitHub
parent 9f86f16c9f
commit ff62fbb467

View File

@@ -533,6 +533,10 @@ const getPreviewCanvasSize = () => {
innerHeight: previewCanvas.value.clientHeight
}
}
const isFixedFlag = computed(
() => isOverSize.value && canvasStyleData.value?.screenAdaptor !== 'keep'
)
defineExpose({
restore,
getPreviewCanvasSize,
@@ -574,7 +578,7 @@ defineExpose({
:canvas-id="canvasId"
:canvas-style-data="canvasStyleData"
:component-data="baseComponentData"
:is-fixed="isOverSize"
:is-fixed="isFixedFlag"
></canvas-opt-bar>
<template v-if="renderReady && !showUnpublishFlag">
<component-wrapper