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:check-list): add check-list component #8969

Merged
merged 7 commits into from
Feb 20, 2025

Conversation

OriginRing
Copy link
Collaborator

@OriginRing OriginRing commented Jan 16, 2025

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?

截屏2025-01-16 10 24 49

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@Laffery

This comment was marked as outdated.

Copy link

codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.96%. Comparing base (1f8f4da) to head (adba7b9).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8969      +/-   ##
==========================================
+ Coverage   91.94%   91.96%   +0.01%     
==========================================
  Files         555      559       +4     
  Lines       19708    19741      +33     
  Branches     2946     2945       -1     
==========================================
+ Hits        18121    18154      +33     
  Misses       1261     1261              
  Partials      326      326              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@OriginRing OriginRing force-pushed the feat/check-list branch 2 times, most recently from 725fc04 to ded0fa4 Compare January 16, 2025 02:29
@OriginRing

This comment was marked as duplicate.

@OriginRing OriginRing changed the title WIP feat(module:check-list): add check-list component feat(module:check-list): add check-list component Jan 17, 2025
@OriginRing OriginRing force-pushed the feat/check-list branch 4 times, most recently from c08c341 to 9a2bb62 Compare January 17, 2025 09:37
@HyperLife1119 HyperLife1119 modified the milestones: v19.1, docs-site Jan 18, 2025
@OriginRing OriginRing force-pushed the feat/check-list branch 2 times, most recently from 64e0fdc to 7fd13e8 Compare January 21, 2025 08:29
Comment on lines 18 to 23
@if (!!triggerRender) {
<ng-container *nzStringTemplateOutlet="triggerRender">{{ triggerRender }}</ng-container>
} @else {
<span nz-icon nzType="check-circle" nzTheme="outline" class="ant-check-list-icon"></span>
<div class="ant-check-list-description">{{ locale.checkList }}</div>
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

  • 优先使用 <ng-content> 而不是传递 templateRef
  • 使用 <nz-icon> 而不是 <span nz-icon>
Suggested change
@if (!!triggerRender) {
<ng-container *nzStringTemplateOutlet="triggerRender">{{ triggerRender }}</ng-container>
} @else {
<span nz-icon nzType="check-circle" nzTheme="outline" class="ant-check-list-icon"></span>
<div class="ant-check-list-description">{{ locale.checkList }}</div>
}
<ng-content>
<nz-icon nzType="check-circle" nzTheme="outline" class="ant-check-list-icon" />
<div class="ant-check-list-description">{{ locale.checkList }}</div>
</ng-content>

Copy link
Collaborator

@Laffery Laffery left a comment

Choose a reason for hiding this comment

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

LGTM

@Laffery
Copy link
Collaborator

Laffery commented Feb 20, 2025

Now it's implemented with signal API. Would you like to take a look @HyperLife1119 ?

Copy link
Collaborator

@HyperLife1119 HyperLife1119 left a comment

Choose a reason for hiding this comment

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

LGTM

@Laffery Laffery merged commit 4cd298b into NG-ZORRO:master Feb 20, 2025
9 of 10 checks passed
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.

3 participants