diff --git a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue index a36fa7de9c..4575f25e47 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue @@ -137,6 +137,11 @@ const props = defineProps({ default() { return {} } + }, + scale: { + type: Number, + required: false, + default: 1 } }) @@ -191,7 +196,7 @@ const curComponentId = computed(() => { const { emitter } = useEmitt() const curScale = computed(() => { - return canvasStyleData.value.scale + return canvasStyleData.value.scale / 100 }) const pointShadowShow = computed(() => { @@ -1269,6 +1274,7 @@ defineExpose({ v-for="(item, index) in componentData" v-show="item.isShow" :canvas-id="canvasId" + :scale="curScale" :key="item.id" :default-style="item.style" :style="getShapeItemShowStyle(item)" diff --git a/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue b/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue index 46cd03f741..3a75b7d178 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue @@ -164,6 +164,8 @@ const commonBackgroundSvgInner = computed(() => { return null } }) + +const deepScale = computed(() => scale.value / 100)