chore: update ConfigProvider type (#2734)
parent
2b557452bd
commit
42cda6f5ac
|
@ -1,5 +1,5 @@
|
||||||
import { AntdComponent } from './component';
|
import { AntdComponent } from './component';
|
||||||
import Vue from 'vue';
|
import { App, VNodeChild } from 'vue';
|
||||||
|
|
||||||
import { Locale } from './locale-provider';
|
import { Locale } from './locale-provider';
|
||||||
|
|
||||||
|
@ -8,10 +8,13 @@ export interface CSPConfig {
|
||||||
}
|
}
|
||||||
|
|
||||||
export declare class ConfigProvider extends AntdComponent {
|
export declare class ConfigProvider extends AntdComponent {
|
||||||
getPopupContainer?: (triggerNode: HTMLElement, dialogContext?: Vue | null) => HTMLElement;
|
$props: {
|
||||||
getPrefixCls: (suffixCls: string, customizePrefixCls?: string) => string;
|
getPopupContainer?: (triggerNode: HTMLElement, dialogContext?: App | null) => HTMLElement;
|
||||||
renderEmpty: Function;
|
getPrefixCls?: (suffixCls: string, customizePrefixCls?: string) => string;
|
||||||
|
renderEmpty?: Function | VNodeChild | JSX.Element;
|
||||||
csp?: CSPConfig;
|
csp?: CSPConfig;
|
||||||
autoInsertSpaceInButton?: boolean;
|
autoInsertSpaceInButton?: boolean;
|
||||||
transformCellText?: Function;
|
transformCellText?: Function | VNodeChild | JSX.Element;
|
||||||
|
locale: Locale | object;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue