@simitgroup/simpleapp-generator 1.1.17 → 1.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -83,7 +83,8 @@
|
|
|
83
83
|
<SimpleAppValue :setting="o.getField('#/properties/<%= key %>')">
|
|
84
84
|
<%Object.keys(obj.properties).forEach(function(skey) { %>
|
|
85
85
|
<% let sobj=obj.properties[skey] %>
|
|
86
|
-
<% let fieldpath
|
|
86
|
+
<% let fieldpath=`#/properties/${key}/properties/${skey}` %>
|
|
87
|
+
<% let fieldpathgetter=`o.getField('${fieldpath}')` %>
|
|
87
88
|
<% let vmodel=`data.${key}.${skey}` %>
|
|
88
89
|
<% let instancePath=`#/${key}/${skey}` %>
|
|
89
90
|
|
|
@@ -97,17 +98,17 @@
|
|
|
97
98
|
<%~ getBasicElement('chip',fieldpath,vmodel) %>
|
|
98
99
|
<% } else if(sobj.type=='string'){ %>
|
|
99
100
|
<% if(sobj.format=='date'){ %>
|
|
100
|
-
<SimpleAppText type="<%=sobj.format%>" instancePath="<%=instancePath%>" autofocus :setting="<%~
|
|
101
|
+
<SimpleAppText type="<%=sobj.format%>" instancePath="<%=instancePath%>" autofocus :setting="<%~fieldpathgetter%>" v-model="<%= vmodel %>"/>
|
|
101
102
|
<% } else if(sobj.format=='text'){ %>
|
|
102
|
-
<SimpleAppTextarea :setting="<%~
|
|
103
|
+
<SimpleAppTextarea :setting="<%~fieldpathgetter%>'" instancePath="<%=instancePath%>" v-model="<%= vmodel %>"/>
|
|
103
104
|
<% } else if(sobj.format=='html'){ %>
|
|
104
|
-
<SimpleAppEditor editorStyle="height: 320px" instancePath="<%=instancePath%>" :setting="<%=
|
|
105
|
+
<SimpleAppEditor editorStyle="height: 320px" instancePath="<%=instancePath%>" :setting="<%=fieldpathgetter%>" v-model="<%= vmodel %>"/>
|
|
105
106
|
<% } else if(sobj.format=='email'){ %>
|
|
106
|
-
<SimpleAppText autofocus type="<%=~obj.type%>" instancePath="<%=instancePath%>" :setting="<%=
|
|
107
|
+
<SimpleAppText autofocus type="<%=~obj.type%>" instancePath="<%=instancePath%>" :setting="<%=fieldpathgetter%>" v-model="<%= vmodel %>"/>
|
|
107
108
|
<% } else if(sobj.enum){ %>
|
|
108
|
-
<SimpleAppSelect autofocus :setting="<%~
|
|
109
|
+
<SimpleAppSelect autofocus :setting="<%~fieldpathgetter%>" instancePath="<%=instancePath%>" v-model="<%= vmodel %>"/>
|
|
109
110
|
<% } else {%>
|
|
110
|
-
<SimpleAppText autofocus :setting="<%~
|
|
111
|
+
<SimpleAppText autofocus :setting="<%~fieldpathgetter%>" instancePath="<%=instancePath%>" v-model="<%= vmodel %>"/>
|
|
111
112
|
<% }%>
|
|
112
113
|
<% } %>
|
|
113
114
|
<%})%>
|