-
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
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.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. |
725fc04
to
ded0fa4
Compare
This comment was marked as duplicate.
This comment was marked as duplicate.
ded0fa4
to
7c8889f
Compare
c08c341
to
9a2bb62
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> |
7fd13e8
to
fc61703
Compare
feat(module:check-list): add check-list component
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.
LGTM
Now it's implemented with signal API. Would you like to take a look @HyperLife1119 ? |
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.
LGTM
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