File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,6 @@ export default {
86
86
},
87
87
// Creates <template> boilerplate
88
88
writeTemplateTag (componentName , activeComponent ) {
89
- // console.log(this.activeComponentObj)
90
89
const htmlElementMap = {
91
90
div: [" <div" , " </div>" ],
92
91
button: [" <button" , " </button>" ],
@@ -167,14 +166,14 @@ export default {
167
166
if (el .class !== " " ) {
168
167
outputStr += " " + " class = " + ` "${ el .class } "` ;
169
168
}
169
+
170
+ if (el .binding !== " " ) {
171
+ outputStr += ` v-model = "${ el .binding } "`
172
+ }
170
173
// add an extra slash at the end for child Components and single tags
171
174
if (childComponents .includes (el .text ) || el .text === " img" || el .text === " input" || el .text === " link" ){
172
175
outputStr += " /"
173
176
}
174
-
175
- if (el .binding !== " " ) {
176
- outputStr += ` v-model = "${ el .binding } "`
177
- }
178
177
outputStr += " >" ;
179
178
if (el .children .length ) {
180
179
outputStr += " \n " ;
You can’t perform that action at this time.
0 commit comments