antd-mobile
Version:
基于 React 的移动设计规范实现
28 lines (27 loc) • 717 B
TypeScript
/// <reference types="react" />
import React from 'react';
export interface LocaleProviderProps {
locale: {
Pagination?: Object;
DatePicker?: Object;
InputItem?: 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;
InputItem?: Object | undefined;
};
};
render(): React.ReactElement<any>;
}