mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:09:08 +08:00
daterange选择上周异常
This commit is contained in:
parent
1cf2dec96b
commit
e5771684c9
@ -98,15 +98,13 @@ const availableRanges: {[propName: string]: any} = {
|
||||
label: '上周',
|
||||
startDate: (now: moment.Moment) => {
|
||||
return now
|
||||
.add(-1, 'days')
|
||||
.startOf('week')
|
||||
.add(-1, 'weeks');
|
||||
},
|
||||
endDate: (now: moment.Moment) => {
|
||||
return now
|
||||
.add(-1, 'days')
|
||||
.startOf('week')
|
||||
.add(-1, 'day')
|
||||
.add(-1, 'days')
|
||||
.endOf('day');
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user