You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.5 KiB
62 lines
1.5 KiB
// 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
|
|
|
|
import { AntdComponent } from '../component';
|
|
import { Menu } from '../menu/menu';
|
|
import { VNodeChild } from 'vue';
|
|
|
|
export declare class DropdownButton extends AntdComponent {
|
|
$props: {
|
|
/**
|
|
* 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
|
|
*/
|
|
placement?: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
|
|
|
/**
|
|
* size of the button, the same as Button
|
|
* @default 'default'
|
|
* @type string
|
|
*/
|
|
size?: 'small' | 'large' | 'default';
|
|
|
|
/**
|
|
* the trigger mode which executes the drop-down action
|
|
* @default ['hover']
|
|
* @type string[]
|
|
*/
|
|
trigger?: Array<'click' | 'hover' | 'contextmenu'>;
|
|
|
|
/**
|
|
* type of the button, the same as Button
|
|
* @default 'default'
|
|
* @type string
|
|
*/
|
|
type?: 'primary' | 'danger' | 'dashed' | 'ghost' | 'default';
|
|
|
|
/**
|
|
* whether the dropdown menu is visible
|
|
* @type boolean
|
|
*/
|
|
visible?: boolean;
|
|
/**
|
|
* Icon (appears on the right) (1.5.0)
|
|
*/
|
|
icon?: VNodeChild | JSX.Element;
|
|
}
|
|
}
|