Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
当table配置了


{ "quickEdit": { "type": "date-range" }, "name": "time", "label": "日期", "type": "date" }快捷编辑时间范围
这时候Date组件便会收到如1744041600,1749139199
点击确认会显示
1744-04-16
这很神奇?
Why
因为Date组件调用normalizeDate->moment('1744041600,1749139199','YYYY-MM-DD HH:mm:ss')
神奇的事情发生了
moment尝试把17440416..转换为YYYY-MM-DD HH:mm:ss 是成功的isValid验证通过
为什么呢因为1744-04 -6 是合法的
虽然这种概率很小就是某天0点的时间戳1744041600 恰好是一个时间格式时, 时间就显示错误了
如:20240507,202550408 ...
How
Date组件名字已经确定他是一个日期显示器不是日期范围显示器
所以修改Date组件兼容1744041600,1749139199 值,解析value取第一个有效的时间显示
不应该错误的吧1744041600,1749139199传给moment