feat(steps): 多端适配
🤔 这个变动的性质是?
- [x] 新特性提交
- [x] 功能增强
- [x] 重构
- [x] 代码风格优化
Summary by CodeRabbit
-
新功能
- 新增
step条目以扩展子元素的处理能力。 - 组件“Step”和“Steps”的版本号从“2.0.0”更新至“3.0.0”。
- 引入
lineWidth属性,允许自定义步骤条的宽度。
- 新增
-
样式改进
- 对
.nut-step组件的样式进行全面优化,提高了响应式设计与视觉层次。 - 新增多个状态类以改善视觉表现。
- 对
-
文档更新
Demo组件中的按钮文本更改为“Next”,增强用户友好性。- 通过条件渲染提高组件的灵活性与用户体验。
-
其他
- 改善了多个组件的布局与适应性,确保在不同平台上表现一致。
Walkthrough
此次更改引入了对步骤组件的增强,主要包括在 src/config.json 文件中将 Step 和 Steps 组件的版本号从 2.0.0 升级到 3.0.0。同时,src/packages/step/step.scss 文件中的样式进行了调整,以改善 .nut-step 组件的布局和视觉表现。此外,src/packages/step/step.taro.tsx 和 src/packages/steps/steps.taro.tsx 文件中也进行了功能增强,分别添加了新的 lineWidth 属性和改进了渲染逻辑,以提高与 Taro 框架的兼容性。
Changes
| 文件 | 更改摘要 |
|---|---|
src/config.json |
更新 "Step" 和 "Steps" 组件的版本号从 "2.0.0" 到 "3.0.0"。 |
src/packages/step/step.scss |
修改了 .nut-step 组件及其子元素的样式,优化了布局。 |
src/packages/step/step.taro.tsx |
更新 StepProps 接口,新增 lineWidth 属性并设置默认值。 |
src/packages/steps/steps.taro.tsx |
修改渲染逻辑,增强与 Taro 框架的兼容性。 |
Possibly related PRs
- #2670: 此PR涉及更新
src/config.json中的InfiniteLoading组件版本,与主PR中的Step和Steps版本更新直接相关。 - #2363: 此PR关注于 React Native 中布局信息的获取,可能间接与主PR中的组件更新相关。
- #2645: 此PR引入了
Calendar组件的新属性,也涉及版本更新,与主PR中的更改相似。 - #2673: 此PR增强了 CSS 优化并配置了移除 RTL 样式,可能与主PR中的组件结构和组织相关。
- #2680: 此PR解决了构建和测试失败,可能与主PR中更新的组件稳定性相关。
- #2685: 此PR确保标签完全可见,可能与主PR中
Step和Steps组件的布局和呈现相关。
Suggested labels
size/XXL, 2.x
Poem
🐇
在步骤的舞台上,我欢快地跳,
新功能新样式,让我乐陶陶。
点击一步步,欢笑满天飞,
感谢每一个改动,真是心花怒放! 🌼✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
🪧 Tips
Chat
There are 3 ways to chat with CodeRabbit:
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
I pushed a fix in commit <commit_id>, please review it.Generate unit testing code for this file.Open a follow-up GitHub issue for this discussion.
- Files and specific lines of code (under the "Files changed" tab): Tag
@coderabbitaiin a new review comment at the desired location with your query. Examples:@coderabbitai generate unit testing code for this file.@coderabbitai modularize this function.
- PR comments: Tag
@coderabbitaiin a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.@coderabbitai read src/utils.ts and generate unit testing code.@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.@coderabbitai help me debug CodeRabbit configuration file.
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)
@coderabbitai pauseto pause the reviews on a PR.@coderabbitai resumeto resume the paused reviews.@coderabbitai reviewto trigger an incremental review. This is useful when automatic reviews are disabled for the repository.@coderabbitai full reviewto do a full review from scratch and review all the files again.@coderabbitai summaryto regenerate the summary of the PR.@coderabbitai resolveresolve all the CodeRabbit review comments.@coderabbitai configurationto show the current CodeRabbit configuration for the repository.@coderabbitai helpto get help.
Other keywords and placeholders
- Add
@coderabbitai ignoreanywhere in the PR description to prevent this PR from being reviewed. - Add
@coderabbitai summaryto generate the high-level summary at a specific location in the PR description. - Add
@coderabbitaianywhere in the PR title to generate the title automatically.
CodeRabbit Configuration File (.coderabbit.yaml)
- You can programmatically configure CodeRabbit by adding a
.coderabbit.yamlfile to the root of your repository. - Please see the configuration documentation for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation:
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
Documentation and Community
- Visit our Documentation for detailed information on how to use CodeRabbit.
- Join our Discord Community to get help, request features, and share feedback.
- Follow us on X/Twitter for updates and announcements.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 83.95%. Comparing base (
7515810) to head (969fd19). Report is 6 commits behind head on V3.0.
Additional details and impacted files
@@ Coverage Diff @@
## V3.0 #2547 +/- ##
=======================================
Coverage 83.95% 83.95%
=======================================
Files 221 221
Lines 17849 17849
Branches 2679 2679
=======================================
Hits 14986 14986
Misses 2858 2858
Partials 5 5
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
鸿蒙构建再检查一下
收到。