完成d.ts定义的优化

This commit is contained in:
yangd 2018-08-30 13:27:15 +08:00
parent 6da055f33f
commit 414730dde3
61 changed files with 353 additions and 382 deletions

79
types/dropdown.d.ts vendored Normal file
View file

@ -0,0 +1,79 @@
// 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";
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[];
};
}
export declare class DropdownItem extends Vue {
/**
*
*/
name?: string;
/**
*
* @default false
*/
disabled?: boolean;
/**
* 线
* @default false
*/
divided?: boolean;
/**
*
* @default false
*/
selected?: boolean;
}