-
-
Notifications
You must be signed in to change notification settings - Fork 50.8k
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
Progress bar with steps #19613
Progress bar with steps #19613
Conversation
# Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
Deploy preview for ant-design ready! Built with commit 8e50c99 |
lint failed. Please check. |
components/progress/index.en-US.md
Outdated
| Property | Description | Type | Default | Version | | ||
| ---------- | ------------------------ | ------ | ------- | ------- | | ||
| stepsCount | the total step count | number | 3 | 4.0 | | ||
| stepWidth | to set with of each step | number | 14 | 4.0 | |
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.
How about width
directly and let us calculate each step cell width for this since circle
already provide this prop.
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.
How about
width
directly and let us calculate each step cell width for this sincecircle
already provide this prop.
I agree with you.
components/progress/index.en-US.md
Outdated
|
||
| Property | Description | Type | Default | Version | | ||
| ---------- | ------------------------ | ------ | ------- | ------- | | ||
| stepsCount | the total step count | number | 3 | 4.0 | |
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.
maybe count
directly.
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.
maybe
count
directly.
ok, i fix it right now
Codecov Report
@@ Coverage Diff @@
## 4.0-prepare #19613 +/- ##
===============================================
+ Coverage 97.46% 97.47% +<.01%
===============================================
Files 288 289 +1
Lines 7219 7235 +16
Branches 1957 2002 +45
===============================================
+ Hits 7036 7052 +16
Misses 183 183
Continue to review full report at Codecov.
|
Steps 看起来是内联的场景比较多, cc @afc163 |
可能要看一下容器太窄的时候,避免换行。 |
@@ -35,6 +35,7 @@ title: Progress | |||
| --- | --- | --- | --- | | |||
| strokeWidth | 进度条线的宽度,单位 px | number | 10 | | |||
| strokeColor | 进度条的色彩,传入 object 时为渐变 | string \| { from: string; to: string; direction: string } | - | | |||
| steps | 进度条总共步数 | number | - | |
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.
将进度条展示为分步效果,并可以设置步数
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
In many scenarios we need to use the following style to indicate the current step.
In order to implement it, the subcomponent named "Steps" is added to the Progress component.
📝 Changelog
☑️ Self Check before Merge
View rendered components/progress/demo/steps.md
View rendered components/progress/index.en-US.md
View rendered components/progress/index.zh-CN.md