ant-design / ant-design-mobile

Essential UI blocks for building mobile web apps.
https://mobile.ant.design
MIT License
11.51k stars 2.38k forks source link

CalendarPickerView设置min值&&value/defaultValue时,视图优先渲染value/defaultValue值,新增scrollTo API支持跳转到指定日期 #6528

Open Jarryxin opened 5 months ago

Jarryxin commented 5 months ago

feat(CalendarPickerView): 设置min值并且设置了value/defaultValue时,视图优先渲染value/defaultValue值,新增scrollTo API支持跳转到指定日期。 较其它同学的提交区别:

  1. 展示区域是当前月份,显示更完整
  2. 设置min值会优先渲染value/defaultValue值
Jarryxin commented 5 months ago

fix #6518

github-actions[bot] commented 5 months ago

PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-6528.surge.sh

codecov[bot] commented 5 months ago

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (19d5a4b) 92.27% compared to head (1934d52) 92.23%. Report is 2 commits behind head on master.

Files Patch % Lines
src/components/calendar-picker/calendar-picker.tsx 55.55% 4 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #6528 +/- ## ========================================== - Coverage 92.27% 92.23% -0.04% ========================================== Files 316 316 Lines 6897 6914 +17 Branches 1728 1734 +6 ========================================== + Hits 6364 6377 +13 - Misses 497 501 +4 Partials 36 36 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Jarryxin commented 5 months ago

@zombieJ 期待 review