zl程序教程

您现在的位置是:首页 >  其他

当前栏目

SAP Spartacus UI TabParagraphContainerComponent 的工作原理

SAPUI原理 工作 Spartacus
2023-09-14 09:04:00 时间

首先渲染若干个 div button,个数等于 TabContainer 里包含的 Component 元素个数。

然后是利用 cxComponentWrapper 加载真实的 Component.


integration lib 提供的 CMS mapping 没有生效。
但我看到已经配置进去了?

这不是调用了吗?

我查过了,无论 this.staticCmsConfig 还是 this.config.cmsComponents, 都没有 Visual 开头的 Component.

Visual Module 也调用了,为啥 上述两个结构里都没有?

构造函数里设置断点,看看 config 的值:

CMSComponents 里此时就已经没有 Visual Component 了:

components 字段包含了 TabPanelContainer 应该显示的 Component 集合。

Flex type 字段值会用在 Angular Component 的映射关系维护上。

product detail 已经成功加载了:

div button 对应 tab 的标签。然后专门有一个 active div,显示标签点击后对应的实际内容。

Spec 页面,必须当该产品存在 classification 属性时才有值:

更多Jerry的原创文章,尽在:“汪子熙”: