-
-
Notifications
You must be signed in to change notification settings - Fork 47.5k
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
TimePicker.RangePicker format
should support array type
#49394
Comments
Hello @afc163. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please send your Pull Request to proper branch (feature branch for the new feature, master for bugfix and other changes), fill the Pull Request Template here, provide changelog/TypeScript/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution! 你好 @afc163,我们完全同意你的提议/反馈,欢迎直接在此仓库 创建一个 Pull Request 来解决这个问题。请将 Pull Request 发到正确的分支(新特性发到 feature 分支,其他发到 master 分支),务必填写 Pull Request 内的预设模板,提供改动所需相应的 changelog、TypeScript 定义、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献。 |
这里隐含了业务信息 “在 24 小时内”,或者“某个时间点开始算次日”。 |
对,这个得靠选。 format 和这个没关系,本来就应该支持两个分开定制。 |
原来 format 已经支持 function 类型了,那文档需要补一下。 |
@zombieJ 我理解你的意思,相当于开始时间大于结束时间则表示跨日。假设业务要求时间段长度必须在24小时内,这样就是可以接受的。 但是 |
所以我的提议方案 #49364 要不要再考虑考虑。。。感谢~ |
@zombieJ 问题好像出在 onCalendarChange 不是选择时间实时回调的。。有实时回调的函数吗? |
录个 gif 看看? |
@zombieJ 了解了,V5没问题。我本地用的V4才会复现。那请问V4除了升级到V5有解决办法吗? https://stackblitz.com/edit/react-kdkub3-ahupgs?file=demo.tsx 2024-06-13.15.26.53.mov |
v5 重写了 |
@zombieJ 这就难过了, V4给你们提个feature,支持 下拉面板选择时间实时回调 可以吗? 成本相对最低。。 |
@zombieJ 我看你们 format 内部 支持函数,也支持函数数组,我理解是想分别渲染前后输入框内容的,,,但范围时间选择器输入框渲染时,你们只取第一个函数来处理渲染。是不是有bug。 |
@Flcwl 确实可以支持一下,来个 PR? |
format={['YYYYMMDD', 'YYYY-MM-DD', 'DD/MM/YYYY']} 当用户输入 |
The text was updated successfully, but these errors were encountered: