formily对moment格式和dayjs格式的数据,处理不一致 #4220
AliceZc
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
`formily初始化时,对于moment格式和dayjs格式的数据采取的方式不同,如果是moment类型的数据,直接就返回了数据本身,但是dayjs的数据,会调用dayjs的toJSON方法,使其变成字符串。导致明明传入的是dayjs数据,最后提交表单时,有可能是字符串数据。

Beta Was this translation helpful? Give feedback.
All reactions