File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export function useCreateComponent(importObj) {
43
43
isActive : false ,
44
44
color : "#ffffff85" ,
45
45
htmlAttributes :{
46
- class :"test " ,
46
+ class :"" ,
47
47
id :"" ,
48
48
}
49
49
} ;
Original file line number Diff line number Diff line change @@ -80,8 +80,9 @@ export default {
80
80
// Creates beginner boilerplate
81
81
createTemplate (componentName ) {
82
82
let templateTagStr = this .writeTemplateTag (componentName);
83
- if (this .activeComponentObj .htmlAttributes .class !== " " ) return ` <template>\n <div class = "${ this .activeComponentObj .htmlAttributes .class } ">\n ${ templateTagStr} </div>\n </template>` ;
84
- else return ` <template>\n <div>\n ${ templateTagStr} </div>\n </template>` ;
83
+ console .log (this .activeComponentObj )
84
+ // if(this.activeComponentObj.htmlAttributes.class !== "") return `<template>\n <div class = "${this.activeComponentObj.htmlAttributes.class}">\n${templateTagStr} </div>\n</template>`;
85
+ // else return `<template>\n <div>\n${templateTagStr} </div>\n</template>`;
85
86
86
87
},
87
88
// Creates <template> boilerplate
Original file line number Diff line number Diff line change @@ -489,6 +489,7 @@ const mutations = {
489
489
isActive,
490
490
actions,
491
491
props,
492
+ htmlAttributes,
492
493
} = payload ;
493
494
const s = payload . state ;
494
495
state . componentMap = {
@@ -507,6 +508,7 @@ const mutations = {
507
508
actions,
508
509
props,
509
510
state : s ,
511
+ htmlAttributes,
510
512
} ,
511
513
} ;
512
514
} ,
You can’t perform that action at this time.
0 commit comments