zet-lib 3.0.7 → 3.0.8
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/lib/Form.js +8 -0
- package/lib/Model.js +32 -0
- package/lib/generatorApi.js +1328 -1328
- package/lib/generatorModel.js +3 -0
- package/lib/views/zgenerator/routerApp.ejs +359 -359
- package/lib/zRoute.js +7 -0
- package/package.json +1 -1
package/lib/zRoute.js
CHANGED
|
@@ -400,6 +400,9 @@ zRoute.attributeData = async (res, MYMODEL, obj) => {
|
|
|
400
400
|
if (MYMODEL.widgets[key].name == "custom") {
|
|
401
401
|
customs.push(key);
|
|
402
402
|
}
|
|
403
|
+
if (MYMODEL.widgets[key].name == "html") {
|
|
404
|
+
customs.push(key);
|
|
405
|
+
}
|
|
403
406
|
}
|
|
404
407
|
if (customs.length) {
|
|
405
408
|
visibles = visibles.filter((item) => !customs.includes(item));
|
|
@@ -3103,6 +3106,10 @@ zRoute.forms = (
|
|
|
3103
3106
|
case "tags":
|
|
3104
3107
|
obj.type = "tags";
|
|
3105
3108
|
break;
|
|
3109
|
+
case "html":
|
|
3110
|
+
obj.type = "html";
|
|
3111
|
+
obj.code = widgets[key].code || ""
|
|
3112
|
+
break;
|
|
3106
3113
|
case "checkbox":
|
|
3107
3114
|
obj.type = "checkbox";
|
|
3108
3115
|
break;
|