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

Bug: RangePicker 设置默认值时,fieldMappingTime 映射无效 #5186

Closed
5 tasks done
zwtvip opened this issue Dec 19, 2024 · 8 comments · Fixed by #5333
Closed
5 tasks done

Bug: RangePicker 设置默认值时,fieldMappingTime 映射无效 #5186

zwtvip opened this issue Dec 19, 2024 · 8 comments · Fixed by #5333

Comments

@zwtvip
Copy link

zwtvip commented Dec 19, 2024

Version

Vben Admin V5

Describe the bug?

首次加载表格入参 映射没有效果,手动选择日期才可以

Reproduction

75ea5fd68fcc9e9795a4528a244d672
18340fbbe97456417f5f6b3563dfe2f

System Info

win11 edge

Relevant log output

No response

Validations

@likui628
Copy link
Collaborator

能贴代码吗 @zwtvip 方便跟踪

@zwtvip
Copy link
Author

zwtvip commented Dec 19, 2024

defaultValue: [
     dayjs().subtract(1,'month').format('YYYY-MM-DD 00:00:00'),
      dayjs().format('YYYY-MM-DD HH:mm:ss')
]

加了这行代码,首次加载列表入参没有映射成功 @likui628

@mynetfan
Copy link
Collaborator

是最新代码吗?
我刚测试了一下,没有问题。

@zwtvip
Copy link
Author

zwtvip commented Dec 20, 2024

e2acba77526726d83808822552a0d65
是最新代码 @mynetfan

@mynetfan
Copy link
Collaborator

稍后修复

@ArnoShaw
Copy link

稍后修复

大佬,合了你的commit后,映射正常了,但antd的RangerPick重新选择时间后不显示了
image

@mynetfan
Copy link
Collaborator

没能重现

@Ghaitao
Copy link

Ghaitao commented Dec 31, 2024

element-plus版本的,DatePicker使用defaultValue,首次请求,fieldMappingTime也不生效

@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
5 participants