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

Open
5 tasks done
zwtvip opened this issue Dec 19, 2024 · 7 comments · May be fixed by #5195
Open
5 tasks done

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

zwtvip opened this issue Dec 19, 2024 · 7 comments · May be fixed by #5195

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

稍后修复

@mynetfan mynetfan linked a pull request Dec 20, 2024 that will close this issue
16 tasks
@ArnoShaw
Copy link

稍后修复

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

@mynetfan
Copy link
Collaborator

没能重现

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants