style(仪表板、数据大屏): 优化缩放样式

This commit is contained in:
wangjiahao 2024-10-29 14:11:00 +08:00
parent 2abaa3359e
commit 3cf9dbfbfe

View File

@ -63,7 +63,11 @@ const props = defineProps({
const { element, view, active, searchCount, scale } = toRefs(props)
const autoStyle = computed(() => {
return { zoom: scale.value }
if (element.value.innerType === 'rich-text') {
return { zoom: scale.value }
} else {
return {}
}
})
const emits = defineEmits(['onPointClick'])