forked from github/dataease
fix(仪表板、数据大屏): 修复部分组件字体模糊问题
This commit is contained in:
parent
917bb22021
commit
5390a80d7f
@ -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>
|
||||
|
||||
|
@ -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(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user