New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(module:icon): support add icon in feat modules & refactor #4711
Conversation
This preview will be available after the AzureCI is passed. |
Codecov Report
@@ Coverage Diff @@
## master #4711 +/- ##
==========================================
- Coverage 91.49% 91.43% -0.06%
==========================================
Files 535 539 +4
Lines 13589 13623 +34
Branches 2028 2031 +3
==========================================
+ Hits 12433 12456 +23
- Misses 691 698 +7
- Partials 465 469 +4
Continue to review full report at Codecov.
|
@wendellhu95 测试挂了 |
components/icon/doc/index.en-US.md
Outdated
|
||
```ts | ||
@NgModule({ | ||
imports: [CommonModule, NzIconModule.patch([QuestionOutline])], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe NzIconModule .forChild is better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and change { provide: NZ_ICONS, useValue: icons } to forRoot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
增加了,已经在文档中去除了直接提供 NZ_ICONS 的使用方法。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
patch的方法改成forChild?
GitHub 这是怎么了,我已经 rebase 到了 master |
StarFill, | ||
UploadOutline, | ||
UpOutline | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这部分的图标是不是可以通过forChild直接在每个组件里面import
feat(module:icon): support import icon in submodules fix: fix patch feat: rename API docs: fix doc fix: remove redundant code docs: fix unrenamed API chore(module:icon): refactor test: fix tests fix: fix tests BREAKING CHANGE: - `NZ_ICON_DEFAULT_TWOTONE_COLOR` is removed. Use `NzGlobalConfigService` instead. chore: remove strange file test: fix test feat: add forRoot docs: change doc docs: fix icon English doc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some topo problem will fix later
feat(module:icon): support import icon in submodules fix: fix patch feat: rename API docs: fix doc fix: remove redundant code docs: fix unrenamed API chore(module:icon): refactor test: fix tests fix: fix tests BREAKING CHANGE: - `NZ_ICON_DEFAULT_TWOTONE_COLOR` is removed. Use `NzGlobalConfigService` instead. chore: remove strange file test: fix test feat: add forRoot docs: change doc docs: fix icon English doc
feat(module:icon): support import icon in submodules fix: fix patch feat: rename API docs: fix doc fix: remove redundant code docs: fix unrenamed API chore(module:icon): refactor test: fix tests fix: fix tests BREAKING CHANGE: - `NZ_ICON_DEFAULT_TWOTONE_COLOR` is removed. Use `NzGlobalConfigService` instead. chore: remove strange file test: fix test feat: add forRoot docs: change doc docs: fix icon English doc
BREAKING CHANGE:
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information