让我们以oneOf
rjsf docs 中的默认示例为例:
const schema = const schema = {
type: 'object',
oneOf: [
{
properties: {
lorem: {
type: 'string'
}
},
required: ['lorem']
},
{
properties: {
ipsum: { type: 'string' }
},
required: ['ipsum']
}
]
}
是否可以为在项目之间切换的选择添加标签oneOf
?