From f411974bd3ed2281db001ba3df30db227cb27629 Mon Sep 17 00:00:00 2001
From: lhj <403133128@qq.com>
Date: Sun, 17 Nov 2024 22:49:05 +0800
Subject: [PATCH] =?UTF-8?q?fix:=E6=9A=82=E5=AD=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/AdaptivePage.vue | 2 +-
src/components/DynamicComponent.vue | 110 ++++++++++++++++++++--------
src/modules/previewScheme.json | 65 ++++++++++------
src/views/Designer.vue | 3 +-
4 files changed, 125 insertions(+), 55 deletions(-)
diff --git a/src/components/AdaptivePage.vue b/src/components/AdaptivePage.vue
index 70c9e28..c31c3a7 100644
--- a/src/components/AdaptivePage.vue
+++ b/src/components/AdaptivePage.vue
@@ -3,7 +3,7 @@
+
MAIN
diff --git a/src/components/DynamicComponent.vue b/src/components/DynamicComponent.vue
index bda5f62..0ef1c72 100644
--- a/src/components/DynamicComponent.vue
+++ b/src/components/DynamicComponent.vue
@@ -3,9 +3,7 @@
style="width: fit-content; display: flex; flex-direction: column; position: relative;"
v-if="store.nowComponentsData !== null && (componentVisible || store.designerMode)"
:id="componentId"
- :class="[
- 'dynamic-component',
- { 'hover-state': isHovered && store.designerMode },
+ :class="['dynamic-component',{ 'hover-state': isHovered && store.designerMode },
{ 'click-state': componentSelected && store.designerMode &&isComponent }
]"
@click.stop="handleClick"
@@ -17,61 +15,100 @@
-
\ No newline at end of file
diff --git a/src/modules/previewScheme.json b/src/modules/previewScheme.json
index 8d2aecf..d2196e4 100644
--- a/src/modules/previewScheme.json
+++ b/src/modules/previewScheme.json
@@ -1,22 +1,43 @@
-{
- "type": "AdaptivePage",
- "name": "AdaptivePage",
- "id": "AdaptivePage",
- "version": "2.0",
- "props": {},
- "class": "",
- "style": "",
- "variables": {},
- "dataSources": {},
- "functions": {},
- "orchestrations": {},
- "events": {},
- "slots": {},
- "header": [],
- "footer": [],
- "body": [],
- "meta": {},
- "visible": true,
- "disable": false,
- "designer": {}
-}
\ No newline at end of file
+[
+ {
+ "id": "AdaptivePage-b32bb7a33910000",
+ "name": "AdaptivePage",
+ "type": "AdaptivePage",
+ "props": {},
+ "class": "",
+ "children": [],
+ "style": "",
+ "visible": true,
+ "slots": {},
+ "disable": false,
+ "events": {},
+ "loop": {},
+ "body": [],
+ "designer": {},
+ "dataSources": {},
+ "functions": {},
+ "variables": {},
+ "orchestrations": {},
+ "footer": [],
+ "meta": {}
+ },
+ {
+ "type": "AdaptivePage",
+ "name": "AdaptivePage",
+ "id": "718b3e933910000",
+ "version": "2.0",
+ "props": {},
+ "class": "",
+ "style": "",
+ "variables": {},
+ "dataSources": {},
+ "functions": {},
+ "orchestrations": {},
+ "events": {},
+ "slots": {},
+ "header": {},
+ "footer": {},
+ "children": [],
+ "meta": {}
+ }
+]
\ No newline at end of file
diff --git a/src/views/Designer.vue b/src/views/Designer.vue
index c02050b..204a9df 100644
--- a/src/views/Designer.vue
+++ b/src/views/Designer.vue
@@ -78,7 +78,7 @@ let componentsList = [];
const store = useSchemeStore();
watch(store, (n) => {
- console.log("store发生了变化", n);
+ // console.log("store发生了变化", n);
});
const baseScheme = {
@@ -286,7 +286,6 @@ const view = () => {
.ghost {
background-color: #f2f3f5 !important;
}
- overflow-y: auto;
}
.right {