Skip to content

Commit fb0bd3d

Browse files
committed
updated export and missing SNIPPET
1 parent 33e5124 commit fb0bd3d

File tree

2 files changed

+30
-42
lines changed

2 files changed

+30
-42
lines changed

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

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -112,27 +112,27 @@ export default {
112112
}
113113
importObj.componentName = compName;
114114
115-
const htmlElementMap = { //OverVue state management only handles these HTML tags.
116-
div: ["<div>", "</div>"],
117-
button: ["<button>", "</button>"],
118-
form: ["<form>", "</form>"],
119-
img: ["<img>", ""],
120-
link: ['<a href="#"/>', ""],
121-
list: ["<li>", "</li>"],
122-
paragraph: ["<p>", "</p>"],
123-
"list-ol": ["<ol>", "</ol>"],
124-
"list-ul": ["<ul>", "</ul>"],
125-
input: ["<input />", ""],
126-
navbar: ["<nav>", "</nav>"],
127-
header:["<header>", "</header>"],
128-
footer:["<footer>", "</footer>"],
129-
meta: ["<meta>", "</meta>"],
130-
h1:["<h1>", "</h1>"],
131-
h2:["<h2>", "</h2>"],
132-
h3:["<h3>", "</h3>"],
133-
h4:["<h4>", "</h4>"],
134-
h5:["<h5>", "</h5>"],
135-
h6:["<h6>", "</h6>"],
115+
const htmlElementMap = {
116+
div: ["<div", "</div>"],
117+
button: ["<button", "</button>"],
118+
form: ["<form", "</form>"],
119+
img: ["<img", ""], //single
120+
link: ['<a href="#"', ""], //single
121+
list: ["<li", "</li>"],
122+
paragraph: ["<p", "</p>"],
123+
"list-ol": ["<ol", "</ol>"],
124+
"list-ul": ["<ul", "</ul>"],
125+
input: ["<input", ""], //single
126+
navbar: ["<nav", "</nav>"],
127+
header: ["<header", "</header>"],
128+
footer: ["<footer", "</footer>"],
129+
meta: ["<meta", "</meta>"],
130+
h1: ["<h1", "</h1>"],
131+
h2: ["<h2", "</h2>"],
132+
h3: ["<h3", "</h3>"],
133+
h4: ["<h4", "</h4>"],
134+
h5: ["<h5", "</h5>"],
135+
h6: ["<h6", "</h6>"],
136136
};
137137
138138

src/components/right-sidebar/HTMLQueue.vue

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -40,27 +40,6 @@ Description:
4040
</div>
4141
</div>
4242

43-
<!--START OF CHANGES-->
44-
<!-- &nbsp; &nbsp; Viewing Elements in {{ this.activeComponent }} '{{ depth }}'
45-
<hr>
46-
</span>
47-
<span class='list-title' v-else-if='!this.activeComponent'></span>
48-
<div group="people" class="list-group">
49-
<p v-if='!this.componentMap[this.activeComponent]?.htmlList.length'>No HTML elements in component</p>
50-
51-
<div id="tooltipCon" :class="activeHTML === element[2] ? 'list-group-item-selected' : 'list-group-item'"
52-
v-for="(element) in renderList" :key="element[1] + Date.now()">
53-
54-
<button class="attributeButton" @click="setActiveElement(element)">
55-
<div class="tooltip"> Edit {{ element[0] }} attributes </div>
56-
</button>
57-
<i v-if='activeComponent === "" || exceptions.includes(element[0])'></i>
58-
<i v-else class="fas fa fa-angle-double-down fa-md" @click="setLayer({ text: element[0], id: element[2] })"></i>
59-
{{ element[0] }}
60-
<i class="fas fa fa-trash fa-md" @click.self="deleteElement([element[1], element[2]])"></i>
61-
</div>
62-
</div> -->
63-
6443
<!-- attribute pop-up -->
6544
<q-dialog v-model="attributeModal">
6645
<!-- @update:model-value="setActiveElement" -->
@@ -72,6 +51,15 @@ Description:
7251
<p v-if="element.id === this.activeHTML">Your class is - {{ element.class }}</p>
7352
</div>
7453

54+
<!--attribute child's child-->
55+
<div class="AttributeContainer" v-for="element in this.componentMap[this.activeComponent].htmlList"
56+
:key="element.id + Date.now()">
57+
<ul v-for="element1 in element.children"
58+
:key="element1.id + Date.now()">
59+
<li v-if="element1.id === this.activeHTML">Your class is - {{ element1.class }}</li>
60+
</ul>
61+
</div>
62+
7563
<div class="formBox">
7664
<q-form autofocus v-on:submit.prevent="submitClass">
7765
<p class="title">Add Class Name:</p>

0 commit comments

Comments
 (0)