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 { 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;
csp?: CSPConfig; renderEmpty?: Function | VNodeChild | JSX.Element;
autoInsertSpaceInButton?: boolean; csp?: CSPConfig;
transformCellText?: Function; autoInsertSpaceInButton?: boolean;
transformCellText?: Function | VNodeChild | JSX.Element;
locale: Locale | object;
};
} }

Loading…
Cancel
Save