本文整理匯總了TypeScript中jigsaw/service/popup.service.PopupService.popup方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript service.PopupService.popup方法的具體用法?TypeScript service.PopupService.popup怎麽用?TypeScript service.PopupService.popup使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類jigsaw/service/popup.service.PopupService
的用法示例。
在下文中一共展示了service.PopupService.popup方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: popup
popup() {
this._tooltipInfo = this._popupService.popup(UserTooltipDialogComponent, {
modal: false, //是否模態
showEffect: PopupEffect.bubbleIn,
hideEffect: PopupEffect.bubbleOut,
pos: this.insertPlaceEl, //插入點
posOffset: { //偏移位置
bottom: -8,
left: 0
},
posType: PopupPositionType.absolute, //定位類型
});
}
示例2: popupDialog1
popupDialog1(ele: TemplateRef<any>) {
this.option.posOffset = {
top: this.offset.top === null ? this.offset.top : Number(this.offset.top),
left: this.offset.left === null ? this.offset.left : Number(this.offset.left),
right: this.offset.right === null ? this.offset.right : Number(this.offset.right),
bottom: this.offset.bottom === null ? this.offset.bottom : Number(this.offset.bottom)
};
if (this.selectedPos.label != "point") {
this.option.pos = this.selectedPos.ele;
} else {
this.option.pos = {
x: this.detailPos.x === null ? this.detailPos.x : Number(this.detailPos.x),
y: this.detailPos.y === null ? this.detailPos.y : Number(this.detailPos.y),
};
}
if(this._dialogInfo){
this._dialogInfo.dispose();
}
this._dialogInfo = this.popupService.popup(ele, this.option);
}
示例3: popupTemplate
popupTemplate(tp){
this._popupInfo = this._popupService.popup(tp);
this._disposer = () => {this._popupInfo.dispose()}
}
示例4: popupDialog2
popupDialog2(ele: TemplateRef<any>) {
this._dialogInfo2 = this.popupService.popup(ele);
}