Commit 32f1277ce661d206c7033b854b1e124a82913b1b

Authored by xp.Huang
2 parents 95bf8970 fc60bbcf

Merge branch 'feat/date' into 'main_dev'

perf(src/packages/components):  日期时间组件新增快捷选择,本周和本月

See merge request yunteng/thingskit-view!248
... ... @@ -56,6 +56,20 @@ const rangeShortcuts = {
56 56 dayjs().subtract(29, 'day').startOf('day').valueOf(),
57 57 dayjs().endOf('day').valueOf()
58 58 ] as const
  59 + },
  60 + 本周: () => {
  61 + shortcutsSelect.value = true
  62 + return [
  63 + dayjs().startOf('week').add(1, 'day').valueOf(),
  64 + dayjs().endOf('week').add(1, 'day').valueOf(),
  65 + ] as const
  66 + },
  67 + 本月: () => {
  68 + shortcutsSelect.value = true
  69 + return [
  70 + dayjs().startOf('month').valueOf(),
  71 + dayjs().endOf('month').valueOf(),
  72 + ] as const
59 73 }
60 74 }
61 75
... ...