ant-design / pro-components

🏆 Use Ant Design like a Pro!
https://pro-components.antdigital.dev
MIT License
4.22k stars 1.35k forks source link

🐛[BUG] ProFormDateTimeRangePicker 设置disabled=[true,false] 被禁用的还是会展示时间选择面板 #7309

Closed Hcy2ly closed 1 year ago

Hcy2ly commented 1 year ago

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🐛 bug 描述

ProFormDateTimeRangePicker组件 设置disabled=[true,false] 修改结束时间的时候,选择时间面板还是会左滑,开始时间被禁用依旧会展示出选择时间面板。 ProFormDateRangePicker 属性增加showTime=true 也会有上面的相同问题

📷 复现步骤

🏞 期望结果

当开始时间被禁用,修改结束时间时,修改完毕,时间选择弹窗不会左滑

💻 复现代码

© 版本信息

🚑 其他信息

chenshuai2144 commented 1 year ago
image

要搭配使用的样子。

chenshuai2144 commented 1 year ago

是了一下,还真是这么设计的,去 antd 提下吧,感觉不太合理

Hcy2ly commented 1 year ago

------------------ 原始邮件 ------------------ 发件人: "ant-design/pro-components" @.>; 发送时间: 2023年7月12日(星期三) 下午2:04 @.>; @.**@.>; 主题: Re: [ant-design/pro-components] 🐛[BUG] ProFormDateTimeRangePicker 设置disabled=[true,false] 被禁用的还是会展示时间选择面板 (Issue #7309)

要搭配使用的样子。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Hcy2ly commented 1 year ago

好的

至少有你在这陪着我hh_ @.***

 

------------------ 原始邮件 ------------------ 发件人: "ant-design/pro-components" @.>; 发送时间: 2023年7月12日(星期三) 下午2:12 @.>; @.**@.>; 主题: Re: [ant-design/pro-components] 🐛[BUG] ProFormDateTimeRangePicker 设置disabled=[true,false] 被禁用的还是会展示时间选择面板 (Issue #7309)

是了一下,还真是这么设计的,去 antd 提下吧,感觉不太合理

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>