SAP Spartacus B2B 页面 Popover Component 的条件显示逻辑

以下图所示,这个 B2B 页面 的 Popover Component:spa

触发其的按钮位于 cx-org-card 内:rem

而下面这个 assigned users 明细页面,为何就没有显示 Popover Component 的(i) 按钮了呢?get

究其缘由,selector cx-org-card 对应 CardComponent,在其模板实现里,有一个标志位,控制是否显示 Popover Component:showHintit

整个按钮,被 *ngIf Directive 控制。模板

budget 明细页面没有 (i) icon,由于消费 card Component 时,没有显式传入 showHint = true:class

再比较 unit detail Component,显式传入的 showHint = true:select

更多Jerry的原创文章,尽在:"汪子熙":
im

相关文章
相关标签/搜索