iview/types/dropdown.d.ts

79 lines
2.1 KiB
TypeScript
Raw Normal View History

2018-08-30 13:27:15 +08:00
// Type definitions for iview 3.0.1
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from "vue";
2018-08-30 13:27:15 +08:00
export declare class Dropdown extends Vue {
/**
* hoverclickcontextMenucustom使 custom visible 使
* @default hover
*/
trigger?: 'hover'|'click'|'custom'|'contextMenu';
/**
* trigger = 'custom' 使
* @default false
*/
visible?: boolean;
/**
*
* toptop-starttop-endbottombottom-startbottom-end
* leftleft-startleft-endrightright-startright-end
* 2.12.0
* @default bottom
*/
placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
/**
* body Tabs fixed Table 使
* @default false
*/
transfer?: boolean;
/**
*
*
*/
$emit(eventName: 'on-click', value: string): this;
/**
*
*/
$emit(eventName: 'on-visible-change', value: boolean): this;
/**
*
*/
$emit(eventName: 'on-clickoutside', event: object): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
* DropdownMenu
*/
list: VNode[];
};
}
2018-08-30 13:27:15 +08:00
export declare class DropdownItem extends Vue {
/**
*
*/
name?: string;
/**
*
* @default false
*/
disabled?: boolean;
/**
* 线
* @default false
*/
divided?: boolean;
/**
*
* @default false
*/
selected?: boolean;
}