Browse Source

Fix getPopupContainer ts type

pull/5466/merge
afc163 8 years ago
committed by Benjy Cui
parent
commit
849c5fbf75
  1. 2
      components/cascader/index.tsx
  2. 2
      components/date-picker/index.tsx
  3. 2
      components/dropdown/dropdown.tsx
  4. 2
      components/mention/index.tsx
  5. 2
      components/select/index.tsx
  6. 2
      components/time-picker/index.tsx
  7. 6
      components/tooltip/index.tsx
  8. 2
      components/tree-select/interface.tsx

2
components/cascader/index.tsx

@ -60,7 +60,7 @@ export interface CascaderProps {
onPopupVisibleChange?: (popupVisible: boolean) => void;
prefixCls?: string;
inputPrefixCls?: string;
getPopupContainer?: (triggerNode: Element) => HTMLElement;
getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement;
}
function highlightKeyword(str: string, keyword: string, prefixCls: string) {

2
components/date-picker/index.tsx

@ -19,7 +19,7 @@ export interface PickerProps {
popupStyle?: React.CSSProperties;
locale?: any;
size?: 'large' | 'small' | 'default';
getCalendarContainer?: (trigger: any) => React.ReactNode;
getCalendarContainer?: (triggerNode?: HTMLElement) => HTMLElement;
open?: boolean;
onOpenChange?: (status: boolean) => void;
disabledDate?: (current: moment.Moment) => boolean;

2
components/dropdown/dropdown.tsx

@ -9,7 +9,7 @@ export interface DropDownProps {
onVisibleChange?: (visible?: boolean) => void;
visible?: boolean;
align?: Object;
getPopupContainer?: () => HTMLElement;
getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement;
prefixCls?: string;
placement?: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
}

2
components/mention/index.tsx

@ -19,7 +19,7 @@ export interface MentionProps {
multiLines?: Boolean;
prefix?: string;
placeholder?: string;
getSuggestionContainer?: Function;
getSuggestionContainer?: (triggerNode?: HTMLElement) => HTMLElement;
onFocus?: Function;
onBlur?: Function;
}

2
components/select/index.tsx

@ -35,7 +35,7 @@ export interface SelectProps extends AbstractSelectProps {
optionFilterProp?: string;
defaultActiveFirstOption?: boolean;
labelInValue?: boolean;
getPopupContainer?: (triggerNode: React.ReactNode) => React.ReactNode | HTMLElement;
getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement;
dropdownStyle?: React.CSSProperties;
dropdownMenuStyle?: React.CSSProperties;
onChange?: (value: SelectValue) => void;

2
components/time-picker/index.tsx

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

6
components/tooltip/index.tsx

@ -24,9 +24,9 @@ export interface AbstractTooltipProps {
trigger?: 'hover' | 'focus' | 'click';
openClassName?: string;
arrowPointAtCenter?: boolean;
// getTooltipContainer had been rename to getPopupDomNode
getTooltipContainer?: (triggerNode: Element) => HTMLElement;
getPopupContainer?: (triggerNode: Element) => HTMLElement;
// getTooltipContainer had been rename to getPopupContainer
getTooltipContainer?: (triggerNode?: HTMLElement) => HTMLElement;
getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement;
children?: React.ReactElement<any>;
}

2
components/tree-select/interface.tsx

@ -39,5 +39,5 @@ export interface TreeSelectProps {
notFoundContent?: React.ReactNode;
labelInValue?: boolean;
treeCheckStrictly?: boolean;
getPopupContainer?: (triggerNode: React.ReactNode) => HTMLElement;
getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement;
}

Loading…
Cancel
Save