From 4bdc4976cf89620bcd08f82e214cf83ccec6cc67 Mon Sep 17 00:00:00 2001 From: "zhu.yawen" Date: Tue, 31 Oct 2023 17:59:16 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Abug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RightSetting/MoveDialog/index.vue | 6 +++--- .../packages/BorderComponents/GcBorder16/index.vue | 14 ++++++++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/data-room-ui/packages/BigScreenDesign/RightSetting/MoveDialog/index.vue b/data-room-ui/packages/BigScreenDesign/RightSetting/MoveDialog/index.vue index 623a5c72..c0f7bd6c 100644 --- a/data-room-ui/packages/BigScreenDesign/RightSetting/MoveDialog/index.vue +++ b/data-room-ui/packages/BigScreenDesign/RightSetting/MoveDialog/index.vue @@ -270,7 +270,7 @@ export default { left: 0; width: 400px; margin-top: 50px; - margin-left: 20px; + margin-left: 80px; margin-right: 200px; table{ color: #fff; @@ -283,9 +283,9 @@ export default { } } .imgContent{ - width: 300px; + width: 400px; position: absolute; - left: 500px; + left: 600px; top: 50%; transform: translateY(-50%); margin-top: 0px; diff --git a/data-room-ui/packages/BorderComponents/GcBorder16/index.vue b/data-room-ui/packages/BorderComponents/GcBorder16/index.vue index 81cdb2ae..0bea0acb 100644 --- a/data-room-ui/packages/BorderComponents/GcBorder16/index.vue +++ b/data-room-ui/packages/BorderComponents/GcBorder16/index.vue @@ -32,6 +32,8 @@ export default { }, data () { return { + borderWidth: 0, + borderHeight: 0 } }, computed: { @@ -45,10 +47,10 @@ export default { const borderArr = this.config.border.borderArray ? this.config.border.borderArray : [10, 10, 10, 10] const arr = [] - arr[0] = borderArr[0] * 3.2 - arr[1] = borderArr[1] * 4.5 - arr[2] = borderArr[2] * 3.2 - arr[3] = borderArr[3] * 4.5 + arr[0] = borderArr[0] * this.borderHeight / 100 + arr[1] = borderArr[1] * this.borderWidth / 100 + arr[2] = borderArr[2] * this.borderHeight / 100 + arr[3] = borderArr[3] * this.borderWidth / 100 return arr } }, @@ -70,6 +72,10 @@ export default { } }, mounted () { + // 获取边框大小 + const element = document.querySelector('.bs-design-wrap') + this.borderWidth = element.offsetWidth + this.borderHeight = element.offsetHeight if(this.config.border.imgUrl){ let ur=this.config.border.imgUrl if(!this.config.border.imgUrl.startsWith('http')){