天天看点

SAP Spartacus storefront.component.html 怎么关联到其他的页面

SAP Spartacus storefront.component.html 怎么关联到其他的页面
SAP Spartacus storefront.component.html 怎么关联到其他的页面

main节点里的cx-page-layout节点是通过ActivatedRoute创建的:

SAP Spartacus storefront.component.html 怎么关联到其他的页面
SAP Spartacus storefront.component.html 怎么关联到其他的页面

section1里第一个节点就是banner:

SAP Spartacus storefront.component.html 怎么关联到其他的页面
SAP Spartacus storefront.component.html 怎么关联到其他的页面

下图的cx-page-layout, 实际是消费PageLayout,并给其名为section的input,传入一个字符串值:header

SAP Spartacus storefront.component.html 怎么关联到其他的页面

传入header给PageLayoutComponent:

SAP Spartacus storefront.component.html 怎么关联到其他的页面
SAP Spartacus storefront.component.html 怎么关联到其他的页面

在 layout.config.ts 里定义的这些高亮的字符串,是 slotID:

SAP Spartacus storefront.component.html 怎么关联到其他的页面
SAP Spartacus storefront.component.html 怎么关联到其他的页面

继续阅读