chore: update ConfigProvider type (#2734)

pull/2740/head
言肆 4 years ago committed by GitHub
parent 2b557452bd
commit 42cda6f5ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,5 @@
import { AntdComponent } from './component';
import Vue from 'vue';
import { App, VNodeChild } from 'vue';
import { Locale } from './locale-provider';
@ -8,10 +8,13 @@ export interface CSPConfig {
}
export declare class ConfigProvider extends AntdComponent {
getPopupContainer?: (triggerNode: HTMLElement, dialogContext?: Vue | null) => HTMLElement;
getPrefixCls: (suffixCls: string, customizePrefixCls?: string) => string;
renderEmpty: Function;
$props: {
getPopupContainer?: (triggerNode: HTMLElement, dialogContext?: App | null) => HTMLElement;
getPrefixCls?: (suffixCls: string, customizePrefixCls?: string) => string;
renderEmpty?: Function | VNodeChild | JSX.Element;
csp?: CSPConfig;
autoInsertSpaceInButton?: boolean;
transformCellText?: Function;
transformCellText?: Function | VNodeChild | JSX.Element;
locale: Locale | object;
};
}

Loading…
Cancel
Save