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

71 lines
1.8 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
2020-08-31 06:59:56 +00:00
import { AntdComponent, AntdProps } from '../component';
2019-01-12 03:33:27 +00:00
import { Menu } from '../menu/menu';
import { DropdownButton } from './dropdown-button';
2020-08-19 13:02:18 +00:00
import { CSSProperties } from 'vue';
export declare class Dropdown extends AntdComponent {
static Button: typeof DropdownButton;
2020-08-31 06:59:56 +00:00
$props: AntdProps & {
2020-08-19 13:02:18 +00:00
/**
2020-08-30 14:59:47 +00:00
* the trigger mode which executes the drop-down action
* @default ['hover']
* @type string[]
*/
2020-08-19 13:02:18 +00:00
trigger?: Array<'click' | 'hover' | 'contextmenu'>;
2020-08-19 13:02:18 +00:00
/**
* the dropdown menu
* @type () => Menu
*/
2020-08-30 14:59:47 +00:00
overlay?: () => Menu;
2020-08-19 13:02:18 +00:00
/**
* Class name of the dropdown root element
* @type string
*/
overlayClassName?: string;
/**
* Style of the dropdown root element
* @type object
*/
overlayStyle?: CSSProperties;
/**
* whether the dropdown menu is visible
* @type boolean
*/
visible?: boolean;
/**
* whether the dropdown menu is disabled
* @type boolean
*/
disabled?: boolean;
/**
* to set the ontainer of the dropdown menu. The default is to create a div element in body, you can reset it to the scrolling area and make a relative reposition.
* @default () => document.body
* @type Function
*/
getPopupContainer?: (triggerNode?: any) => HTMLElement;
/**
* placement of pop menu: bottomLeft bottomCenter bottomRight topLeft topCenter topRight
* @default 'bottomLeft'
* @type string
*/
2020-08-30 14:59:47 +00:00
placement?:
| 'topLeft'
| 'topCenter'
| 'topRight'
| 'bottomLeft'
| 'bottomCenter'
| 'bottomRight';
};
}