fix: 缓存包裹过hoc的组件

This commit is contained in:
wuyue.xht 2021-07-14 21:11:26 +08:00 committed by lihao.ylh
parent bae426be2b
commit 4e8c806e6a

View File

@ -462,6 +462,7 @@ export default function baseRenererFactory() {
// 对于可以获取到ref的组件做特殊处理
if (!acceptsRef(Comp)) {
Comp = compWrapper(Comp);
components[schema.componentName] = Comp;
}
otherProps.ref = (ref: any) => {
this.$(props.fieldId || props.ref, ref); // 收集ref