SAP Spartacus SplitViewComponent Migration 的一个具体例子
2021/5/5 18:25:24
本文主要是介绍SAP Spartacus SplitViewComponent Migration 的一个具体例子,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
参考 Pull Request:https://github.com/SAP/spartacus/pull/9946/files
- 首先在 docs/migration/3.0_md 里添加文字描述:
- projects/schematics/src/migrations/3_0/constructor-deprecations/constructor-deprecations.ts
在 CONSTRUCTOR_DEPRECATION_DATA 数组里,添加一个新元素。该元素来源于:./data/split-view.component.migration
注意命名规范:split-view.component.migration, 以 migration.ts 结尾。
- projects/schematics/src/migrations/3_0/constructor-deprecations/data/split-view.component.migration.ts
声明废弃的参数以及新引入的参数:
注意,属性值都不能直接用字符串常量,后者必须在 projects/schematics/src/shared/constants.ts 里定义:
更多Jerry的原创文章,尽在:“汪子熙”:
这篇关于SAP Spartacus SplitViewComponent Migration 的一个具体例子的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-06-26小白家庭 nas 搭建方案-icode9专业技术文章分享
- 2024-06-23AI大模型企业应用实战(14)-langchain的Embedding
- 2024-06-23AI大模型企业应用实战(15)-langchain核心组件
- 2024-06-23AI大模型企业应用实战(16)-langchain核心组件
- 2024-06-23AI 大模型企业应用实战(06)-初识LangChain
- 2024-06-19EntBot.ai: AI Website Chatbot for Product Guides and Development Doc
- 2024-06-17zero-shot-learning-definition-examples-comparison
- 2024-06-06Package Easy(基于 NSIS 的打包exe安装包工具)使用方法-icode9专业技术文章分享
- 2024-06-06基于 casdoor 的 ELK 开源登录认证解决方案: elk-auth-casdoor-icode9专业技术文章分享
- 2024-05-29Elasticsearch慢查询日志配置