mirror of
https://github.com/Ssl1S/json-schema-editor-vue.git
synced 2025-12-30 09:47:54 +08:00
🐛 fix: 修复object有required属性时,弹窗后加载为自定义属性的问题
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "json-schema-editor-vue",
|
"name": "json-schema-editor-vue",
|
||||||
"version": "2.0.3",
|
"version": "2.0.4",
|
||||||
"author": "zhangyq",
|
"author": "zhangyq",
|
||||||
"description": "A json-schema editor of high efficient and easy-to-use, base on Vue",
|
"description": "A json-schema editor of high efficient and easy-to-use, base on Vue",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
parseCustomProps () {
|
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 => {
|
Object.keys(this.pickValue).forEach(key => {
|
||||||
ownProps.indexOf(key) === -1 && this.confirmAddCustomNode({ key: key, value: this.pickValue[key] })
|
ownProps.indexOf(key) === -1 && this.confirmAddCustomNode({ key: key, value: this.pickValue[key] })
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user