Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

saas_plus / dj-car-life-system

  • 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
  • dj-car-life-system
  • src
  • components
  • glsx-combi-form
  • common.js
  • Jaxon's avatar
    feat(form组件): 格式化 · 353d5899
    Jaxon committed Jun 18, 2026
    353d5899
common.js 379 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;
	},
};