@@ -137,11 +137,12 @@ export default {
137
137
// Iterates through active component's HTML elements list and adds to code snippet
138
138
let htmlArr = this .componentMap [componentName].htmlList ;
139
139
console .log (" ALERT" )
140
- console .log (htmlArr[0 ].class )
141
- console .log (htmlArr[0 ].children )
140
+ console .log (' hellloo' )
141
+ console .log (" here" , htmlArr[0 ].class )
142
+ console .log (htmlArr[0 ].children );
142
143
let outputStr = ` ` ;
143
144
// eslint-disable-next-line no-unused-vars
144
- for (let el of htmlArr) {
145
+ for (const el of htmlArr) {
145
146
if (! el .text ) {
146
147
outputStr += ` <${ el} />\n ` ;
147
148
} else {
@@ -235,19 +236,32 @@ export default {
235
236
methods += " \n ]),\n " ;
236
237
methods += " },\n " ;
237
238
}
238
- // creating a styleString too add to style scoped style
239
- let classArr = this .componentMap [componentName].htmlList ;
240
- console .log (' thisone' , classArr);
241
- const styleStr = ' ' ;
242
- for (const hmtl of classArr) {
243
- if (! html .text ) return ;
239
+ // creating a styleString too add to style scope1d style
240
+ // let classArr = this.componentMap[componentName].htmlList;
241
+ // console.log('thisone', classArr[0].class);
242
+ // const styleStr = ' ';
243
+ // for (const htmlKey of classArr) {
244
+ // if (!htmlKey.text) return;
245
+ // if (htmlKey.class) {
246
+ // styleStr += `.${htmlKey.class}{\n}`
247
+ // }
248
+ // //left off here: think there is an issue to render this information::::::::
249
+ // return styleStr;
250
+ // }
251
+
252
+ let htmlArray = this .componentMap [componentName].htmlList ;
253
+ console .log (" down here" , htmlArray);
254
+ let styleString = " " ;
255
+ for (const html of htmlArray) {
256
+ if (! html .class ) styleString = " " ;
244
257
if (html .class ) {
245
- styleStr += ` .${ html .class } {\n }`
258
+ styleString += ` .${ html .class } {\n }\n `
246
259
}
247
- // left off here: think there is an issue to render this information::::::::
248
- return styleStr;
249
260
}
250
-
261
+ // const accessProxy = new Proxy(htmlArray, getHandler)
262
+ // const getHandler = {
263
+ // get: function (htmlArray, )
264
+ // };
251
265
252
266
// concat all code within script tags
253
267
// if exportAsTypescript is on, out should be <script lang="ts">
@@ -269,7 +283,7 @@ export default {
269
283
output += " });\n <\/ script>\n\n <style scoped>\n </style>"
270
284
271
285
} else {
272
- output += ` };\n <\/ script>\n\n <style scoped>\n ${ styleStr } </style> `
286
+ output += ` }; \n <\/ script>\n\n <style scoped>\n ${ styleString } </style > `
273
287
}
274
288
return output
275
289
},
0 commit comments