SAP Commerce Cloud Product Action 导出的层级结构设计
2023-09-14 09:03:51 时间
以 ProductReview Effect 为例,代码里使用了 ProductActions:
这个 productAction 是从一个 index.ts 里导入的:
index.ts 首先从一个叫做 product-group.actions.index 的文件里导入所有 action,然后再导出:
product-group.actions.index: 又导出了四个文件:
其中 product.action 和 页面 Product 数据加载逻辑有关。
而单个的 product action,负责定义 action 类和 action 常量字符串:
更多Jerry的原创文章,尽在:“汪子熙”:
相关文章
- SAP CRM 和 SAP Cloud for Customer 的表格列项目宽度调整的原理介绍
- SAP UI5 bindProperty的实现
- sap.ui.core.ComponentContainer
- SAP S/4HANA Layer Repository(LREP)的读取逻辑调试
- 在SAP CAL(Cloud Application Library)上搭建ABAP HANA系统
- SAP Commerce Cloud 里的 jsapps 和 jsapps-ssr 容器
- 如何获取 SAP Commerce Cloud Spartacus UI 购物车 Cart 的加载状态
- 使用Schematics启用SAP Spartacus的SSR模式
- 机器学习在SAP Cloud for Customer中的应用
- SAP Cloud for Customer里图片数据读取的逻辑
- SAP Cloud for Customer里如何根据产品ID拿到其UUID
- SAP Cloud for Customer里的ticket回复UI的实现
- SAP Cloud for Customer前端url里的一长串base64code是在哪里根据什么逻辑计算的
- 什么是 SAP 电商云的 Cloud portal 和登录用户
- SAP HANA CLOUD和aws一个实际项目中的性能比较
- SAP APF tile点击之后,都发生了哪些事情
- 通过一个具体的例子,讲解 SAP Cloud Platform Integration(CPI) 的使用方法
- SAP Commerce Cloud Product Review 的添加逻辑
- 使用SAP Analytics Cloud展示全球新冠肺炎确诊总人数的分布情况
- SAP HANA Cloud 简介