From fe1e6fb8ce3a83b69783b49d0638f6e95a96ad9c Mon Sep 17 00:00:00 2001 From: albert <790321193@qq.com> Date: Sun, 24 Jul 2022 23:39:13 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20fix:=20=E4=BF=AE=E5=A4=8Dobject?= =?UTF-8?q?=E6=9C=89required=E5=B1=9E=E6=80=A7=E6=97=B6,=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E5=90=8E=E5=8A=A0=E8=BD=BD=E4=B8=BA=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- packages/json-schema-editor/main.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7005559..4edda59 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "json-schema-editor-vue", - "version": "2.0.3", + "version": "2.0.4", "author": "zhangyq", "description": "A json-schema editor of high efficient and easy-to-use, base on Vue", "keywords": [ diff --git a/packages/json-schema-editor/main.vue b/packages/json-schema-editor/main.vue index fbf9c29..e216362 100644 --- a/packages/json-schema-editor/main.vue +++ b/packages/json-schema-editor/main.vue @@ -233,7 +233,7 @@ export default { }, methods: { parseCustomProps () { - const ownProps = [ 'type', 'title', 'properties', 'items', ...Object.keys(this.advancedAttr)] + const ownProps = [ 'type', 'title', 'properties', 'items','required', ...Object.keys(this.advancedAttr)] Object.keys(this.pickValue).forEach(key => { ownProps.indexOf(key) === -1 && this.confirmAddCustomNode({ key: key, value: this.pickValue[key] }) })