From 7df9e4293b823b5b606a55924005f6896386dced Mon Sep 17 00:00:00 2001 From: "liu.tao3" Date: Sun, 8 Oct 2023 18:01:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data-room-ui/packages/BigScreenList/EditForm.vue | 2 +- data-room-ui/packages/BigScreenRun/index.vue | 12 ++++++------ data-room-ui/packages/ComponentList/EditForm.vue | 6 +++--- data-room-ui/packages/js/api/bigScreenApi.js | 3 +++ 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/data-room-ui/packages/BigScreenList/EditForm.vue b/data-room-ui/packages/BigScreenList/EditForm.vue index d25dddea..dc9a8744 100644 --- a/data-room-ui/packages/BigScreenList/EditForm.vue +++ b/data-room-ui/packages/BigScreenList/EditForm.vue @@ -2,7 +2,7 @@
h) { translate = `${((this.innerWidth - w) / 2) / scaleX}px, ${((this.innerHeight - h) / 2) / scaleY}px` } else { @@ -330,7 +330,7 @@ export default { } // 高度铺满 预览时画布纵向铺满,横向超出时出现滚动条 - if (this.fitMode === 'fitHeight') { + if (pageConfig.fitMode === 'fitHeight') { scaleY = this.innerHeight / h // 如果实际宽度小于屏幕,横向居中 if (this.innerWidth > w) { @@ -342,7 +342,7 @@ export default { } // 双向铺满 预览时画布横向纵向铺满,无滚动条,但是元素可能会出现拉伸情况 - if (this.fitMode === 'cover') { + if (pageConfig.fitMode === 'cover') { scaleX = this.innerWidth / w scaleY = this.innerHeight / h translate = `${((this.innerWidth - w) / 2) / scaleX}px, ${((this.innerHeight - h) / 2) / scaleY}px` diff --git a/data-room-ui/packages/ComponentList/EditForm.vue b/data-room-ui/packages/ComponentList/EditForm.vue index aa950d6d..87fecd05 100644 --- a/data-room-ui/packages/ComponentList/EditForm.vue +++ b/data-room-ui/packages/ComponentList/EditForm.vue @@ -2,7 +2,7 @@
{ if (item.type == 'customComponent') { + const a = JSON.parse(item.option) + a[a.dataKey] = [] + item.option=JSON.stringify(a) item.setting=item.setting.map((x) => { const {field,value,...obj}=x return {field,value}