比如,在mount函数中调用:
export function mount(props){
if(typeof props['setLoading'] === "function"){
props["setLoading"]()
}
}
引用:和 的方式一同使用时,会额外向子应用传递一个 setLoading 的属性,在子应用中合适的时机执行 masterProps.setLoading(false),可以标记微模块的整体 loading 为完成状态。
标题:@umijs/plugin-qiankun