admin管理员组文章数量:1024166
In my project I am receiving form schemas from the back-end that I want to dynamically display in the front-end. The form schema I want to try it with looks like this:
'{\n "components": [\n {\n "text": "# Whats for Dinner?",\n "label": "Text view",\n "type": "text",\n "layout": {\n "row": "Row_0qhrhgs",\n "columns": null\n },\n "id": "Field_1gcawnh"\n },\n {\n "values": [\n {\n "label": "Chicken",\n "value": "Chicken"\n },\n {\n "label": "Salad",\n "value": "Salad"\n }\n ],\n "label": "Food",\n "type": "radio",\n "layout": {\n "row": "Row_1w5annl",\n "columns": null\n },\n "id": "Field_04ss86e",\n "key": "meal"\n }\n ],\n "type": "default",\n "id": "dinner_form",\n "executionPlatform": "Camunda Cloud",\n "executionPlatformVersion": "8.6.0",\n "exporter": {\n "name": "Camunda Modeler",\n "version": "5.28.0"\n },\n "schemaVersion": 16\n}'
This form schema is stored in a String variable. Are there any libraries that might help with loading the form or is there another approach?
In my project I am receiving form schemas from the back-end that I want to dynamically display in the front-end. The form schema I want to try it with looks like this:
'{\n "components": [\n {\n "text": "# Whats for Dinner?",\n "label": "Text view",\n "type": "text",\n "layout": {\n "row": "Row_0qhrhgs",\n "columns": null\n },\n "id": "Field_1gcawnh"\n },\n {\n "values": [\n {\n "label": "Chicken",\n "value": "Chicken"\n },\n {\n "label": "Salad",\n "value": "Salad"\n }\n ],\n "label": "Food",\n "type": "radio",\n "layout": {\n "row": "Row_1w5annl",\n "columns": null\n },\n "id": "Field_04ss86e",\n "key": "meal"\n }\n ],\n "type": "default",\n "id": "dinner_form",\n "executionPlatform": "Camunda Cloud",\n "executionPlatformVersion": "8.6.0",\n "exporter": {\n "name": "Camunda Modeler",\n "version": "5.28.0"\n },\n "schemaVersion": 16\n}'
This form schema is stored in a String variable. Are there any libraries that might help with loading the form or is there another approach?
本文标签: vuejsHow to load Vue componentform from JSON form schemaStack Overflow
版权声明:本文标题:vue.js - How to load Vue componentform from JSON form schema - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745517285a2154130.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论