关于sap:SAP-Spartacus-B2B-页面-Popover-Component-的条件显示逻辑

8次阅读

共计 340 个字符,预计需要花费 1 分钟才能阅读完成。

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

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

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

究其原因,selector cx-org-card 对应 CardComponent,在其模板实现里,有一个标记位,管制是否显示 Popover Component:showHint

整个按钮,被 *ngIf Directive 管制。

budget 明细页面没有 (i) icon,因为生产 card Component 时,没有显式传入 showHint = true:

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

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

正文完
 0