Closed oasis-cloud closed 2 weeks ago
此次更改涉及PullToRefresh
组件的逻辑简化,主要是在src/packages/pulltorefresh/pulltorefresh.taro.tsx
文件中。移除了对harmonyAndRn
的导入,更新了Loading
和More
组件的条件渲染逻辑,使其不再依赖平台检查。renderIcons
函数现在直接根据状态渲染相应的组件,而不进行额外的条件判断,保持了组件的公共API不变。
文件路径 | 更改摘要 |
---|---|
src/packages/pulltorefresh/pulltorefresh.taro.tsx |
移除harmonyAndRn 导入,简化Loading 和More 组件的渲染逻辑,直接根据状态渲染组件,无平台检查。 |
PullToRefresh
组件,直接与主PR中的更改相关。PullToRefresh
组件的版本,与主PR中的更改一致。PullToRefresh
组件的样式相关。size/S
🐰 在草地上跳跃,组件变得轻盈,
渲染逻辑简化,心情愉悦无比。
Loading
与More
,状态一目了然,
兔子欢呼雀跃,代码更流畅! 🌼
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.95%. Comparing base (
16b173e
) to head (97bb51b
). 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.
🤔 这个变动的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
☑️ 请求合并前的自查清单
⚠️ 请自检并全部勾选全部选项。⚠️
Summary by CodeRabbit
新功能
PullToRefresh
组件的加载和更多状态图标的渲染逻辑,简化了组件结构。Bug 修复