|
@ -1,13 +1,12 @@ |
|
|
import React from 'react'; |
|
|
import React from 'react'; |
|
|
import Button from '../button'; |
|
|
import Button from '../button'; |
|
|
|
|
|
import { ButtonGroupProps } from '../button/button-group'; |
|
|
import Icon from '../icon'; |
|
|
import Icon from '../icon'; |
|
|
import Dropdown from './dropdown'; |
|
|
import Dropdown from './dropdown'; |
|
|
const ButtonGroup = Button.Group; |
|
|
const ButtonGroup = Button.Group; |
|
|
import classNames from 'classnames'; |
|
|
import classNames from 'classnames'; |
|
|
|
|
|
|
|
|
export interface DropdownButtonProps { |
|
|
export interface DropdownButtonProps extends ButtonGroupProps { |
|
|
prefixCls?: string; |
|
|
|
|
|
className?: string; |
|
|
|
|
|
type?: 'primary' | 'ghost' | 'dashed'; |
|
|
type?: 'primary' | 'ghost' | 'dashed'; |
|
|
onClick?: React.MouseEventHandler<any>; |
|
|
onClick?: React.MouseEventHandler<any>; |
|
|
trigger?: ('click' | 'hover')[]; |
|
|
trigger?: ('click' | 'hover')[]; |
|
@ -16,7 +15,6 @@ export interface DropdownButtonProps { |
|
|
visible?: boolean; |
|
|
visible?: boolean; |
|
|
disabled?: boolean; |
|
|
disabled?: boolean; |
|
|
onVisibleChange?: (visible: boolean) => void; |
|
|
onVisibleChange?: (visible: boolean) => void; |
|
|
style?: React.CSSProperties; |
|
|
|
|
|
children?: any; |
|
|
children?: any; |
|
|
placement?: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight'; |
|
|
placement?: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight'; |
|
|
} |
|
|
} |
|
|