Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

saas / scrm-micro-mallconfig

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • scrm-micro-mallconfig
  • src
  • components
  • glsx-combi-form
  • common.js
  • zhangquan's avatar
    first 提交&物业需求 · e1505612
    zhangquan committed Oct 07, 2023
    e1505612
common.js 394 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/**
 * 时间控件-限制月份
 */
export const beforeRangePickerOptions = {
  disabledDate(date) {
    if (date > new Date()) {
      return true
    }
    return false
  }
}
export const afterRangePickerOptions = {
  disabledDate(date) {
    const yesterday = new Date(new Date().setDate(new Date().getDate() - 1))
    if (date < yesterday) {
      return true
    }
    return false
  }
}