mirror of
https://gitee.com/anji-plus/report.git
synced 2026-05-20 08:47:18 +08:00
!220 bug:解决预览界面缩放异常的问题
Merge pull request !220 from shuaiwu95/pr-branch-bug
This commit is contained in:
@@ -96,11 +96,15 @@ export default {
|
|||||||
this.bigScreenStyle.transform='scale('+scale.scalex+','+scale.scaley+')'
|
this.bigScreenStyle.transform='scale('+scale.scalex+','+scale.scaley+')'
|
||||||
},
|
},
|
||||||
getScale(){
|
getScale(){
|
||||||
let width=this.dashboard.width;
|
let width = this.dashboard.width
|
||||||
let height=this.dashboard.height;
|
let height = this.dashboard.height
|
||||||
return{
|
// 固定宽度比例
|
||||||
scalex:(window.innerWidth)/width,
|
const scalex = window.innerWidth / width
|
||||||
scaley:(window.innerHeight)/height,
|
// 高度按相同比例缩放,但允许超出屏幕高度
|
||||||
|
const scaley = scalex
|
||||||
|
return {
|
||||||
|
scalex,
|
||||||
|
scaley
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user