mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: 修复时间范围组件移动端结束时间的时间戳不是23:59:59问题 (#11010)
Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
parent
366aa93be1
commit
5402322231
@ -533,14 +533,12 @@ export class CalendarMobile extends React.Component<
|
|||||||
) {
|
) {
|
||||||
return this.setState(
|
return this.setState(
|
||||||
{
|
{
|
||||||
endDate: newValue
|
endDate: newValue.clone().endOf(precision)
|
||||||
.clone()
|
// .set({
|
||||||
.endOf(precision)
|
// hour: dateTime[0],
|
||||||
.set({
|
// minute: dateTime[1],
|
||||||
hour: dateTime[0],
|
// second: dateTime[2] || 0
|
||||||
minute: dateTime[1],
|
// })
|
||||||
second: dateTime[2] || 0
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
() => {
|
() => {
|
||||||
onChange &&
|
onChange &&
|
||||||
|
Loading…
Reference in New Issue
Block a user