Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

saas / scrm-micro-settings

  • 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-settings
  • src
  • components
  • GlCombiForm
  • src
  • common.js
  • 胡悦's avatar
    提交组件 · f5e51b98
    胡悦 committed Apr 02, 2022
    f5e51b98
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
  }
}