最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

vue.js - How to load Vue componentform from JSON form schema - Stack Overflow

programmeradmin1浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论