Comments (5)
大致看了下,应该是 这里的schema 没有经过retrieve方法处理,要看看哪里处理合适,如果你有兴趣的话 也可以贡献代码
类似下面
retrieveSchema(xxxx)
from vue-json-schema-form.
经过进一步测试,初步排出:该问题是因为子节点为$ref
对比测试,直接使用对应的Object内容而非$ref
,对应的Playground中能够正常显示:
{
"properties": {
"common": {
"oneOf": [
{
"properties": {
"fooA": {
"default": 0,
"title": "ClassA的属性",
"type": "number"
}
},
"title": "类型A",
"type": "object"
},
{
"properties": {
"fooB": {
"default": 0,
"title": "ClassB的属性",
"type": "number"
}
},
"title": "类型B",
"type": "object"
}
],
"title": "OneOf属性",
"description": "A/B类型二选一"
}
},
"title": "OneOf模型测试",
"type": "object"
}
from vue-json-schema-form.
子节点不是 $ref 的时候是可以正常取到标题的对吧 ?
from vue-json-schema-form.
子节点不是 $ref 的时候是可以正常取到标题的对吧 ?
😄是的,上面提到的两个对比测试:
- 子节点是$ref,标题变成“选项 1,2...”:Playground链接
- 不是 $ref,可以正常取到标题“类型A,B”:Playground链接
from vue-json-schema-form.
这周处理下
from vue-json-schema-form.
Related Issues (20)
- Type 类型兼容数组不报错
- 模块 ""@lljj/vue3-form-ant"" 没有导出的成员 "JsonSchemaFormAntdV4" HOT 1
- 建议支持Dialog HOT 2
- 布局配置:formProps属性不生效 HOT 3
- 如何将保存和取消按钮放置在整个页面其他位置,而不是最底端
- [求助] 夜间模式下,array的背景不会自动成暗色 HOT 3
- Inline props not working
- AutoCompleteWidget如何使用 HOT 1
- input number默认失去焦点才更新form,如何修改这个行为?希望可以在用户输入的时候实时更新form数据 HOT 2
- 关于Vue JSON Schema Form使用文本框加上的图标问题 HOT 1
- 有考虑支持 arco design 的vue版本吗 HOT 1
- on-validation-failed 事件 中的 errorObj 用 console.log 打印出来是undefine HOT 1
- 求助,map[string]string动态添加属性,如何生成schema HOT 3
- Q: schema 生成那个页面有导出组件使用吗 HOT 1
- Vue3中, 对Vue-Form进行复用, 之前的formData没有清除, 带到下一次提交的值中了 HOT 1
- Vue3使用SelectWidget多选,插槽没起效果 HOT 1
- import VueForm 的时候报错了 HOT 1
- 下拉或单选 多选等组件的选项内容支持disabled嘛 HOT 1
- Amazon 创建商品的JsonSchema HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-json-schema-form.