refactor(仪表板): 优化仪表板边界展示,修复全屏Tab+网页+公共链接展示,右边边框距离较大问题 #10176

This commit is contained in:
wangjiahao 2024-06-21 12:02:08 +08:00
parent b64b041e17
commit 52ae80c6dd
2 changed files with 4 additions and 3 deletions

View File

@ -322,6 +322,7 @@ export default {
'letterSpacing'
],
scaleWidth: '100',
scaleWidthLay: '100',
scaleHeight: '100',
timer: null,
componentDataShow: [],
@ -451,7 +452,7 @@ export default {
if (this.backScreenShot) {
style.height = this.mainHeight
} else {
style.padding = '5px'
style.padding = '0px'
}
return style
},
@ -806,7 +807,7 @@ export default {
restore() {
const canvasHeight = document.getElementById(this.previewDomId).offsetHeight
const canvasWidth = document.getElementById(this.previewDomId).offsetWidth
this.scaleWidth = (canvasWidth) * 100 / this.canvasStyleData.width //
this.scaleWidth = (canvasWidth) * 100 / (this.canvasStyleData.width - 8) //
// 使
if (this.backScreenShot) {
this.scaleHeight = this.scaleWidth

View File

@ -932,7 +932,7 @@ export default {
height: calc(100% - 56px);
overflow-x: hidden;
overflow-y: auto;
/*padding: 5px;*/
padding: 5px;
}
.custom-position {