diff --git a/components/calendar/Header.tsx b/components/calendar/Header.tsx index 0d07a9ed7a427e0c4ed1614e6cac83a48eb1005f..c0413118233b5755599a2f22edbb53f6be711e24 100644 --- a/components/calendar/Header.tsx +++ b/components/calendar/Header.tsx @@ -147,7 +147,7 @@ export default class Header extends React.Component { type === 'month' ? this.getMonthSelectElement(prefixCls, value.month(), this.getMonthsLocale(value)) : null; - const size = (fullscreen ? 'default' : 'small') as any; + const size = fullscreen ? 'default' : 'small'; const typeSwitch = (