Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(DatePicker): optimize range picker panel header click logic #3207

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

uyarn
Copy link
Collaborator

@uyarn uyarn commented Jun 20, 2024

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

优化前,选择后左侧区间大于右侧区间只会同步右侧区间
image
优化后,选择后左侧区间大于右侧区间,默认调整为左侧区间始终比右侧区间小1,增加可操作范围
image

切换年且只有年选择器:

  1. 点击左侧,且左侧大于右侧,右侧要自动加1;
  2. 点击右侧,且右侧小于左侧,左侧要自动减1;
    切换年且要有月份选择器:
  3. 点击左侧,且左侧大于右侧,右侧要自动切换至左侧年+月份 加1;
  4. 点击右侧,且右侧小于左侧,左侧要自动切换至右侧年+月份 减1;
    切换月份选择器:
  5. 点击左侧,且左侧大于右侧,右侧要自动切换至左侧年+月份 加1;
  6. 点击右侧,且右侧小于左侧,左侧要自动切换至右侧年+月份 减1;

📝 更新日志

  • feat(DatePicker): 优化日期区间选择器头部区间的变化逻辑,选择后左侧区间大于右侧区间,则默认调整为左侧区间始终比右侧区间小 1

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

Copy link
Contributor

github-actions bot commented Jun 20, 2024

完成

@anlyyao anlyyao merged commit 1f43e8f into develop Jun 20, 2024
6 checks passed
@anlyyao anlyyao deleted the feat/datepicker-header branch June 20, 2024 08:10
@github-actions github-actions bot mentioned this pull request Jun 20, 2024
16 tasks
uyarn added a commit that referenced this pull request Jun 20, 2024
* feat(DatePicker): optimize range picker panel header click logic

* feat(DatePicker): optimize range picker panel header click logic
uyarn added a commit that referenced this pull request Jun 20, 2024
* chore: upgrade site component version (#3182)

* fix(transfer): 添加tree属性支持 (#3185)

* fix(transfer): 添加tree属性支持

添加tree属性对function的支持

#3123

* chore: fix composition demo

* chore: fix demo

---------

Co-authored-by: wū yāng <uyarnchen@gmail.com>

* ci: tdesign-changelog-action (#3193)

* ci(auto-release): fix merge_tag not working (#3194)

* feat(tabs): supports scrolling operations via wheel or touchpad (#3187)

* fix(select-input): allowInput is true and cannot be entered in multiple selection cases(#2336) (#3195)

* feat(tabs): add scrollPosition API (#3196)

* feat(tabs): add scrollPosition API

* chore: update ssr snapshots

* fix(cascader): 无children选项点击时不会显示之前列表 (#3201)

* fix(tree): add allowDrop API to limit drop action (#3206)

* fix(tree): tree 组件添加 allowDrop 属性方法

* chore(tree): tree 组件,提供 allowDrop 属性的示例

* fix(tree): tree 组件,规范 allowDrop 属性的 api 配置

* fix(tree): 解决 src/common.ts 中丢失 LayoutEnum 定义的问题

* test(tree): tree update snapshot

* feat(DatePicker): optimize range picker panel header click logic (#3207)

* feat(DatePicker): optimize range picker panel header click logic

* feat(DatePicker): optimize range picker panel header click logic

* chore: release 1.9.5 (#3208)

* chore: release 1.9.5

* chore: changelog's changes

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: sinbadmaster <40019023+sinbadmaster@users.noreply.github.com>
Co-authored-by: liweijie0812 <674416404@qq.com>
Co-authored-by: 李江辰 <SpaceCode@foxmail.com>
Co-authored-by: hy212 <1101824575@qq.com>
Co-authored-by: Zhang Yiyao <1379255913@qq.com>
Co-authored-by: TabSpace <pillar0514@163.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants