-
Notifications
You must be signed in to change notification settings - Fork 4k
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
base: master
Are you sure you want to change the base?
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8969 +/- ##
==========================================
+ Coverage 91.91% 91.95% +0.03%
==========================================
Files 555 559 +4
Lines 19708 19766 +58
Branches 2944 2948 +4
==========================================
+ Hits 18114 18175 +61
+ Misses 1267 1264 -3
Partials 327 327 ☔ View full report in Codecov by Sentry. |
725fc04
to
ded0fa4
Compare
This comment was marked as duplicate.
This comment was marked as duplicate.
ded0fa4
to
7c8889f
Compare
c08c341
to
9a2bb62
Compare
9a2bb62
to
64e0fdc
Compare
64e0fdc
to
7fd13e8
Compare
@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> | ||
} |
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.
- 优先使用
<ng-content>
而不是传递 templateRef - 使用
<nz-icon>
而不是<span nz-icon>
@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> |
@if (progress) { | ||
<div class="ant-check-list-progressBar"> | ||
<div class="ant-check-list-progressBar-progress"> | ||
<nz-progress [nzPercent]="getPercent() | number: '1.0-0'"></nz-progress> |
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.
对于新组件,我们是否应该使用 signals API 来简化代码/提高性能? @Laffery
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.
赞同 WDYT @OriginRing
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