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}