-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
array类型的参数,items使用anyOf回显问题 #317
Labels
bug
Something isn't working
Comments
如果把formdata的两个值替换下呢? 第一个值匹配第二个anyof 能正确选中吗
…---原始邮件---
发件人: ***@***.***>
发送时间: 2023年8月1日(周二) 下午4:17
收件人: ***@***.***>;
抄送: ***@***.***>;
主题: [lljj-x/vue-json-schema-form] array类型的参数,items使用anyOf回显问题 (Issue #317)
Vue2,element-ui,vue-json-schema-form 1.14.2
我定义了一个array类型的参数pipeline,它的items使用了anyOf(BinMethod,HeteroMapMethod),默认值是chi_bin和woe_map,分别在BinMethod和HeteroMapMethod的枚举参数中,出现了这样的问题,第二个参数woe_map的anyOf应该回显HeteroMapMethod,但实际情况显示了BinMethod,导致下拉也有问题,我想问一下这种情况,怎么才能有正确的参数回显
代码如下:,
{ "title": "测试专用页", "type": "object", "description": "输入你的Schema,顶部分享按钮即可快速生成链接", "properties": { "pipeline": { "title": "Pipeline", "default": [ "chi_bin", "woe_map" ], "type": "array", "items": { "anyOf": [ { "$ref": "#/definitions/BinMethod", "title": "BinMethod" }, { "$ref": "#/definitions/HeteroMapMethod", "title": "HeteroMapMethod" } ] } } }, "definitions": { "BinMethod": { "title": "BinMethod", "description": "An enumeration.", "enum": [ "equifrequent_bin", "equidist_bin", "chi_bin", "dt_bin" ], "type": "string" }, "HeteroMapMethod": { "title": "HeteroMapMethod", "description": "An enumeration.", "enum": [ "woe_map" ], "type": "string" } } }
效果如下:
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
并不能 |
问题已经明确 会出一个修复版本。 也会处理下,切换index时候会清空掉旧的select 内容。 预计周末会发布新版本 |
最新版已修复 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Vue2,element-ui,vue-json-schema-form 1.14.2
我定义了一个array类型的参数pipeline,它的items使用了anyOf(BinMethod,HeteroMapMethod),默认值是chi_bin和woe_map,分别在BinMethod和HeteroMapMethod的枚举参数中,出现了这样的问题,第二个参数woe_map的anyOf应该回显HeteroMapMethod,但实际情况显示了BinMethod,导致下拉也有问题,我想问一下这种情况,怎么才能有正确的参数回显
代码如下:,
效果如下:
![image](https://private-user-images.githubusercontent.com/40648460/257449823-3724651b-5856-491b-9548-6945441c2c6e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkzNTIxMjAsIm5iZiI6MTcxOTM1MTgyMCwicGF0aCI6Ii80MDY0ODQ2MC8yNTc0NDk4MjMtMzcyNDY1MWItNTg1Ni00OTFiLTk1NDgtNjk0NTQ0MWMyYzZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI1VDIxNDM0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU1ZGM5Yzc3Yzc3MzdhOGFmOWYzZjVmZDlkMzhiNjljOTgzMmY4NTU4OWQ3MjgwZDkwZDVjZTU4NDgxMTNiNGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.WiddW7d29MpZdvbPUbIJk3vftl-XAEuoOqdklOIE4XA)
The text was updated successfully, but these errors were encountered: