diff --git a/packages/designer/src/builtin-simulator/host.less b/packages/designer/src/builtin-simulator/host.less index dbc118ca3..cbabf2d72 100644 --- a/packages/designer/src/builtin-simulator/host.less +++ b/packages/designer/src/builtin-simulator/host.less @@ -38,9 +38,10 @@ top: 8px; .@{scope}-canvas-viewport { width: auto; - top: 90px; + top: 50px; left: 0px; right: 0px; + margin-top: 40px; max-height: 688px; } } diff --git a/packages/editor-preset-vision/src/editor.ts b/packages/editor-preset-vision/src/editor.ts index eea70b61d..51294d0ff 100644 --- a/packages/editor-preset-vision/src/editor.ts +++ b/packages/editor-preset-vision/src/editor.ts @@ -1,5 +1,5 @@ import { isJSBlock, isJSExpression, isJSSlot, isI18nData } from '@ali/lowcode-types'; -import { isPlainObject, hasOwnProperty } from '@ali/lowcode-utils'; +import { isPlainObject, hasOwnProperty, cloneDeep } from '@ali/lowcode-utils'; import { globalContext, Editor } from '@ali/lowcode-editor-core'; import { Designer, LiveEditing, TransformStage, Node, getConvertedExtraKey } from '@ali/lowcode-designer'; import Outline, { OutlineBackupPane, getTreeMaster } from '@ali/lowcode-plugin-outline-pane'; @@ -306,7 +306,7 @@ designer.addPropsReducer(deepValueParser, TransformStage.Render); designer.addPropsReducer((props: any, node: Node) => { if (node.isRoot()) { if (props.dataSource) { - const { online } = props.dataSource; + const online = cloneDeep(props.dataSource.online); online.forEach((item: any) => { const newParam: any = {}; if (item.options && item.options.params && item.options.params.length) {