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 @@
{{ componentName }}
-
- - - +
+ + +
- - {{ componentText }} - - - + + {{ componentText }} + + + + +
- \ 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 {