Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popover中的类型定义的overlay类型是错误的 #2571

Closed
xuguogang opened this issue May 24, 2018 · 1 comment
Closed

Popover中的类型定义的overlay类型是错误的 #2571

xuguogang opened this issue May 24, 2018 · 1 comment

Comments

@xuguogang
Copy link

export interface PopoverPropsType {
onSelect?: (node: any, index?: number) => void;
overlay: React.ComponentType;
disabled?: boolean;
}

overlay: React.ComponentType<any>; 这指类定义,在VS下编译是无法通过的。应该是    overlay: React.ReactNode;
@ant-design-bot
Copy link

Translation of this issue:


Popover type definition overlay type is wrong

Export interface PopoverPropsType {
    onSelect?: (node: any, index?: number) => void;
    Overlay: React.ComponentType;
    Disabled?: boolean;
}

    Overlay: React.ComponentType; This refers to the class definition. Compiling through VS is not possible. Should be overlay: React.ReactNode;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants