2019-01-01 12:13:51 +08:00
|
|
|
// Project: https://github.com/vueComponent/ant-design-vue
|
|
|
|
// Definitions by: akki-jat <https://github.com/akki-jat>
|
|
|
|
// Definitions: https://github.com/vueComponent/ant-design-vue/types
|
|
|
|
|
2019-01-12 11:33:27 +08:00
|
|
|
import { AntdComponent } from '../component';
|
|
|
|
import { Menu } from '../menu/menu';
|
2019-01-01 12:13:51 +08:00
|
|
|
|
|
|
|
export declare class DropdownButton extends AntdComponent {
|
|
|
|
/**
|
|
|
|
* whether the dropdown menu is disabled
|
|
|
|
* @type boolean
|
|
|
|
*/
|
|
|
|
disabled: boolean;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* the dropdown menu
|
2019-09-10 18:57:08 +08:00
|
|
|
* @type () => Menu
|
2019-01-01 12:13:51 +08:00
|
|
|
*/
|
2019-09-10 18:57:08 +08:00
|
|
|
overlay: any;
|
2019-01-01 12:13:51 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* placement of pop menu: bottomLeft bottomCenter bottomRight topLeft topCenter topRight
|
|
|
|
* @default 'bottomLeft'
|
|
|
|
* @type string
|
|
|
|
*/
|
2019-01-12 11:33:27 +08:00
|
|
|
placement: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
2019-01-01 12:13:51 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* size of the button, the same as Button
|
|
|
|
* @default 'default'
|
|
|
|
* @type string
|
|
|
|
*/
|
2019-01-12 11:33:27 +08:00
|
|
|
size: 'small' | 'large' | 'default';
|
2019-01-01 12:13:51 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* the trigger mode which executes the drop-down action
|
|
|
|
* @default ['hover']
|
|
|
|
* @type string[]
|
|
|
|
*/
|
2019-01-12 11:33:27 +08:00
|
|
|
trigger: Array<'click' | 'hover' | 'contextmenu'>;
|
2019-01-01 12:13:51 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* type of the button, the same as Button
|
|
|
|
* @default 'default'
|
|
|
|
* @type string
|
|
|
|
*/
|
2019-01-12 11:33:27 +08:00
|
|
|
type: 'primary' | 'danger' | 'dashed' | 'ghost' | 'default';
|
2019-01-01 12:13:51 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* whether the dropdown menu is visible
|
|
|
|
* @type boolean
|
|
|
|
*/
|
|
|
|
visible: boolean;
|
2020-03-07 19:45:13 +08:00
|
|
|
icon: any;
|
|
|
|
title: string;
|
2019-01-01 12:13:51 +08:00
|
|
|
}
|