antd
Version:
An enterprise-class UI design language and React-based implementation
42 lines (41 loc) • 1.21 kB
TypeScript
/// <reference types="react" />
import React from 'react';
export interface LocaleProviderProps {
locale: {
Pagination?: Object;
DatePicker?: Object;
TimePicker?: Object;
Calendar?: Object;
Table?: Object;
Modal?: Object;
Popconfirm?: Object;
Transfer?: Object;
Select?: Object;
};
children: any;
}
export default class LocaleProvider extends React.Component<LocaleProviderProps, any> {
static propTypes: {
locale: React.Requireable<any>;
};
static childContextTypes: {
antLocale: React.Requireable<any>;
};
getChildContext(): {
antLocale: {
Pagination?: Object | undefined;
DatePicker?: Object | undefined;
TimePicker?: Object | undefined;
Calendar?: Object | undefined;
Table?: Object | undefined;
Modal?: Object | undefined;
Popconfirm?: Object | undefined;
Transfer?: Object | undefined;
Select?: Object | undefined;
};
};
componentDidMount(): void;
componentDidUpdate(): void;
componentWillUnMount(): void;
render(): React.ReactElement<any>;
}