iview/types/tooltip.d.ts

91 lines
2.1 KiB
TypeScript
Raw Normal View History

// Type definitions for iview 3.3.1
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Tooltip extends Vue {
/**
*
* @default
*/
content?: string | number;
/**
*
* 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';
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default 0
*/
delay?: number;
/**
*
* @default false
*/
always?: boolean;
/**
* dark light
* @default dark
*/
theme?: string;
/**
*
*/
'max-width'?: string|number;
/**
*
* @default 0
*/
offset?: number;
/**
* body Tabs fixed Table 使
*
* @default false
*/
transfer?: boolean;
/**
*
* @default {
modifiers: {
computeStyle:{
gpuAcceleration: false,
},
preventOverflow :{
boundariesElement: 'window'
}
}
}
*/
options?: object;
/**
*
*/
$emit(eventName: 'on-popper-show'): this;
/**
*
*/
$emit(eventName: 'on-popper-hide'): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
* slot props content
*/
content: VNode[];
};
}