Skip to content

Commit 42cda6f

Browse files
authored
chore: update ConfigProvider type (#2734)
1 parent 2b55745 commit 42cda6f

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

types/config-provider.d.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { AntdComponent } from './component';
2-
import Vue from 'vue';
2+
import { App, VNodeChild } from 'vue';
33

44
import { Locale } from './locale-provider';
55

@@ -8,10 +8,13 @@ export interface CSPConfig {
88
}
99

1010
export declare class ConfigProvider extends AntdComponent {
11-
getPopupContainer?: (triggerNode: HTMLElement, dialogContext?: Vue | null) => HTMLElement;
12-
getPrefixCls: (suffixCls: string, customizePrefixCls?: string) => string;
13-
renderEmpty: Function;
14-
csp?: CSPConfig;
15-
autoInsertSpaceInButton?: boolean;
16-
transformCellText?: Function;
11+
$props: {
12+
getPopupContainer?: (triggerNode: HTMLElement, dialogContext?: App | null) => HTMLElement;
13+
getPrefixCls?: (suffixCls: string, customizePrefixCls?: string) => string;
14+
renderEmpty?: Function | VNodeChild | JSX.Element;
15+
csp?: CSPConfig;
16+
autoInsertSpaceInButton?: boolean;
17+
transformCellText?: Function | VNodeChild | JSX.Element;
18+
locale: Locale | object;
19+
};
1720
}

0 commit comments

Comments
 (0)