Closed daiwanxing closed 3 days ago
这次变更主要调整了 format
函数的计算逻辑。之前的逻辑是将值除以步进值后进行四舍五入,而现在的逻辑是将值减去最小值后除以步进值进行四舍五入,然后再加回最小值。
文件路径 | 变更摘要 |
---|---|
src/packages/__VUE/range/index.taro.vue |
修改了 format 函数的逻辑,从四舍五入值除以步进值调整为先减最小值再加回最小值 |
数值调整轻如风, 算法更改妙无穷。 最小步进再加回, 精准结果如谁梦。
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?
related issue: #3097
此 PR 修复了当设置步长时,点击刻度计算后的值并不会依据 min
值处理。
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 83.92%. Comparing base (
c98a1ee
) to head (dd9c85f
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
这个 PR 做了什么? (简要描述所做更改)
这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台:
这个 PR 是否已自测:
Summary by CodeRabbit