Closed Imporial closed 8 years ago
如何将参数传递给动态调用的组件?
this.windowPromise.then((cr: ComponentRef) => { var site: 动态调用的组件 = cr.instance; // 获取鼠标位置 site.mouseX = event.clientX; site.mouseY = event.clientY; }
在手动加载之后调用 then 函数,类似如此
如何将参数传递给动态调用的组件?