點選Sales Lead OWL裡某一個Lead,進入TI頁面:
TI頁面裡建立了一個Embedded Component:
aTargets的内容:
從上圖可以看出這個navigation是從Lead TI頁面screen内部,通過PublicOutportECLeadProduct到達Embedded Component.
在NavigationProcessor裡有個方法inscreen_dataflow,統一處理這種螢幕内跳轉:
有個很大的switch case語句,我們進入_inscreenToEC的分支。
觸發fromLead的inport,完成将LeadID從Lead TI頁面傳遞到EC的任務:
這個fireInport是通過promise實作的異步操作:
_fireInPortFired:
抛出InPortFired事件:
本文來自雲栖社群合作夥伴“汪子熙”,了解相關資訊可以關注微信公衆号"汪子熙"。