Skip to content
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

使用anyof定义时,若两部分数据结构不同表单无法正常使用 #256

Open
Eisus opened this issue Dec 19, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Eisus
Copy link

Eisus commented Dec 19, 2022

vue和ui框架

vue 3 + antd

问题描述

在使用 anyOf 进行定义时,若anyOf 第一项是基本数据类型,第二项是Object,在进行选项切换时js会报错。

如何复现

测试所使用数据结构如下:
{ "title": "测试专用页", "type": "object", "description": "输入你的Schema,顶部分享按钮即可快速生成链接", "properties": { "value": { "title": "测试数据结构改变", "anyOf": [ { "enum": [ "text1", "text2", "text3" ], "type": "string", "title": "单选" }, { "title": "多选", "type": "object", "properties": { "choices": { "title": "多选数据", "type": "array", "items": { "enum": [ "text1", "text2", "text3" ], "type": "string" } } } } ] } } }

当进行选项切换时js报错,页面卡死。

期望的结果

想请问下这个问题是否会计划修复?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants