public show(args?:any):void{
this._privateArgs=args;
this.isVisible=true;
this.tplModal = this._modalService.create({
nzTitle: this.tplTitle,
nzContent: this.tplContent,
nzFooter: this.tplFooter,
nzMaskClosable: false,
nzVisible:false,
nzClosable: false,
nzStyle:{ top: '20px' },
nzMask:true,
nzWidth:this.nzWidth,
nzOkLoading:this.nzOkLoading,
nzCancelLoading:this.nzCancelLoading
});
this.tplModal.afterOpen.subscribe(r=>{
this.init();
this.onShown();
})
this.tplModal.afterClose.subscribe(r=>{
this.onClose();
})
this.tplModal.open();
this.onOpen();
}
我只想通过服务构建模态并自己打开控制模态,但设置 nzVisible :false 不起作用,