amis icon indicating copy to clipboard operation
amis copied to clipboard

通过amis updateProps()更新的schema,不支持definitions

Open cnluderson opened this issue 4 years ago • 2 comments

复现: 1. 通过amis.embed()加载schema1.json,里面配置一个definitions。 然后通过 updateProps()更新为schema2.json,调用schema1.json中的definitions成功。

2. 通过amis.embed()加载schema1.json。 然后通过 updateProps()更新为schema2.json,并配置definitions,然后调用它失败。提示 找不到对应的渲染器。Path: page/body/..../undefined
{ "$ref": "tab" }

cnluderson avatar Mar 01 '22 09:03 cnluderson

你怎么写的啊? 这玩意好像不支持更新Schema吧,可以更新主题

hyzx86 avatar Mar 28 '22 12:03 hyzx86

呃。。确实可以~ 打扰了

hyzx86 avatar Mar 28 '22 12:03 hyzx86