Closed oasis-cloud closed 2 days ago
此次更改涉及src/packages/pagination/pagination.taro.tsx
中的Pagination
组件,新增了一个名为addColorForHarmony
的工具函数,用于根据当前页面状态有条件地为prev
和next
按钮应用颜色。prev
按钮在当前页为第一页时颜色为#c2c4cc
,否则为#ff0f23
;next
按钮在当前页为最后一页时颜色为#c2c4cc
,否则为#ff0f23
。同时,更新了对addColorForHarmony
的导入语句,整体结构和逻辑保持不变。
文件路径 | 更改摘要 |
---|---|
src/packages/pagination/pagination.taro.tsx | 添加了addColorForHarmony 函数,并更新prev 和next 按钮的颜色逻辑。 |
src/utils/add-color-for-harmony.ts | 新增了addColorForHarmony 函数,用于根据条件克隆React元素并添加颜色属性。 |
prev
和next
图标的渲染,直接与本PR中对Pagination
组件的视觉反馈和功能的修改相关。tag
组件中图标的颜色样式,涉及与本PR中Pagination
组件的颜色变化相似的视觉增强。size/S
🐇 在分页中跳跃,颜色闪烁如星,
新函数助力,视觉更清晰。
按钮边界变幻,色彩如梦,
小兔子欢呼,功能更强! 🌈
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?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 83.98%. Comparing base (
6213d88
) to head (5ed403d
). Report is 5 commits behind head on V3.0.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
🚨 Try these New Features:
🤔 这个变动的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
☑️ 请求合并前的自查清单
⚠️ 请自检并全部勾选全部选项。⚠️
Summary by CodeRabbit
prev
和next
按钮的颜色根据当前页状态动态变化。#c2c4cc
,其他情况下为#ff0f23
。