mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
fix Dropdown.Button's type definition
This commit is contained in:
parent
053521be39
commit
1d63de1106
@ -1,6 +1,7 @@
|
||||
import React, { cloneElement } from 'react';
|
||||
import RcDropdown from 'rc-dropdown';
|
||||
import classNames from 'classnames';
|
||||
import DropdownButton from './dropdown-button';
|
||||
import warning from '../_util/warning';
|
||||
|
||||
export interface DropDownProps {
|
||||
@ -16,7 +17,7 @@ export interface DropDownProps {
|
||||
}
|
||||
|
||||
export default class Dropdown extends React.Component<DropDownProps, any> {
|
||||
static Button: React.ReactNode;
|
||||
static Button: typeof DropdownButton;
|
||||
static defaultProps = {
|
||||
prefixCls: 'ant-dropdown',
|
||||
mouseEnterDelay: 0.15,
|
||||
|
Loading…
Reference in New Issue
Block a user