mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 05:29:37 +08:00
fix: fix document table order
This commit is contained in:
parent
331dadbef4
commit
17b800ffab
@ -1,11 +1,12 @@
|
||||
import * as React from 'react';
|
||||
import classNames from 'classnames';
|
||||
import Button from '../button';
|
||||
import { ButtonHTMLType } from '../button/button';
|
||||
import { ButtonGroupProps } from '../button/button-group';
|
||||
import { ConfigConsumer, ConfigConsumerProps } from '../config-provider';
|
||||
import Dropdown, { DropDownProps } from './dropdown';
|
||||
import classNames from 'classnames';
|
||||
import Icon from '../icon';
|
||||
|
||||
const ButtonGroup = Button.Group;
|
||||
|
||||
type DropdownButtonType = 'primary' | 'ghost' | 'dashed';
|
||||
@ -25,7 +26,6 @@ export interface DropdownButtonProps extends ButtonGroupProps, DropDownProps {
|
||||
|
||||
export default class DropdownButton extends React.Component<DropdownButtonProps, any> {
|
||||
static defaultProps = {
|
||||
icon: <Icon type="ellipsis" />,
|
||||
placement: 'bottomRight' as DropDownProps['placement'],
|
||||
type: 'default' as DropdownButtonType,
|
||||
};
|
||||
@ -50,7 +50,7 @@ export default class DropdownButton extends React.Component<DropdownButtonProps,
|
||||
placement,
|
||||
getPopupContainer,
|
||||
href,
|
||||
icon,
|
||||
icon = <Icon type="ellipsis" />,
|
||||
...restProps
|
||||
} = this.props;
|
||||
|
||||
|
@ -37,6 +37,7 @@ You should use [Menu](/components/menu/) as `overlay`. The menu items and divide
|
||||
| Property | Description | Type | Default | Version |
|
||||
| -------- | ----------- | ---- | ------- |------- |
|
||||
| disabled | whether the dropdown menu is disabled | boolean | - ||
|
||||
| icon | icon of right | ReactNode | - | 3.17.0 |
|
||||
| overlay | the dropdown menu | [Menu](/components/menu) | - ||
|
||||
| placement | placement of pop menu: `bottomLeft` `bottomCenter` `bottomRight` `topLeft` `topCenter` `topRight` | String | `bottomLeft` ||
|
||||
| size | size of the button, the same as [Button](/components/button) | string | `default` ||
|
||||
@ -45,4 +46,4 @@ You should use [Menu](/components/menu/) as `overlay`. The menu items and divide
|
||||
| visible | whether the dropdown menu is visible | boolean | - ||
|
||||
| onClick | a callback function, the same as [Button](/components/button), which will be executed when you click the button on the left | Function | - ||
|
||||
| onVisibleChange | a callback function takes an argument: `visible`, is executed when the visible state is changed | Function | - ||
|
||||
| icon | icon of right | ReactNode | - | 3.17.0 |
|
||||
|
||||
|
@ -38,6 +38,7 @@ title: Dropdown
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
| --- | --- | --- | --- |
|
||||
| disabled | 菜单是否禁用 | boolean | - |||
|
||||
| icon | 右侧的 icon | ReactNode | - | 3.17.0 |
|
||||
| overlay | 菜单 | [Menu](/components/menu/) | - ||
|
||||
| placement | 菜单弹出位置:`bottomLeft` `bottomCenter` `bottomRight` `topLeft` `topCenter` `topRight` | String | `bottomLeft` ||
|
||||
| size | 按钮大小,和 [Button](/components/button/) 一致 | string | 'default' ||
|
||||
@ -46,4 +47,3 @@ title: Dropdown
|
||||
| visible | 菜单是否显示 | boolean | - ||
|
||||
| onClick | 点击左侧按钮的回调,和 [Button](/components/button/) 一致 | Function | - ||
|
||||
| onVisibleChange | 菜单显示状态改变时调用,参数为 visible | Function | - ||
|
||||
| icon | 右侧的 icon | ReactNode | - | 3.17.0 |
|
Loading…
Reference in New Issue
Block a user