mirror of
https://github.com/wahyd4/ant-design.git
synced 2026-08-09 04:46:52 +10:00
Merge pull request #6424 from newraina/fix-dropdown-button-type
fix Dropdown.Button's type definition
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user