Merge pull request #6424 from newraina/fix-dropdown-button-type

fix Dropdown.Button's type definition
This commit is contained in:
偏右 2017-06-09 19:50:18 +08:00 committed by GitHub
commit ace361e3ab

View File

@ -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,