UNPKG

antd

Version:

An enterprise-class UI design language and React-based implementation

29 lines (28 loc) 875 B
/// <reference types="react" /> import React from 'react'; import moment from 'moment'; export interface HeaderProps { prefixCls?: string; locale?: any; fullscreen?: boolean; yearSelectOffset?: number; yearSelectTotal?: number; type?: string; onValueChange?: (value) => void; onTypeChange?: (type: string) => void; value: any; } export default class Header extends React.Component<HeaderProps, any> { static defaultProps: { prefixCls: string; yearSelectOffset: number; yearSelectTotal: number; }; getYearSelectElement(year: any): JSX.Element; getMonthsLocale(value: moment.Moment): any[]; getMonthSelectElement(month: any, months: any): JSX.Element; onYearChange: (year: any) => void; onMonthChange: (month: any) => void; onTypeChange: (e: any) => void; render(): JSX.Element; }