Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

saas_plus / linkcore-admin

  • 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
  • linkcore-admin
  • src
  • components
  • glsx-combi-form
  • common.js
  • 张立顺's avatar
    feat: 初始化车生活简化系统 v1.0.0 · 3b224019
    张立顺 committed Aug 05, 2026
    3b224019
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;
	},
};