-
Notifications
You must be signed in to change notification settings - Fork 113
feat: add 'horizontal-alternate' #374
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Caution Review failedThe pull request is closed. Walkthrough此次更改为 @rc-component/steps 包引入了更完善的语义化结构和样式定制能力。主要包括:引入 StepsContext 以支持样式/classNames 通过上下文传递,新增 StepIcon 组件和相关上下文,Step 元素从 div 改为 li,支持更细粒度的语义化 classNames/styles,及相关测试用例和类型增强。 Changes
Sequence Diagram(s)sequenceDiagram
participant App
participant Steps
participant StepsContext
participant Step
participant StepIcon
participant Rail
App->>Steps: 渲染 Steps 组件
Steps->>StepsContext: 提供 prefixCls/classNames/styles
Steps->>Step: 传递 step item 属性
Step->>StepsContext: 消费上下文
Step->>StepIcon: 渲染图标(可自定义 iconRender)
Step->>Rail: 渲染 Rail,合并 className/style
Step->>App: 支持 itemRender 包裹
Possibly related PRs
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
src/UnstableContext.tsOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the config "prettier" to extend from. Please check that the name of the config is correct. The config "prettier" was referenced from the config file in "/.eslintrc.js". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team. src/Rail.tsxOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the config "prettier" to extend from. Please check that the name of the config is correct. The config "prettier" was referenced from the config file in "/.eslintrc.js". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team. src/Steps.tsxOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the config "prettier" to extend from. Please check that the name of the config is correct. The config "prettier" was referenced from the config file in "/.eslintrc.js". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team.
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (10)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #374 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 3 6 +3
Lines 73 97 +24
Branches 31 36 +5
=========================================
+ Hits 73 97 +24 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
👍🏻 |
为 Timeline 做准备:
Summary by CodeRabbit
新功能
优化与改进
测试