iview/types/poptip.d.ts

123 lines
3.1 KiB
TypeScript
Raw Normal View History

2019-03-12 11:30:07 +08:00
// Type definitions for iview 3.3.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Poptip extends Vue {
/**
* hoverclickfocus,
* confirm click
* @default click
*/
trigger?: string;
/**
*
*/
title?: string | number;
/**
* confirm \
* @default
*/
content?: string | number;
/**
*
* toptop-starttop-endbottombottom-startbottom-end
* leftleft-startleft-endrightright-startright-end
* 2.12.0
* @default top
*/
placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
/**
* 150px confirm 300px
*/
width?: string | number;
/**
*
* @default false
*/
confirm?: boolean;
/**
* confirm
* @default
*/
'ok-text'?: string;
/**
* confirm
* @default
*/
'cancel-text'?: string;
/**
* body Tabs fixed Table 使
*
* @default false
*/
transfer?: boolean;
/**
* Poptip class-name使 transfer
* @default false
*/
'popper-class'?: string;
/**
*
* @default false
*/
'word-wrap'?: boolean;
/**
*
* @default 8px 16px
*/
padding?: string;
/**
*
* @default false
*/
offset?: string;
/**
* popper.js popper.js
* @default {
modifiers: {
computeStyle:{
gpuAcceleration: false,
},
preventOverflow :{
boundariesElement: 'window'
}
}
}
*/
options?: object;
/**
*
*/
$emit(eventName: 'on-popper-show'): this;
/**
*
*/
$emit(eventName: 'on-popper-hide'): this;
/**
* confirm
*/
$emit(eventName: 'on-ok'): this;
/**
* confirm
*/
$emit(eventName: 'on-cancel'): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
* slot props title
*/
title: VNode[];
/**
* slot props content confirm
*/
content: VNode[];
}
}