File tree Expand file tree Collapse file tree 3 files changed +31
-2
lines changed
components/config-provider Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ const ConfigProvider = {
19
19
props : {
20
20
getPopupContainer : PropTypes . func ,
21
21
prefixCls : PropTypes . string ,
22
- renderEmpty : PropTypes . any ,
23
- csp : PropTypes . any ,
22
+ renderEmpty : PropTypes . func ,
23
+ csp : PropTypes . object ,
24
24
autoInsertSpaceInButton : PropTypes . bool ,
25
25
} ,
26
26
provide ( ) {
Original file line number Diff line number Diff line change 1
1
import { AntdComponent } from './component' ;
2
2
3
+ import { Locale } from './locale-provider'
4
+
5
+ export interface CSPConfig {
6
+ nonce ?: string ;
7
+ }
8
+
3
9
export declare class ConfigProvider extends AntdComponent {
4
10
getPopupContainer ?: ( triggerNode : HTMLElement ) => HTMLElement ;
11
+ getPrefixCls : ( suffixCls : string , customizePrefixCls ?: string ) => string ;
12
+ renderEmpty : Function ;
13
+ csp ?: CSPConfig ;
14
+ autoInsertSpaceInButton ?: boolean ;
5
15
}
Original file line number Diff line number Diff line change 4
4
5
5
import { AntdComponent } from './component' ;
6
6
7
+ export interface ModalLocale {
8
+ okText : string ;
9
+ cancelText : string ;
10
+ justOkText : string ;
11
+ }
12
+ export interface Locale {
13
+ locale : string ;
14
+ Pagination ?: Object ;
15
+ DatePicker ?: Object ;
16
+ TimePicker ?: Object ;
17
+ Calendar ?: Object ;
18
+ Table ?: Object ;
19
+ Modal ?: ModalLocale ;
20
+ Popconfirm ?: Object ;
21
+ Transfer ?: Object ;
22
+ Select ?: Object ;
23
+ Upload ?: Object ;
24
+ }
25
+
7
26
export declare class LocaleProvider extends AntdComponent {
8
27
/**
9
28
* language package setting, you can find the packages in this path: antd/lib/locale-provider/
You can’t perform that action at this time.
0 commit comments