Files
EnuivTools/web/src/shared/studyFields.ts
T

20 lines
555 B
TypeScript

export const workerOptions = [
{ label: "1", value: 1 },
{ label: "2", value: 2 },
{ label: "3", value: 3 },
{ label: "4", value: 4 },
{ label: "5", value: 5 },
{ label: "6", value: 6 },
{ label: "7", value: 7 },
{ label: "8", value: 8 },
];
export const STUDY_DAY_MIN = 5;
export const STUDY_DAY_MAX = 25;
export const STUDY_DAY_DEFAULT = 8;
export const dayOptions = Array.from({ length: STUDY_DAY_MAX - STUDY_DAY_MIN + 1 }, (_, index) => {
const day = STUDY_DAY_MIN + index;
return { label: `每月 ${day} 日`, value: day };
});