pro-components icon indicating copy to clipboard operation
pro-components copied to clipboard

🐛[BUG] ProTable search.filterType = "light" 轻量模式下 columns.valueType = "dateRange" 点击X未设置value为空数组,导致dateRange组件出现Invalid Date

Open Zengets opened this issue 1 year ago • 3 comments

🐛 bug 描述

ProTable search.filterType = "light" 轻量模式下 columns.valueType = "dateRange" 点击X未设置value为空数组,导致dateRange组件出现Invalid Date

📷 复现步骤

image

image

直接查看官网demo即可发现存在的BUG!! 地址:protable 轻量筛选

🏞 期望结果

datapicker 下 Range类组件重置效果正常。

💻 复现代码

直接查看官网demo即可发现存在的BUG!! 地址:protable 轻量筛选

© 版本信息

  • ProComponents 版本

  • "@ant-design/pro-components": "^2.6.49"

  • umi 版本

  • "@umijs/max": "^4.1.1"

  • 浏览器环境

  • Google Chrome 版本 121.0.6167.184(正式版本) (arm64)

  • 开发环境

  • mac OS

🚑 其他信息

Zengets avatar Feb 22 '24 06:02 Zengets

插眼,我也在寻求这个bug的解决方案

liu245933567 avatar Mar 06 '24 06:03 liu245933567

插眼,我也在寻求这个bug的解决方案

这个模式下有坑还不好填 我这边重写了一下ProTable 的 searchFormRender 好把控一点,他这边搜索用的是BetaSchemaForm这个组件

Zengets avatar Mar 06 '24 08:03 Zengets

https://github.com/ant-design/pro-components/pull/8305

看了下这个case是符合预期的

zhuba-Ahhh avatar Apr 15 '24 06:04 zhuba-Ahhh