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): support cancelRangeSelectLimit API #3460

Merged

Conversation

FliPPeDround
Copy link
Contributor

@FliPPeDround FliPPeDround commented Jan 3, 2025

🤔 这个 PR 的性质是?

迁移tdesign-vue-next功能

在不改变原有逻辑的基础上, 新增了一个props属性,用于支持datepicker组件新增取消禁用日期选择限制的能力
名称:disableDateSelectLimit
类型:Boolean
默认值:false,
说明:默认的日期选择交互是根据点击前后日期的顺序来决定并且会加以限制。
比如:用户先点击开始时间输入框,选择了一个日期例如2020-05-15,紧接着交互会自动将焦点跳到结束日期输入框,等待用户选择结束时间。此时用户只能选择大于2020-05-15的日期(之前的日期会被灰态禁止点击,限制用户的点击)。
当该值传递true时,则取消该限制。
disableDateSelectLimit为false时的交互效果(保持默认不变)示例如下:
Tencent/tdesign-vue-next/assets/68492256/84822ee9-cc13-4829-b404-fe0dcc1e8d65
disableDateSelectLimit传入为true时的交互效果,可以取消禁用日期选择限制, 示例如下:
Tencent/tdesign-vue-next/assets/68492256/0ba7e823-0e6d-4976-ac9c-8a1eb52011b6

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

🔗 相关 Issue

#3458

💡 需求背景和解决方案

📝 更新日志

  • feat(DatePicker): 支持 cancelRangeSelectLimit API

  • 本条 PR 不需要纳入 Changelog

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

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

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

Copy link
Contributor

github-actions bot commented Jan 3, 2025

完成

@liweijie0812
Copy link
Collaborator

/update-snapshot

Copy link
Contributor

github-actions bot commented Jan 3, 2025

⏳ 正在运行快照更新。。。 CI: Open

@uyarn uyarn merged commit 7970824 into Tencent:develop Jan 4, 2025
7 checks passed
@github-actions github-actions bot mentioned this pull request Jan 10, 2025
16 tasks
uyarn pushed a commit that referenced this pull request Jan 10, 2025
* feat(DatePicker): support cancelRangeSelectLimit API

* chore: update snapshot

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
uyarn added a commit that referenced this pull request Jan 10, 2025
* docs: fix typo (#3454)

* feat(DatePicker): support cancelRangeSelectLimit API (#3460)

* feat(DatePicker): support cancelRangeSelectLimit API

* chore: update snapshot

---------

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

* fix(table): filter undefined from selectRowData (#3446)

* fix(auto-complete): the display effect is abnormal when the option is empty (#3461)

* fix(Table): fix table horizontal scroll (#3463)

* fix(Table): fix table horizontal scroll

* chore: update snapshot

---------

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

* feat(auto-complete): support empty api (#3462)

* feat(auto-complete): support empty api

* fix(autocomplete): fix

---------

Co-authored-by: Uyarn <uyarnchen@gmail.com>

* chore: release 1.10.9 (#3464)

* chore: release 1.10.9

* chore: changelog's changes

---------

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

* chore: release 1.10.9-naruto

* chore: release 1.10.9-naruto

* chore: release 1.10.9-naruto

---------

Co-authored-by: liweijie0812 <674416404@qq.com>
Co-authored-by: FliPPeDround <70848683+FliPPeDround@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: betavs <34408516+betavs@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.

3 participants