File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ export default {
67
67
// show the badge for all nested children arrays
68
68
const checkChild = array => {
69
69
for (let html of array) {
70
- console .log (html)
71
70
if (html .children .length ) {
72
71
checkChild (html .children )
73
72
} else {
Original file line number Diff line number Diff line change @@ -222,7 +222,6 @@ export default {
222
222
children .forEach ((name ) => {
223
223
childrenComponentNames += ` ${ name} ,\n ` ;
224
224
});
225
- console .log (" lets look at data" , this .componentMap [this .activeComponent ])
226
225
// if true add data section and populate with props
227
226
let data = " " ;
228
227
if (this .componentMap [this .activeComponent ].props .length ) {
@@ -235,13 +234,21 @@ export default {
235
234
data += " },\n " ;
236
235
}
237
236
const htmlBinding = this .componentMap [this .activeComponent ].htmlList
238
-
239
237
data += " data() {\n return {\n "
240
238
htmlBinding .forEach (el => {
241
239
if (el .binding !== ' ' ) {
242
240
data += ` "${ el .binding } ": "PLACEHOLDER FOR VALUE", `
243
241
data += ' \n '
244
242
}
243
+ // checks if there is binding in it's html child's child and will add to code snippet
244
+ if (el .children .length !== 0 ) {
245
+ el .children .forEach ( el1 => {
246
+ if (el1 .binding !== ' ' ) {
247
+ data += ` "${ el1 .binding } ": "PLACEHOLDER FOR VALUE", `
248
+ data += ' \n '
249
+ }
250
+ })
251
+ }
245
252
})
246
253
data += ` }`
247
254
data += ` \n }, \n `
Original file line number Diff line number Diff line change @@ -60,15 +60,6 @@ Description:
60
60
</ul >
61
61
</div >
62
62
63
- <!-- attribute child's child-->
64
- <div class =" AttributeContainer" v-for =" element in this.componentMap[this.activeComponent].htmlList"
65
- :key =" element.id + Date.now()" >
66
- <ul v-for =" element1 in element.children"
67
- :key =" element1.id + Date.now()" >
68
- <li v-if =" element1.id === this.activeHTML" >Your class is - {{ element1.class }}</li >
69
- </ul >
70
- </div >
71
-
72
63
<div class =" formBox" >
73
64
<q-form autofocus v-on:submit.prevent =" submitClass" >
74
65
<p class =" title" >Add Class Name:</p >
You can’t perform that action at this time.
0 commit comments