-
-
Notifications
You must be signed in to change notification settings - Fork 50.1k
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
fix: fix trailColor in line-type progress and add trailColor in docs #21552
Conversation
components/progress/demo/line.md
Outdated
@@ -23,6 +23,7 @@ ReactDOM.render( | |||
<Progress percent={70} status="exception" /> | |||
<Progress percent={100} /> | |||
<Progress percent={50} showInfo={false} /> | |||
<Progress percent={30} trailColor="#1890ff30" /> |
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.
演示中可以不展示。
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.
已去掉
components/progress/Line.tsx
Outdated
} = props; | ||
let backgroundProps; | ||
let trailStyle; |
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.
定义应靠近使用的地方。
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.
已定义于到最靠近使用的地方
f3ebb9c
to
3dbbe50
Compare
Codecov Report
@@ Coverage Diff @@
## master #21552 +/- ##
==========================================
+ Coverage 97.79% 97.79% +<.01%
==========================================
Files 304 304
Lines 7019 7021 +2
Branches 1900 1936 +36
==========================================
+ Hits 6864 6866 +2
Misses 155 155
Continue to review full report at Codecov.
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit d0295ab:
|
加个用例把覆盖率提起来。 |
3dbbe50
to
d0295ab
Compare
@AshoneA Well done! |
🤔 This is a ...
🔗 Related issue link
#21550
💡 Background and solution
fix
trailColor
props intype=line
progress and add trailColor in docs📝 Changelog
trailColor
not working whentype=line
.trailColor
属性在type=line
时无效果的问题。☑️ Self Check before Merge
View rendered components/progress/demo/line.md
View rendered components/progress/index.en-US.md
View rendered components/progress/index.zh-CN.md