Skip to content

Commit 2886377

Browse files
committed
fixed bug in codeSnippet that was not rendering the innerText elements
1 parent 7cf62a7 commit 2886377

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/components/left-sidebar/ComponentTab/InputHTMLMenu.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,9 @@ const leftText = ref('');
169169
const z = ref('0');
170170
const noteText = ref('');
171171
const bindingText = ref('');
172-
const note = ref('');
172+
// const note = ref('');
173173
174174
onMounted(() => {
175-
console.log("onMounted test", widthText.value);
176175
//for loop to access nested HTML elements of components - sets height/width/top/left sliders to current value of selected HTML element
177176
for (let i = 0; i <routes.value[activeRoute.value].length; i++) {
178177
for (let j = 0; j < routes.value[activeRoute.value][i].htmlList.length; j++) {
@@ -238,8 +237,8 @@ const submitNote = (element, idNum) => {
238237
id: idNum
239238
}
240239
addActiveComponentElementNote(payload);
241-
console.log("Ins")
242-
text.value = '';
240+
console.log("Looking for htmlAttributes ", activeComponentObj.value.htmlAttributes);
241+
noteText.value = '';
243242
};
244243
245244
const submitHeight = (element, idNum) => {

src/components/right-sidebar/CodeSnippet.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,9 @@ const writeTemplateTag = (componentName, activeComponent) => {
289289
outputStr += "/";
290290
}
291291
outputStr += ">";
292+
if (el.note !== "") {
293+
outputStr += `${el.note}`;
294+
}
292295
if (el.children.length) {
293296
outputStr += "\n";
294297
outputStr += writeNested(el.children, ` `);
@@ -450,6 +453,7 @@ watch(
450453
{ deep: true }
451454
);
452455
456+
console.log(activeComponentObj.value)
453457
// mounted()
454458
// https://vuejs.org/v2/api/#Vue-nextTick
455459
// kinda like a promise, used for the window resize

src/components/right-sidebar/Tree.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const componentMap = computed (() => store.state.componentMap);
153153
value: 'App',
154154
children: []
155155
}
156-
console.log(treeData, 'HELLO I AM TREE DATA');
156+
// console.log(treeData, 'HELLO I AM TREE DATA');
157157
//Views come after the root, as its children. No components will be children of App.
158158
//ONLY Views will have components as children.
159159
for (const child of componentData.App.children){

0 commit comments

Comments
 (0)