const.tsx 545 B

123456789101112131415
  1. import moment from "moment";
  2. export const rangePresets: any = {
  3. '今天排行': [moment(), moment()],
  4. '昨天排行': [moment().subtract(1, 'd'), moment().subtract(1, 'd')],
  5. '7日排行': [moment().subtract(7, 'd'), moment()],
  6. '30日排行': [moment().subtract(30, 'd'), moment()]
  7. };
  8. export const czPresets: any = {
  9. '今天': [moment(), moment()],
  10. '昨天': [moment().subtract(1, 'd'), moment().subtract(1, 'd')],
  11. '7日': [moment().subtract(7, 'd'), moment()],
  12. '30日': [moment().subtract(30, 'd'), moment()]
  13. };