diff --git a/frontend/package.json b/frontend/package.json index 053f67aefc..181b934e95 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -21,6 +21,7 @@ "echarts": "^4.6.0", "el-table-infinite-scroll": "^1.0.10", "element-ui": "^2.13.0", + "generate-schema": "^2.6.0", "html2canvas": "^1.0.0-rc.7", "js-base64": "^3.4.4", "json-bigint": "^1.0.0", diff --git a/frontend/src/business/components/common/json-schema/JsonEditor.vue b/frontend/src/business/components/common/json-schema/JsonEditor.vue index a88c1a4adc..e4c18afe1d 100644 --- a/frontend/src/business/components/common/json-schema/JsonEditor.vue +++ b/frontend/src/business/components/common/json-schema/JsonEditor.vue @@ -2,8 +2,9 @@
+ 导入
- +
@@ -11,25 +12,26 @@
{{this.preview}}
- + + + + diff --git a/frontend/src/business/components/common/json-schema/ot/lib/demo.html b/frontend/src/business/components/common/json-schema/lib/demo.html similarity index 51% rename from frontend/src/business/components/common/json-schema/ot/lib/demo.html rename to frontend/src/business/components/common/json-schema/lib/demo.html index 0a82072ad0..eacff00704 100644 --- a/frontend/src/business/components/common/json-schema/ot/lib/demo.html +++ b/frontend/src/business/components/common/json-schema/lib/demo.html @@ -1,8 +1,8 @@ json-schema-editor-vue demo - + - +