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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.95%. Comparing base (f1d8d92) to head (7fd13e8).
Report is 6 commits behind head on master.

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.
📢 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
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>

@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>
Copy link
Collaborator

@HyperLife1119 HyperLife1119 Jan 22, 2025

Choose a reason for hiding this comment

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

对于新组件,我们是否应该使用 signals API 来简化代码/提高性能? @Laffery

Copy link
Collaborator

Choose a reason for hiding this comment

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

赞同 WDYT @OriginRing

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