From 9f666528684690e48d5dc0c1e3e968793c95fefb Mon Sep 17 00:00:00 2001 From: thinkasany <480968828@qq.com> Date: Tue, 21 Jan 2025 23:37:26 +0800 Subject: [PATCH] chore: rename constants to uppercase (#52523) --- components/calendar/Header.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/calendar/Header.tsx b/components/calendar/Header.tsx index d983ecd21f..31a57e1805 100644 --- a/components/calendar/Header.tsx +++ b/components/calendar/Header.tsx @@ -8,8 +8,8 @@ import { Button, Group } from '../radio'; import Select from '../select'; import type { CalendarMode, SelectInfo } from './generateCalendar'; -const YearSelectOffset = 10; -const YearSelectTotal = 20; +const YEAR_SELECT_OFFSET = 10; +const YEAR_SELECT_TOTAL = 20; interface SharedProps { prefixCls: string; @@ -28,8 +28,8 @@ function YearSelect(props: SharedProps) { const year = generateConfig.getYear(value || generateConfig.getNow()); - let start = year - YearSelectOffset; - let end = start + YearSelectTotal; + let start = year - YEAR_SELECT_OFFSET; + let end = start + YEAR_SELECT_TOTAL; if (validRange) { start = generateConfig.getYear(validRange[0]);