mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
fix Dropdown.Button Props (#6482)
* fix DropdownButton Props * let DropdownButtonProps extends ButtonGroupProps * remove duplicated props
This commit is contained in:
parent
9969a3b598
commit
dde8df5612
@ -1,13 +1,12 @@
|
||||
import React from 'react';
|
||||
import Button from '../button';
|
||||
import { ButtonGroupProps } from '../button/button-group';
|
||||
import Icon from '../icon';
|
||||
import Dropdown from './dropdown';
|
||||
const ButtonGroup = Button.Group;
|
||||
import classNames from 'classnames';
|
||||
|
||||
export interface DropdownButtonProps {
|
||||
prefixCls?: string;
|
||||
className?: string;
|
||||
export interface DropdownButtonProps extends ButtonGroupProps {
|
||||
type?: 'primary' | 'ghost' | 'dashed';
|
||||
onClick?: React.MouseEventHandler<any>;
|
||||
trigger?: ('click' | 'hover')[];
|
||||
@ -16,7 +15,6 @@ export interface DropdownButtonProps {
|
||||
visible?: boolean;
|
||||
disabled?: boolean;
|
||||
onVisibleChange?: (visible: boolean) => void;
|
||||
style?: React.CSSProperties;
|
||||
children?: any;
|
||||
placement?: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user