1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
| import { getAMonth, getAWeek, getHalfMonth, getRecentDate } from '/@/utils/util';
|
| export const RANGE_SEPARATOR = '到';
| export const START_PLACEHOLDER = '起始日期';
| export const END_PLACEHOLDER = '结束日期';
| export const DEFAULT_FORMATS_TIME = 'HH:mm:ss';
| export const DEFAULT_FORMATS_DATE = 'YYYY-MM-DD';
| export const CURRENT_DAY = new Date();
| export const SHORTCUTS = [
| {
| text: '最近一周',
| value: getAWeek,
| },
| {
| text: '最近半月',
| value: getHalfMonth,
| },
| {
| text: '最近一月',
| value: getAMonth,
| },
| ] as unknown[];
|
| export const SHORTCUTS1 = [
| {
| text: '今天',
| value: () => getRecentDate(0),
| },
| {
| text: '昨天',
| value: () => getRecentDate(1),
| },
| {
| text: '前天',
| value: () => getRecentDate(2),
| },
| ];
| export const disabledCurrentDate = (date: Date) => {
| return date > CURRENT_DAY;
| };
|
|