diff --git a/playground/src/components/DeviceGroup.vue b/playground/src/components/DeviceGroup.vue index 271f81ea..81ae6ba9 100644 --- a/playground/src/components/DeviceGroup.vue +++ b/playground/src/components/DeviceGroup.vue @@ -39,7 +39,8 @@ export default defineComponent({ modelValue: { type: Object, default: () => ({ - width: '375', + width: 375, + height: 817, }), }, }, diff --git a/playground/src/configs/dsl.ts b/playground/src/configs/dsl.ts index f10d30a0..39c71396 100644 --- a/playground/src/configs/dsl.ts +++ b/playground/src/configs/dsl.ts @@ -33,7 +33,7 @@ export default { top: 0, right: '', bottom: '', - width: '375', + width: '100%', height: '1728', backgroundImage: '', backgroundColor: 'rgba(248, 218, 218, 1)', diff --git a/playground/src/pages/Editor.vue b/playground/src/pages/Editor.vue index 583990d8..a632c104 100644 --- a/playground/src/pages/Editor.vue +++ b/playground/src/pages/Editor.vue @@ -19,8 +19,14 @@ - - + + @@ -53,7 +59,10 @@ const defaultSelected = ref(dsl.items[0].id); const propsValues = ref>({}); const propsConfigs = ref>({}); const eventMethodList = ref>({}); -const stageRect = ref(); +const stageRect = ref({ + width: 375, + height: 817, +}); const previewUrl = computed( () => `${VITE_RUNTIME_PATH}/page/index.html?localPreview=1&page=${editor.value?.editorService.get('page').id}`,