1 |
|
2 |
|
3 | import * as React from 'react';
|
4 |
|
5 | export interface ConfigProviderProps {
|
6 | |
7 |
|
8 |
|
9 | prefix?: string;
|
10 |
|
11 | |
12 |
|
13 |
|
14 | locale?: Record<string, unknown>;
|
15 |
|
16 | |
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | errorBoundary?: boolean | {
|
24 | afterCatch?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
25 | fallbackUI?: (error: Error, errorInfo: React.ErrorInfo) => React.ReactElement<any>;
|
26 | };
|
27 |
|
28 | |
29 |
|
30 |
|
31 | pure?: boolean;
|
32 |
|
33 | |
34 |
|
35 |
|
36 | warning?: boolean;
|
37 |
|
38 | |
39 |
|
40 |
|
41 |
|
42 | rtl?: boolean;
|
43 | |
44 |
|
45 |
|
46 | device?: 'tablet' | 'desktop' | 'phone';
|
47 | |
48 |
|
49 |
|
50 | children?: React.ReactNode;
|
51 | |
52 |
|
53 |
|
54 | popupContainer?: string | HTMLElement | ((target: HTMLElement) => HTMLElement);
|
55 | }
|
56 |
|
57 | export default class ConfigProvider extends React.Component<
|
58 | ConfigProviderProps,
|
59 | any
|
60 | > {
|
61 | static config(Component: any, options?: any): any;
|
62 | static getContextProps(props: {}, displayName: string): any;
|
63 | static initLocales(locales: any): any;
|
64 | static setLanguage(language: string): any;
|
65 | static setLocale(locale: any): any;
|
66 | static setDirection(dir: string): any;
|
67 | static getLocale(): any;
|
68 | static getLanguage(): string;
|
69 | static getDirection(): string;
|
70 | static clearCache(): any;
|
71 | static Consumer(props: { children: (ctx: ConfigProviderProps) => React.ReactNode }): JSX.Element;
|
72 | }
|
73 |
|
\ | No newline at end of file |