修改 echart样式
This commit is contained in:
@@ -123,7 +123,8 @@ const dataList: any = ref({})
|
||||
// 获取主内容区域高度
|
||||
const getMainHeight = () => {
|
||||
const elMain = document.querySelector('.el-main') as HTMLElement | null
|
||||
zoom.value = layout.value.length==1?1: (elMain?.offsetHeight ?? 0) / 1080
|
||||
zoom.value =
|
||||
layout.value.length == 1 ? 1 : (elMain?.offsetHeight ?? 0) > 1080 ? 1 : (elMain?.offsetHeight ?? 0) / 1080
|
||||
// console.log('🚀 ~ getMainHeight ~ elMain:', elMain?.offsetHeight)
|
||||
return ((elMain?.offsetHeight || 0) - 70) / zoom.value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user