Closed Alex-huxiyang closed 3 weeks ago
[!IMPORTANT]
Review skipped
Review was skipped due to path filters
:no_entry: Files ignored due to path filters (1)
* `pnpm-lock.yaml` is excluded by `!**/pnpm-lock.yaml`CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including
**/dist/**
will override the default block on thedist
directory, by removing the pattern from both the lists.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
本次更改主要涉及 src/packages/tabs/tabs.taro.tsx
文件中 Tabs
组件的 scrollIntoView
函数。修改的核心是 to
变量的计算方式,之前的计算方式考虑了导航矩形的宽度,而现在直接将 to
设置为 rtl ? -left : left
,简化了计算逻辑。此外,移除了关于负 to
值不需要滚动的注释。这些更改主要集中在滚动逻辑上,整体结构和功能保持不变。
文件路径 | 更改摘要 |
---|---|
src/packages/tabs/tabs.taro.tsx | 修改 scrollIntoView 函数,简化 to 变量的计算逻辑,移除不必要的注释。 |
src/packages/range/range.taro.tsx, src/packages/range/range.tsx | 修改 dragStatus 的初始化,从逻辑或操作改为直接赋值为 'start' ,以明确初始状态。 |
src/packages/configprovider/types.ts | 从 NutCSSVariables 类型中移除变量 nutuiDividerVerticalTop 。 |
Tabs
组件中的 scrollIntoView
函数,与主PR中的更改直接相关。tabs.taro.tsx
文件中的滚动行为,特别是防止不必要的滚动,与主PR中 to
变量计算的更改一致。Range
组件,与主PR中对 dragStatus
初始化的更改相关。size/L
在标签间跳跃,兔子欢快舞,
滚动逻辑简化,真是太酷!
左右随心所欲,轻松不费力,
兔子祝贺你们,代码更灵活! 🐇✨
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 84.07%. Comparing base (
b97e0a5
) to head (39b501b
). Report is 1 commits behind head on next.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
上次的改动导致元素无法完全漏出
Summary by CodeRabbit
nutuiDividerVerticalTop
,可能影响样式配置。