fix error types (#16043)

This commit is contained in:
陈帅 2019-04-28 11:47:22 +08:00 committed by 偏右
parent ecead188ea
commit 30508b0124
8 changed files with 10 additions and 10 deletions

View File

@ -89,7 +89,7 @@ export interface CascaderProps {
onPopupVisibleChange?: (popupVisible: boolean) => void; onPopupVisibleChange?: (popupVisible: boolean) => void;
prefixCls?: string; prefixCls?: string;
inputPrefixCls?: string; inputPrefixCls?: string;
getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement; getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
popupVisible?: boolean; popupVisible?: boolean;
/** use this after antd@3.7.0 */ /** use this after antd@3.7.0 */
fieldNames?: FieldNamesType; fieldNames?: FieldNamesType;

View File

@ -10,7 +10,7 @@ export interface CSPConfig {
} }
export interface ConfigConsumerProps { export interface ConfigConsumerProps {
getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement; getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
rootPrefixCls?: string; rootPrefixCls?: string;
getPrefixCls: (suffixCls: string, customizePrefixCls?: string) => string; getPrefixCls: (suffixCls: string, customizePrefixCls?: string) => string;
renderEmpty: RenderEmptyHandler; renderEmpty: RenderEmptyHandler;
@ -28,7 +28,7 @@ export const configConsumerProps = [
]; ];
export interface ConfigProviderProps { export interface ConfigProviderProps {
getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement; getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
prefixCls?: string; prefixCls?: string;
children?: React.ReactNode; children?: React.ReactNode;
renderEmpty?: RenderEmptyHandler; renderEmpty?: RenderEmptyHandler;

View File

@ -39,7 +39,7 @@ export interface DropDownProps {
visible?: boolean; visible?: boolean;
disabled?: boolean; disabled?: boolean;
align?: Align; align?: Align;
getPopupContainer?: (triggerNode: Element) => HTMLElement; getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
prefixCls?: string; prefixCls?: string;
className?: string; className?: string;
transitionName?: string; transitionName?: string;

View File

@ -56,7 +56,7 @@ export interface MenuProps {
subMenuOpenDelay?: number; subMenuOpenDelay?: number;
focusable?: boolean; focusable?: boolean;
onMouseEnter?: (e: MouseEvent) => void; onMouseEnter?: (e: MouseEvent) => void;
getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement; getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
overflowedIndicator?: React.ReactNode; overflowedIndicator?: React.ReactNode;
} }

View File

@ -31,7 +31,7 @@ export interface AbstractSelectProps {
dropdownMenuStyle?: React.CSSProperties; dropdownMenuStyle?: React.CSSProperties;
dropdownMatchSelectWidth?: boolean; dropdownMatchSelectWidth?: boolean;
onSearch?: (value: string) => any; onSearch?: (value: string) => any;
getPopupContainer?: (triggerNode?: Element) => HTMLElement; getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
filterOption?: boolean | ((inputValue: string, option: React.ReactElement<OptionProps>) => any); filterOption?: boolean | ((inputValue: string, option: React.ReactElement<OptionProps>) => any);
id?: string; id?: string;
defaultOpen?: boolean; defaultOpen?: boolean;

View File

@ -184,7 +184,7 @@ export interface TableState<T> {
} }
export type SelectionItemSelectFn = (key: string[]) => any; export type SelectionItemSelectFn = (key: string[]) => any;
type GetPopupContainer = (triggerNode?: Element) => HTMLElement; type GetPopupContainer = (triggerNode?: HTMLElement) => HTMLElement;
export interface SelectionItem { export interface SelectionItem {
key: string; key: string;

View File

@ -38,7 +38,7 @@ export interface TimePickerProps {
disabledMinutes?: (selectedHour: number) => number[]; disabledMinutes?: (selectedHour: number) => number[];
disabledSeconds?: (selectedHour: number, selectedMinute: number) => number[]; disabledSeconds?: (selectedHour: number, selectedMinute: number) => number[];
style?: React.CSSProperties; style?: React.CSSProperties;
getPopupContainer?: (triggerNode: Element) => HTMLElement; getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
addon?: Function; addon?: Function;
use12Hours?: boolean; use12Hours?: boolean;
focusOnOpen?: boolean; focusOnOpen?: boolean;

View File

@ -56,8 +56,8 @@ export interface AbstractTooltipProps {
arrowPointAtCenter?: boolean; arrowPointAtCenter?: boolean;
autoAdjustOverflow?: boolean | AdjustOverflow; autoAdjustOverflow?: boolean | AdjustOverflow;
// getTooltipContainer had been rename to getPopupContainer // getTooltipContainer had been rename to getPopupContainer
getTooltipContainer?: (triggerNode: Element) => HTMLElement; getTooltipContainer?: (triggerNode: HTMLElement) => HTMLElement;
getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement; getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
children?: React.ReactNode; children?: React.ReactNode;
// align is a more higher api // align is a more higher api
align?: TooltipAlignConfig; align?: TooltipAlignConfig;