SAP Spartacus SplitViewComponent Migration 的一个具体例子

参考 Pull Request:https://github.com/SAP/sparta...git

  1. 首先在 docs/migration/3.0_md 里添加文字描述:

  1. projects/schematics/src/migrations/3_0/constructor-deprecations/constructor-deprecations.ts

在 CONSTRUCTOR_DEPRECATION_DATA 数组里,添加一个新元素。该元素来源于:./data/split-view.component.migrationgithub

注意命名规范:split-view.component.migration, 以 migration.ts 结尾。数组

  1. projects/schematics/src/migrations/3_0/constructor-deprecations/data/split-view.component.migration.ts

声明废弃的参数以及新引入的参数:spa

注意,属性值都不能直接用字符串常量,后者必须在 projects/schematics/src/shared/constants.ts 里定义:component

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

相关文章
相关标签/搜索