Skip to content

Commit bfcf48a

Browse files
committed
fixed x.y.h.w numbers from clearing after adjusting
1 parent d01252f commit bfcf48a

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/components/Canvas.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
>
4545

4646
<div class="component-title">
47-
<p>{{ componentData.componentName }}{{this.activeLayer.id}}</p>
47+
<p>{{ componentData.componentName }}</p>
4848
</div>
4949
<q-icon v-if="componentData.componentName === this.activeComponent"
5050
size="25px"

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ export default {
108108
return {
109109
attributeModal : "false",
110110
classText: '',
111-
heightText: '0',
112-
widthText: '0',
113-
topText: '0',
114-
leftText: '0',
111+
heightText: '',
112+
widthText: '',
113+
topText: '',
114+
leftText: '',
115115
noteText: '',
116116
}
117117
},
@@ -172,7 +172,6 @@ export default {
172172
id: idNum
173173
}
174174
this.addActiveComponentHeight(payload);
175-
this.classText = '';
176175
},
177176
submitWidth(element, idNum) {
178177
if (element === '') {
@@ -183,7 +182,6 @@ export default {
183182
id: idNum
184183
}
185184
this.addActiveComponentWidth(payload);
186-
this.widthText = '';
187185
},
188186
submitTop(element, idNum) {
189187
if (element === '') {
@@ -194,7 +192,6 @@ export default {
194192
id: idNum
195193
}
196194
this.addActiveComponentTop(payload);
197-
this.topText = '';
198195
},
199196
submitLeft(element, idNum) {
200197
if (element === '') {
@@ -205,7 +202,7 @@ export default {
205202
id: idNum
206203
}
207204
this.addActiveComponentLeft(payload);
208-
this.leftText = '';
205+
209206
},
210207
closeMenu(element) {
211208
if (this.activeComponent !== '') {

0 commit comments

Comments
 (0)