feat: 透出loading

This commit is contained in:
wuyue.xht 2020-04-19 22:38:26 +08:00
parent 84642355d4
commit e96934ae4c

View File

@ -38,6 +38,6 @@ export default class LazyComponent extends Component<IProps, IState> {
// loading扩展点
return createElement(Loading);
}
return createElement(Renderer as any, { schema, ...restProps });
return createElement(Renderer as any, { schema, loading: Loading ? createElement(Loading) : null, ...restProps });
}
}