123456789101112131415 |
- import moment from "moment";
- export const rangePresets: any = {
- '今天排行': [moment(), moment()],
- '昨天排行': [moment().subtract(1, 'd'), moment().subtract(1, 'd')],
- '7日排行': [moment().subtract(7, 'd'), moment()],
- '30日排行': [moment().subtract(30, 'd'), moment()]
- };
- export const czPresets: any = {
- '今天': [moment(), moment()],
- '昨天': [moment().subtract(1, 'd'), moment().subtract(1, 'd')],
- '7日': [moment().subtract(7, 'd'), moment()],
- '30日': [moment().subtract(30, 'd'), moment()]
- };
|