关于sap:SAP-Spartacus-SplitViewComponent-Migration-的一个具体例子

3次阅读

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

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

  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.migration

留神命名标准:split-view.component.migration, 以 migration.ts 结尾。

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

申明废除的参数以及新引入的参数:

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

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

正文完
 0