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' 'letterSpacing'
], ],
scaleWidth: '100', scaleWidth: '100',
scaleWidthLay: '100',
scaleHeight: '100', scaleHeight: '100',
timer: null, timer: null,
componentDataShow: [], componentDataShow: [],
@ -451,7 +452,7 @@ export default {
if (this.backScreenShot) { if (this.backScreenShot) {
style.height = this.mainHeight style.height = this.mainHeight
} else { } else {
style.padding = '5px' style.padding = '0px'
} }
return style return style
}, },
@ -806,7 +807,7 @@ export default {
restore() { restore() {
const canvasHeight = document.getElementById(this.previewDomId).offsetHeight const canvasHeight = document.getElementById(this.previewDomId).offsetHeight
const canvasWidth = document.getElementById(this.previewDomId).offsetWidth 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) { if (this.backScreenShot) {
this.scaleHeight = this.scaleWidth this.scaleHeight = this.scaleWidth

View File

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