@@ -47,24 +47,32 @@ Description:
47
47
<q-btn id =" deleteButton" @click =" deleteSelectedComp(activeComponentData)" label = ' Delete currently selected' />
48
48
<div v-if =" this.activeComponentData" >
49
49
<br />
50
- <section > Layer:
51
- <q-btn
50
+ <section id = " counter " style = " color : white " > Layer:
51
+ <q-btn
52
52
class =" btn"
53
53
color =" transparent"
54
- text-color =" primary "
54
+ text-color =" white "
55
55
label =" -"
56
56
@click =" e => handleLayer(e)"
57
57
/>
58
- <p id =" counter" style =" color : white " >{{ activeComponentObj.z }}</p >
58
+ {{ this.activeComponentObj.z }}
59
+ <!-- <q-btn
60
+ class="btn"
61
+ color="transparent"
62
+ text-color="white"
63
+ label="-"
64
+ @click="e => handleLayer(e)"
65
+ /> -->
66
+ <!-- <p id="counter" style="color: white">{{ this.activeComponentObj.z }}</p> -->
59
67
<q-btn
60
68
class =" btn"
61
69
color =" transparent"
62
- text-color =" primary "
70
+ text-color =" white "
63
71
label =" +"
64
72
@click =" e => handleLayer(e)"
65
73
/>
66
74
</section >
67
-
75
+ < br />
68
76
<p > Toggle to edit: </p >
69
77
<section class =" toggleText" > HTML elements
70
78
<toggle-button v-model =" showHTML" /> </section >
@@ -166,14 +174,17 @@ export default {
166
174
' activeComponentObj' ,
167
175
' componentMap'
168
176
]),
177
+
169
178
activeRouteDisplay () {
170
179
let component = this .routes [this .activeRoute ]
171
180
// console.log('component', component)
172
181
return component
173
182
},
183
+
174
184
activeComponentData () {
175
185
return this .activeComponentObj
176
186
},
187
+
177
188
options () {
178
189
const val = this .activeRouteDisplay .map (
179
190
(component ) => component .componentName
@@ -227,7 +238,10 @@ export default {
227
238
handleLayer (e ) {
228
239
e .preventDefault ()
229
240
const payload = {
230
- z: this .activeComponentObj .z
241
+ activeComponent: this .activeComponent ,
242
+ routeArray: this .routes [this .activeRoute ],
243
+ activeComponentData: this .activeComponentData ,
244
+ z: this .activeComponentData .z
231
245
}
232
246
if (e .target .innerText === ' +' ) payload .z ++
233
247
if (e .target .innerText === ' -' && payload .z > 0 ) payload .z --
0 commit comments