UNPKG

dtd

Version:

根据数梦工场视觉规范打造的组件库,感谢react-components和ant design

22 lines (21 loc) 830 B
import * as React from 'react'; import * as PropTypes from 'prop-types'; export interface LocaleReceiverProps { componentName: string; defaultLocale: object | Function; children: (locale: object, localeCode?: string) => React.ReactElement<any>; } export interface LocaleReceiverContext { antLocale?: { [key: string]: any; }; } export default class LocaleReceiver extends React.Component<LocaleReceiverProps> { static contextTypes: { antLocale: PropTypes.Requireable<object>; }; context: LocaleReceiverContext; getLocale(): any; getLocaleCode(): any; render(): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>; }