Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

$ref 嵌套的时候出现赋值错误 #57

Closed
bailihua93 opened this issue Apr 8, 2021 · 1 comment
Closed

$ref 嵌套的时候出现赋值错误 #57

bailihua93 opened this issue Apr 8, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@bailihua93
Copy link

{
"$schema": "https://json-schema.org/draft-06/schema#",
"definitions": {
"FileHeader": {
"type": "object",
"required": [
"author",
"date",
"description",
"revMajor",
"revMinor"
],
"properties": {
"author": {
"type": "string",
"title": "作者"
}
},
"title": "文件头"
},
"Directory": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"$ref":"#/definitions/FileHeader"
}
},
"title": "目录"
}
},
"type": "object",
"anyOf": [
{
"$ref": "#/definitions/Directory"
}
]
}

这种作为schema的时候会

vue.runtime.esm.js?2b0e:1888 Error: please transfer a valid prop path to form item!
at getPropByPath (util.js?8122:80)
at VueComponent.fieldValue (form-item.js?3787:602)
at Watcher.get (vue.runtime.esm.js?2b0e:4479)
at Watcher.evaluate (vue.runtime.esm.js?2b0e:4584)
at VueComponent.computedGetter [as fieldValue] (vue.runtime.esm.js?2b0e:4836)
at VueComponent.mounted (form-item.js?3787:764)
at invokeWithErrorHandling (vue.runtime.esm.js?2b0e:1854)
at callHook (vue.runtime.esm.js?2b0e:4219)
at Object.insert (vue.runtime.esm.js?2b0e:3139)
at invokeInsertHook (vue.runtime.esm.js?2b0e:6346)

@lljj-x
Copy link
Owner

lljj-x commented Apr 8, 2021

多谢反馈,下个版本修复

@lljj-x lljj-x added the bug Something isn't working label Apr 8, 2021
@lljj-x lljj-x closed this as completed in 6dd9780 Apr 11, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants