UNPKG

antd

Version:

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

46 lines (45 loc) 1.35 kB
/// <reference types="react" /> import * as React from 'react'; import { ModalLocale } from '../modal/locale'; export interface LocaleProviderProps { locale: { Pagination?: Object; DatePicker?: Object; TimePicker?: Object; Calendar?: Object; Table?: Object; Modal?: ModalLocale; Popconfirm?: Object; Transfer?: Object; Select?: Object; Upload?: Object; }; children?: React.ReactElement<any>; } export default class LocaleProvider extends React.Component<LocaleProviderProps, any> { static propTypes: { locale: any; }; static childContextTypes: { antLocale: any; }; getChildContext(): { antLocale: { exist: boolean; Pagination?: Object | undefined; DatePicker?: Object | undefined; TimePicker?: Object | undefined; Calendar?: Object | undefined; Table?: Object | undefined; Modal?: ModalLocale | undefined; Popconfirm?: Object | undefined; Transfer?: Object | undefined; Select?: Object | undefined; Upload?: Object | undefined; }; }; componentWillMount(): void; componentDidUpdate(): void; componentWillUnMount(): void; render(): React.ReactElement<any>; }