fix(仪表板、数据大屏): 修复部分组件字体模糊问题

This commit is contained in:
wangjiahao 2024-10-30 16:40:36 +08:00
parent 917bb22021
commit 5390a80d7f
2 changed files with 2 additions and 15 deletions

View File

@ -620,15 +620,7 @@ const marginRight = computed<CSSProperties>(() => {
})
const autoStyle = computed(() => {
return {
position: 'absolute',
height: 100 / scale.value + '%!important',
width: 100 / scale.value + '%!important',
left: 50 * (1 - 1 / scale.value) + '%', // 2
top: 50 * (1 - 1 / scale.value) + '%', // 2
transform: 'scale(' + scale.value + ') translateZ(0)',
opacity: element.value?.style?.opacity || 1
} as CSSProperties
return { zoom: scale.value }
})
</script>

View File

@ -604,12 +604,7 @@ onBeforeUnmount(() => {
})
const autoStyle = computed(() => {
return {
height: 20 * scale.value + 8 + 'px',
width: 100 / scale.value + '%!important',
left: 50 * (1 - 1 / scale.value) + '%', // 2
transform: 'scale(' + scale.value + ') translateZ(0)'
}
return { zoom: scale.value }
})
const autoHeightStyle = computed(() => {