Skip to content
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

Merged
merged 1 commit into from Mar 15, 2020

Conversation

wzhudev
Copy link
Member

@wzhudev wzhudev commented Jan 22, 2020

BREAKING CHANGE:

  • NZ_ICON_DEFAULT_TWOTONE_COLOR is removed. Use NzGlobalConfigService instead.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

@wzhudev wzhudev added this to the 9.0.0 milestone Jan 22, 2020
@zorro-bot
Copy link

zorro-bot bot commented Jan 22, 2020

This preview will be available after the AzureCI is passed.

@codecov
Copy link

codecov bot commented Jan 24, 2020

Codecov Report

Merging #4711 into master will decrease coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
components/core/testing/componet-bed.ts 90.90% <ø> (ø)
components/icon/testing/nz-icon-test.module.ts 100.00% <ø> (ø)
components/icon/icon.directive.ts 93.22% <100.00%> (ø)
components/icon/icon.module.ts 100.00% <100.00%> (ø)
components/icon/icon.service.ts 96.66% <100.00%> (ø)
components/table/src/table/tbody.component.ts 85.71% <0.00%> (-14.29%) ⬇️
components/table/src/table/tr-measure.component.ts 86.95% <0.00%> (-13.05%) ⬇️
...ents/time-picker/nz-time-picker-panel.component.ts
components/time-picker/nz-time-picker.module.ts
... and 11 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 98761f5...f5addf4. Read the comment docs.

@hsuanxyz
Copy link
Member

@wendellhu95 测试挂了

@wzhudev wzhudev changed the title chore(module:icon): refactor feat(module:icon): support add icon in feat modules Feb 19, 2020
@wzhudev wzhudev changed the title feat(module:icon): support add icon in feat modules feat(module:icon): support add icon in feat modules & refactor Feb 28, 2020

```ts
@NgModule({
imports: [CommonModule, NzIconModule.patch([QuestionOutline])],
Copy link
Member

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?

Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

增加了,已经在文档中去除了直接提供 NZ_ICONS 的使用方法。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

patch的方法改成forChild?

@wzhudev
Copy link
Member Author

wzhudev commented Mar 15, 2020

GitHub 这是怎么了,我已经 rebase 到了 master

StarFill,
UploadOutline,
UpOutline
];
Copy link
Member

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
Copy link
Member

@vthinkxie vthinkxie left a 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

@vthinkxie vthinkxie merged commit 0bcd2a9 into NG-ZORRO:master Mar 15, 2020
@wzhudev wzhudev deleted the icon-9.0 branch March 15, 2020 09:38
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this pull request Apr 9, 2020
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
@hsuanxyz hsuanxyz mentioned this pull request Apr 15, 2020
@wzhudev wzhudev mentioned this pull request Jul 10, 2020
2 tasks
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Aug 5, 2020
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants