Skip to content

Commit 41b5204

Browse files
committed
fixed merge conflicts
2 parents 3fa5cf8 + d43111c commit 41b5204

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/components/composables/useCreateComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function useCreateComponent(importObj) {
4343
isActive: false,
4444
color: "#ffffff85",
4545
htmlAttributes:{
46-
class:"test",
46+
class:"",
4747
id:"",
4848
}
4949
};

src/components/right-sidebar/CodeSnippet.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,16 @@ export default {
7676
// Creates beginner boilerplate
7777
createTemplate(componentName) {
7878
let templateTagStr = this.writeTemplateTag(componentName);
79+
<<<<<<< HEAD
7980
if (this.activeComponentObj.htmlAttributes.class !== "") return `<template>\n <div class = "${this.activeComponentObj.htmlAttributes.class}">\n${templateTagStr} </div>\n</template>`;
8081
else return `<template>\n <div>\n${templateTagStr} </div>\n</template>`;
8182
83+
=======
84+
console.log(this.activeComponentObj)
85+
// if(this.activeComponentObj.htmlAttributes.class !== "") return `<template>\n <div class = "${this.activeComponentObj.htmlAttributes.class}">\n${templateTagStr} </div>\n</template>`;
86+
// else return `<template>\n <div>\n${templateTagStr} </div>\n</template>`;
87+
88+
>>>>>>> d43111c7d7f70bf069d8763816730ae516810d3f
8289
},
8390
// Creates <template> boilerplate
8491
writeTemplateTag(componentName) {

src/store/mutations.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ const mutations = {
489489
isActive,
490490
actions,
491491
props,
492+
htmlAttributes,
492493
} = payload;
493494
const s = payload.state;
494495
state.componentMap = {
@@ -507,6 +508,7 @@ const mutations = {
507508
actions,
508509
props,
509510
state: s,
511+
htmlAttributes,
510512
},
511513
};
512514
},

0 commit comments

Comments
 (0)