Skip to content

3.2.18、3.2.19(目前最新)这两个版本中,range-picker不再允许只传开始日期或结束日期 #6510

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

Closed
1 task done
Imgodmaoyouknow opened this issue Apr 27, 2023 · 1 comment
Labels

Comments

@Imgodmaoyouknow
Copy link

Imgodmaoyouknow commented Apr 27, 2023

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.19

Environment

window11、Chrome 112.0.5615.138、Vue3.2.47

Reproduction link

Edit on CodeSandbox

Steps to reproduce

打开codesandbox链接即可看到错误表现:空字符串值(开始日期)被解析为了Invalid Date,并且点击开始日期切换时控件中的值变成了Invalid Date或NaN。把package.json中ant-design-vue的版本改为3.2.17,即可看到正常表现。

What is expected?

range-picker有只选择一个值(开始日期或结束日期)的方法

What is actually happening?

在3.2.18及之后(目前最新3.2.19),value中传空字符串错误。传null或者undefined也是相同表现。


业务中日期区间作为查询条件时,有只选择开始时间或者只选择结束时间的场景

Copy link

github-actions bot commented May 6, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant