Commit 836b65dd by Zheng Jie

[Bug修复](master): 修复日期控件

修复点击往前一天后出现往前两天的问题
parent 7adcabdf
...@@ -47,8 +47,8 @@ export const calendarBaseShortcuts = [{ ...@@ -47,8 +47,8 @@ export const calendarBaseShortcuts = [{
export const calendarMoveShortcuts = [{ export const calendarMoveShortcuts = [{
text: '‹ 往前一天 ', text: '‹ 往前一天 ',
onClick(picker) { onClick(picker) {
let startTime = new Date(new Date().daysAgo(1).setHours(0, 0, 0)) let startTime = new Date(new Date().setHours(0, 0, 0))
let endTime = new Date(new Date().daysAgo(1).setHours(23, 59, 59)) let endTime = new Date(new Date().setHours(23, 59, 59))
if (!picker.value) { if (!picker.value) {
picker.value = [startTime, endTime] picker.value = [startTime, endTime]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment