ant-design-vue/types/dropdown/dropdown-button.d.ts

55 lines
1.3 KiB
TypeScript
Raw Normal View History

// 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 03:33:27 +00:00
import { AntdComponent } from '../component';
import { Menu } from '../menu/menu';
export declare class DropdownButton extends AntdComponent {
/**
* whether the dropdown menu is disabled
* @type boolean
*/
disabled: boolean;
/**
* the dropdown menu
* @type Menu
*/
overlay: Menu;
/**
* placement of pop menu: bottomLeft bottomCenter bottomRight topLeft topCenter topRight
* @default 'bottomLeft'
* @type string
*/
2019-01-12 03:33:27 +00:00
placement: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
/**
* size of the button, the same as Button
* @default 'default'
* @type string
*/
2019-01-12 03:33:27 +00:00
size: 'small' | 'large' | 'default';
/**
* the trigger mode which executes the drop-down action
* @default ['hover']
* @type string[]
*/
2019-01-12 03:33:27 +00:00
trigger: Array<'click' | 'hover' | 'contextmenu'>;
/**
* type of the button, the same as Button
* @default 'default'
* @type string
*/
2019-01-12 03:33:27 +00:00
type: 'primary' | 'danger' | 'dashed' | 'ghost' | 'default';
/**
* whether the dropdown menu is visible
* @type boolean
*/
visible: boolean;
}