-
Notifications
You must be signed in to change notification settings - Fork 11
/
chunk-LOEY224S.js
100 lines (86 loc) · 115 KB
/
chunk-LOEY224S.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import{a as Me,b as oe,c as k,d as O,e as Ce,f as N,g}from"./chunk-7B2MMNHF.js";import"./chunk-DGVZRYL7.js";import"./chunk-6YVFCLUS.js";import"./chunk-CU5AYJGV.js";import{a as C,b as F,d as b}from"./chunk-B4IH7RR4.js";import{a as h}from"./chunk-7HQXT7RK.js";import{a as Z,g as ee,h as te,j as le}from"./chunk-2RTS5GAO.js";import"./chunk-V2SRXRXL.js";import{Ea as Y,Ic as $,Kc as ne,Lc as ie,Wb as J}from"./chunk-BYER7FCH.js";import{$b as P,Ca as x,Da as S,Ea as D,Fa as B,Fb as M,Hb as c,Jc as j,Vb as n,Wb as t,Xb as l,Yb as R,Zb as W,cc as s,ec as T,lc as q,ma as fe,mb as u,mc as Q,nb as A,nc as U,oc as G,pc as e,qc as X,ra as E,sc as De,uc as v,vc as y,wc as _,xb as ge,yc as z,zc as Be}from"./chunk-U274QCT3.js";import{f as he,g as Fe,h as be}from"./chunk-RKLIRILV.js";function ke(m,i){m&1&&(n(0,"p"),e(1,"Modal Content"),t())}var ae=(()=>{let i=class i{constructor(){this.isVisible=!1,this.isOkLoading=!1}showModal(){this.isVisible=!0}handleOk(){this.isOkLoading=!0,setTimeout(()=>{this.isVisible=!1,this.isOkLoading=!1},3e3)}handleCancel(){this.isVisible=!1}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=E({type:i,selectors:[["nz-demo-modal-async"]],standalone:!0,features:[z],decls:5,vars:2,consts:[["nz-button","","nzType","primary",3,"click"],["nzTitle","Modal Title",3,"nzVisibleChange","nzOnCancel","nzOnOk","nzVisible","nzOkLoading"],[4,"nzModalContent"]],template:function(o,a){o&1&&(n(0,"button",0),s("click",function(){return a.showModal()}),n(1,"span"),e(2,"Show Modal"),t()(),n(3,"nz-modal",1),_("nzVisibleChange",function(p){return y(a.isVisible,p)||(a.isVisible=p),p}),s("nzOnCancel",function(){return a.handleCancel()})("nzOnOk",function(){return a.handleOk()}),M(4,ke,2,0,"p",2),t()),o&2&&(u(3),v("nzVisible",a.isVisible),c("nzOkLoading",a.isOkLoading))},dependencies:[b,F,C,h,g,N,O],encapsulation:2});let m=i;return m})();function Ne(m,i){m&1&&(R(0),n(1,"p"),e(2,"Content one"),t(),n(3,"p"),e(4,"Content two"),t(),n(5,"p"),e(6,"Content three"),t(),W())}var me=(()=>{let i=class i{constructor(){this.isVisible=!1}showModal(){this.isVisible=!0}handleOk(){console.log("Button ok clicked!"),this.isVisible=!1}handleCancel(){console.log("Button cancel clicked!"),this.isVisible=!1}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=E({type:i,selectors:[["nz-demo-modal-basic"]],standalone:!0,features:[z],decls:5,vars:2,consts:[["nz-button","",3,"click","nzType"],["nzTitle","The first Modal",3,"nzVisibleChange","nzOnCancel","nzOnOk","nzVisible"],[4,"nzModalContent"]],template:function(o,a){o&1&&(n(0,"button",0),s("click",function(){return a.showModal()}),n(1,"span"),e(2,"Show Modal"),t()(),n(3,"nz-modal",1),_("nzVisibleChange",function(p){return y(a.isVisible,p)||(a.isVisible=p),p}),s("nzOnCancel",function(){return a.handleCancel()})("nzOnOk",function(){return a.handleOk()}),M(4,Ne,7,0,"ng-container",2),t()),o&2&&(c("nzType","primary"),u(3),v("nzVisible",a.isVisible))},dependencies:[b,F,C,h,g,N,O],encapsulation:2});let m=i;return m})();var de=(()=>{let i=class i{constructor(d){this.modal=d}showConfirm(){this.confirmModal=this.modal.confirm({nzTitle:"Do you Want to delete these items?",nzContent:"When clicked the OK button, this dialog will be closed after 1 second",nzOnOk:()=>new Promise((d,o)=>{setTimeout(Math.random()>.5?d:o,1e3)}).catch(()=>console.log("Oops errors!"))})}};i.\u0275fac=function(o){return new(o||i)(A(k))},i.\u0275cmp=E({type:i,selectors:[["nz-demo-modal-confirm-promise"]],standalone:!0,features:[z],decls:2,vars:0,consts:[["nz-button","","nzType","primary",3,"click"]],template:function(o,a){o&1&&(n(0,"button",0),s("click",function(){return a.showConfirm()}),e(1,"Confirm"),t())},dependencies:[b,F,C,h,g],encapsulation:2});let m=i;return m})();var re=(()=>{let i=class i{constructor(d){this.modal=d}showConfirm(){this.modal.confirm({nzTitle:"<i>Do you Want to delete these items?</i>",nzContent:"<b>Some descriptions</b>",nzOnOk:()=>console.log("OK")})}showDeleteConfirm(){this.modal.confirm({nzTitle:"Are you sure delete this task?",nzContent:'<b style="color: red;">Some descriptions</b>',nzOkText:"Yes",nzOkType:"primary",nzOkDanger:!0,nzOnOk:()=>console.log("OK"),nzCancelText:"No",nzOnCancel:()=>console.log("Cancel")})}};i.\u0275fac=function(o){return new(o||i)(A(k))},i.\u0275cmp=E({type:i,selectors:[["nz-demo-modal-confirm"]],standalone:!0,features:[z],decls:4,vars:0,consts:[["nz-button","","nzType","primary",3,"click"],["nz-button","","nzType","dashed",3,"click"]],template:function(o,a){o&1&&(n(0,"button",0),s("click",function(){return a.showConfirm()}),e(1,"Confirm"),t(),n(2,"button",1),s("click",function(){return a.showDeleteConfirm()}),e(3,"Delete"),t())},dependencies:[b,F,C,h,g],styles:["button[_ngcontent-%COMP%]{margin-right:8px}"]});let m=i;return m})();function Te(m,i){m&1&&(R(0),n(1,"p"),e(2,"Just don't learn physics at school and your life will be full of magic and miracles."),t(),n(3,"p"),e(4,"Day before yesterday I saw a rabbit, and yesterday a deer, and today, you."),t(),W())}var ue=(()=>{let i=class i{constructor(){this.isVisible=!1}showModal(){this.isVisible=!0}handleOk(){console.log("Button ok clicked!"),this.isVisible=!1}handleCancel(){console.log("Button cancel clicked!"),this.isVisible=!1}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=E({type:i,selectors:[["nz-demo-modal-draggable"]],standalone:!0,features:[z],decls:5,vars:1,consts:[["nz-button","","nzType","default",3,"click"],["nzDraggable","","nzCentered","","nzTitle","Draggable Modal",3,"nzVisibleChange","nzOnCancel","nzOnOk","nzVisible"],[4,"nzModalContent"]],template:function(o,a){o&1&&(n(0,"button",0),s("click",function(){return a.showModal()}),n(1,"span"),e(2,"Open Draggable Modal"),t()(),n(3,"nz-modal",1),_("nzVisibleChange",function(p){return y(a.isVisible,p)||(a.isVisible=p),p}),s("nzOnCancel",function(){return a.handleCancel()})("nzOnOk",function(){return a.handleOk()}),M(4,Te,5,0,"ng-container",2),t()),o&2&&(u(3),v("nzVisible",a.isVisible))},dependencies:[b,F,C,h,g,N,O],encapsulation:2});let m=i;return m})();function we(m,i){m&1&&e(0,"Custom Modal Title")}function Oe(m,i){m&1&&(n(0,"p"),e(1,"Modal Content"),t(),n(2,"p"),e(3,"Modal Content"),t(),n(4,"p"),e(5,"Modal Content"),t(),n(6,"p"),e(7,"Modal Content"),t(),n(8,"p"),e(9,"Modal Content"),t())}function Ie(m,i){if(m&1){let f=P();n(0,"span"),e(1,"Modal Footer:"),t(),n(2,"button",5),s("click",function(){D(f);let o=T();return B(o.handleCancel())}),e(3,"Custom Callback"),t(),n(4,"button",6),s("click",function(){D(f);let o=T();return B(o.handleOk())}),e(5,"Custom Submit"),t()}if(m&2){let f=T();u(4),c("nzLoading",f.isConfirmLoading)}}var se=(()=>{let i=class i{constructor(){this.isVisible=!1,this.isConfirmLoading=!1}showModal(){this.isVisible=!0}handleOk(){this.isConfirmLoading=!0,setTimeout(()=>{this.isVisible=!1,this.isConfirmLoading=!1},1e3)}handleCancel(){this.isVisible=!1}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=E({type:i,selectors:[["nz-demo-modal-footer"]],standalone:!0,features:[z],decls:10,vars:4,consts:[["modalTitle",""],["modalContent",""],["modalFooter",""],["nz-button","","nzType","primary",3,"click"],[3,"nzVisibleChange","nzOnCancel","nzVisible","nzTitle","nzContent","nzFooter"],["nz-button","","nzType","default",3,"click"],["nz-button","","nzType","primary",3,"click","nzLoading"]],template:function(o,a){if(o&1){let r=P();n(0,"button",3),s("click",function(){return D(r),B(a.showModal())}),n(1,"span"),e(2,"Show Modal"),t()(),n(3,"nz-modal",4),_("nzVisibleChange",function(K){return D(r),y(a.isVisible,K)||(a.isVisible=K),B(K)}),s("nzOnCancel",function(){return D(r),B(a.handleCancel())}),M(4,we,1,0,"ng-template",null,0,j)(6,Oe,10,0,"ng-template",null,1,j)(8,Ie,6,1,"ng-template",null,2,j),t()}if(o&2){let r=G(5),p=G(7),K=G(9);u(3),v("nzVisible",a.isVisible),c("nzTitle",r)("nzContent",p)("nzFooter",K)}},dependencies:[b,F,C,h,g,N],encapsulation:2});let m=i;return m})();function Ve(m,i){m&1&&(n(0,"div")(1,"p"),e(2,"Modal Content"),t(),n(3,"p"),e(4,"Modal Content"),t(),n(5,"p"),e(6,"Modal Content"),t(),n(7,"p"),e(8,"Modal Content"),t(),n(9,"p"),e(10,"Modal Content"),t()())}function He(m,i){if(m&1){let f=P();n(0,"div")(1,"span"),e(2,"Modal Footer:"),t(),n(3,"button",4),s("click",function(){D(f);let o=T();return B(o.handleCancel())}),e(4,"Custom Callback"),t(),n(5,"button",5),s("click",function(){D(f);let o=T();return B(o.handleOk())}),e(6,"Custom Submit"),t()()}if(m&2){let f=T();u(5),c("nzLoading",f.isConfirmLoading)}}function Le(m,i){if(m&1){let f=P();n(0,"div")(1,"button",1),s("click",function(){D(f);let o=T();return B(o.destroyModal())}),e(2,"Custom Callback"),t(),n(3,"button",2),s("click",function(){D(f);let o=T();return B(o.destroyModal())}),e(4,"Custom Submit"),t()()}}var ce=(()=>{let i=class i{constructor(d){this.modalService=d,this.isVisible=!1,this.isConfirmLoading=!1}showModal1(){this.isVisible=!0}showModal2(){this.modalService.create({nzTitle:"Modal Title",nzContent:Re})}handleOk(){this.isConfirmLoading=!0,setTimeout(()=>{this.isVisible=!1,this.isConfirmLoading=!1},3e3)}handleCancel(){this.isVisible=!1}};i.\u0275fac=function(o){return new(o||i)(A(k))},i.\u0275cmp=E({type:i,selectors:[["nz-demo-modal-footer2"]],standalone:!0,features:[z],decls:11,vars:1,consts:[["nz-button","","nzType","primary",3,"click"],["nzTitle","Custom Modal Title",3,"nzVisibleChange","nzOnCancel","nzVisible"],[4,"nzModalContent"],[4,"nzModalFooter"],["nz-button","","nzType","default",3,"click"],["nz-button","","nzType","primary",3,"click","nzLoading"]],template:function(o,a){o&1&&(n(0,"button",0),s("click",function(){return a.showModal1()}),n(1,"span"),e(2,"In Template"),t()(),l(3,"br")(4,"br"),n(5,"button",0),s("click",function(){return a.showModal2()}),n(6,"span"),e(7,"In Component"),t()(),n(8,"nz-modal",1),_("nzVisibleChange",function(p){return y(a.isVisible,p)||(a.isVisible=p),p}),s("nzOnCancel",function(){return a.handleCancel()}),M(9,Ve,11,0,"div",2)(10,He,7,1,"div",3),t()),o&2&&(u(8),v("nzVisible",a.isVisible))},dependencies:[b,F,C,h,g,N,Ce,O],encapsulation:2});let m=i;return m})(),Re=(()=>{let i=class i{constructor(d){this.modal=d}destroyModal(){this.modal.destroy()}};i.\u0275fac=function(o){return new(o||i)(A(oe))},i.\u0275cmp=E({type:i,selectors:[["nz-modal-custom-footer-component"]],standalone:!0,features:[z],decls:12,vars:0,consts:[[4,"nzModalFooter"],["nz-button","","nzType","default",3,"click"],["nz-button","","nzType","primary",3,"click"]],template:function(o,a){o&1&&(n(0,"div")(1,"p"),e(2,"Modal Content"),t(),n(3,"p"),e(4,"Modal Content"),t(),n(5,"p"),e(6,"Modal Content"),t(),n(7,"p"),e(8,"Modal Content"),t(),n(9,"p"),e(10,"Modal Content"),t()(),M(11,Le,5,0,"div",0))},dependencies:[b,F,C,h,g,Ce],encapsulation:2});let m=i;return m})();var pe=(()=>{let i=class i{constructor(d){this.modal=d}info(){this.modal.info({nzTitle:"This is a notification message",nzContent:"<p>some messages...some messages...</p><p>some messages...some messages...</p>",nzOnOk:()=>console.log("Info OK")})}success(){this.modal.success({nzTitle:"This is a success message",nzContent:"some messages...some messages..."})}error(){this.modal.error({nzTitle:"This is an error message",nzContent:"some messages...some messages..."})}warning(){this.modal.warning({nzTitle:"This is an warning message",nzContent:"some messages...some messages..."})}};i.\u0275fac=function(o){return new(o||i)(A(k))},i.\u0275cmp=E({type:i,selectors:[["nz-demo-modal-info"]],standalone:!0,features:[z],decls:8,vars:0,consts:[["nz-button","",3,"click"]],template:function(o,a){o&1&&(n(0,"button",0),s("click",function(){return a.info()}),e(1,"Info"),t(),n(2,"button",0),s("click",function(){return a.success()}),e(3,"Success"),t(),n(4,"button",0),s("click",function(){return a.error()}),e(5,"Error"),t(),n(6,"button",0),s("click",function(){return a.warning()}),e(7,"Warning"),t())},dependencies:[b,F,C,h,g],styles:["button[_ngcontent-%COMP%]{margin-right:8px}"]});let m=i;return m})();function We(m,i){m&1&&(R(0),n(1,"p"),e(2,"Bla bla ..."),t(),n(3,"p"),e(4,"Bla bla ..."),t(),n(5,"p"),e(6,"Bla bla ..."),t(),W())}var Ee=(()=>{let i=class i{constructor(d){this.modalService=d,this.isVisible=!1}showModal(){this.isVisible=!0}handleOk(){this.isVisible=!1}handleCancel(){this.isVisible=!1}showConfirm(){this.modalService.confirm({nzTitle:"Confirm",nzContent:"Bla bla ...",nzOkText:"OK",nzCancelText:"Cancel"})}};i.\u0275fac=function(o){return new(o||i)(A(k))},i.\u0275cmp=E({type:i,selectors:[["nz-demo-modal-locale"]],standalone:!0,features:[z],decls:8,vars:1,consts:[["nz-button","","nzType","primary",3,"click"],["nzTitle","Modal","nzOkText","Ok","nzCancelText","Cancel",3,"nzVisibleChange","nzOnOk","nzOnCancel","nzVisible"],[4,"nzModalContent"]],template:function(o,a){o&1&&(n(0,"div")(1,"button",0),s("click",function(){return a.showModal()}),e(2,"Modal"),t(),n(3,"nz-modal",1),_("nzVisibleChange",function(p){return y(a.isVisible,p)||(a.isVisible=p),p}),s("nzOnOk",function(){return a.handleOk()})("nzOnCancel",function(){return a.handleCancel()}),M(4,We,7,0,"ng-container",2),t()(),l(5,"br"),n(6,"button",0),s("click",function(){return a.showConfirm()}),e(7,"Confirm"),t()),o&2&&(u(3),v("nzVisible",a.isVisible))},dependencies:[b,F,C,h,g,N,O],encapsulation:2});let m=i;return m})();var xe=(()=>{let i=class i{constructor(d){this.modalService=d}success(){let d=this.modalService.success({nzTitle:"This is a notification message",nzContent:"This modal will be destroyed after 1 second"});setTimeout(()=>d.destroy(),1e3)}};i.\u0275fac=function(o){return new(o||i)(A(k))},i.\u0275cmp=E({type:i,selectors:[["nz-demo-modal-manual"]],standalone:!0,features:[z],decls:2,vars:0,consts:[["nz-button","",3,"click"]],template:function(o,a){o&1&&(n(0,"button",0),s("click",function(){return a.success()}),e(1,"Success"),t())},dependencies:[b,F,C,h,g],encapsulation:2});let m=i;return m})();var Pe=()=>({top:"20px"});function Ge(m,i){m&1&&(R(0),n(1,"p"),e(2,"some contents..."),t(),n(3,"p"),e(4,"some contents..."),t(),n(5,"p"),e(6,"some contents..."),t(),W())}function je(m,i){m&1&&(R(0),n(1,"p"),e(2,"some contents..."),t(),n(3,"p"),e(4,"some contents..."),t(),n(5,"p"),e(6,"some contents..."),t(),W())}var Se=(()=>{let i=class i{constructor(){this.isVisibleTop=!1,this.isVisibleMiddle=!1}showModalTop(){this.isVisibleTop=!0}showModalMiddle(){this.isVisibleMiddle=!0}handleOkTop(){console.log("\u70B9\u51FB\u4E86\u786E\u5B9A"),this.isVisibleTop=!1}handleCancelTop(){this.isVisibleTop=!1}handleOkMiddle(){console.log("click ok"),this.isVisibleMiddle=!1}handleCancelMiddle(){this.isVisibleMiddle=!1}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=E({type:i,selectors:[["nz-demo-modal-position"]],standalone:!0,features:[z],decls:10,vars:4,consts:[["nz-button","","nzType","primary",3,"click"],["nzTitle","20px to Top",3,"nzVisibleChange","nzOnCancel","nzOnOk","nzStyle","nzVisible"],[4,"nzModalContent"],["nzTitle","Vertically centered modal dialog","nzCentered","",3,"nzVisibleChange","nzOnCancel","nzOnOk","nzVisible"]],template:function(o,a){o&1&&(n(0,"button",0),s("click",function(){return a.showModalTop()}),e(1,"Display a modal dialog at 20px to Top"),t(),n(2,"nz-modal",1),_("nzVisibleChange",function(p){return y(a.isVisibleTop,p)||(a.isVisibleTop=p),p}),s("nzOnCancel",function(){return a.handleCancelTop()})("nzOnOk",function(){return a.handleOkTop()}),M(3,Ge,7,0,"ng-container",2),t(),l(4,"br")(5,"br"),n(6,"button",0),s("click",function(){return a.showModalMiddle()}),e(7,"Vertically centered modal dialog"),t(),n(8,"nz-modal",3),_("nzVisibleChange",function(p){return y(a.isVisibleMiddle,p)||(a.isVisibleMiddle=p),p}),s("nzOnCancel",function(){return a.handleCancelMiddle()})("nzOnOk",function(){return a.handleOkMiddle()}),M(9,je,7,0,"ng-container",2),t()),o&2&&(u(2),c("nzStyle",Be(3,Pe)),v("nzVisible",a.isVisibleTop),u(6),v("nzVisible",a.isVisibleMiddle))},dependencies:[b,F,C,h,g,N,O],encapsulation:2});let m=i;return m})();function Ze(m,i){m&1&&(n(0,"span"),e(1,"Title Template"),t())}function Ke(m,i){if(m&1&&(n(0,"p"),e(1,"some contents..."),t(),n(2,"p"),e(3,"some contents..."),t(),n(4,"p"),e(5),t()),m&2){let f=i.$implicit;u(5),X(f==null?null:f.value)}}function qe(m,i){if(m&1){let f=P();n(0,"button",4),s("click",function(){let o=D(f).modalRef;return B(o.destroy())}),e(1,"Destroy"),t(),n(2,"button",5),s("click",function(){let o=D(f).modalRef,a=T();return B(a.destroyTplModal(o))}),e(3," Close after submit "),t()}if(m&2){let f=T();u(2),c("nzLoading",f.tplModalButtonLoading)}}var ze=(()=>{let i=class i{constructor(d,o){this.modal=d,this.viewContainerRef=o,this.tplModalButtonLoading=!1,this.disabled=!1}createModal(){this.modal.create({nzTitle:"Modal Title",nzContent:"string, will close after 1 sec",nzClosable:!1,nzOnOk:()=>new Promise(d=>setTimeout(d,1e3))})}createTplModal(d,o,a){this.modal.create({nzTitle:d,nzContent:o,nzFooter:a,nzMaskClosable:!1,nzClosable:!1,nzOnOk:()=>console.log("Click ok")})}destroyTplModal(d){this.tplModalButtonLoading=!0,setTimeout(()=>{this.tplModalButtonLoading=!1,d.destroy()},1e3)}createComponentModal(){let d=this.modal.create({nzTitle:"Modal Title",nzContent:Qe,nzViewContainerRef:this.viewContainerRef,nzData:{favoriteLibrary:"angular",favoriteFramework:"angular"},nzOnOk:()=>new Promise(a=>setTimeout(a,1e3)),nzFooter:[{label:"change component title from outside",onClick:a=>{a.title="title in inner component is changed"}}]}),o=d.getContentComponent();d.afterOpen.subscribe(()=>console.log("[afterOpen] emitted!")),d.afterClose.subscribe(a=>console.log("[afterClose] The result is:",a)),setTimeout(()=>{o.subtitle="sub title is changed"},2e3)}createCustomButtonModal(){let d=this.modal.create({nzTitle:"custom button demo",nzContent:"pass array of button config to nzFooter to create multiple buttons",nzFooter:[{label:"Close",shape:"round",onClick:()=>d.destroy()},{label:"Confirm",type:"primary",onClick:()=>this.modal.confirm({nzTitle:"Confirm Modal Title",nzContent:"Confirm Modal Content"})},{label:"Change Button Status",type:"primary",danger:!0,loading:!1,onClick(){this.loading=!0,setTimeout(()=>this.loading=!1,1e3),setTimeout(()=>{this.loading=!1,this.disabled=!0,this.label="can not be clicked\uFF01"},2e3)}},{label:"async load",type:"dashed",onClick:()=>new Promise(o=>setTimeout(o,2e3))}]})}openAndCloseAll(){let d=0;["create","info","success","error"].forEach(o=>this.modal[o]({nzMask:!1,nzTitle:`Test ${o} title`,nzContent:`Test content: <b>${o}</b>`,nzStyle:{position:"absolute",top:`${d*70}px`,left:`${d++*300}px`}})),this.modal.afterAllClose.subscribe(()=>console.log("afterAllClose emitted!")),setTimeout(()=>this.modal.closeAll(),2e3)}};i.\u0275fac=function(o){return new(o||i)(A(k),A(ge))},i.\u0275cmp=E({type:i,selectors:[["nz-demo-modal-service"]],standalone:!0,features:[z],decls:23,vars:0,consts:[["tplTitle",""],["tplContent",""],["tplFooter",""],["nz-button","","nzType","primary",3,"click"],["nz-button","",3,"click"],["nz-button","","nzType","primary",3,"click","nzLoading"]],template:function(o,a){if(o&1){let r=P();n(0,"button",3),s("click",function(){return D(r),B(a.createModal())}),n(1,"span"),e(2,"String"),t()(),n(3,"button",3),s("click",function(){D(r);let K=G(7),ye=G(9),_e=G(11);return B(a.createTplModal(K,ye,_e))}),n(4,"span"),e(5,"Template"),t()(),M(6,Ze,2,0,"ng-template",null,0,j)(8,Ke,6,1,"ng-template",null,1,j)(10,qe,4,1,"ng-template",null,2,j),l(12,"br")(13,"br"),n(14,"button",3),s("click",function(){return D(r),B(a.createComponentModal())}),n(15,"span"),e(16,"Use Component"),t()(),n(17,"button",3),s("click",function(){return D(r),B(a.createCustomButtonModal())}),e(18,"Custom Button"),t(),l(19,"br")(20,"br"),n(21,"button",3),s("click",function(){return D(r),B(a.openAndCloseAll())}),e(22,"Open more modals then close all after 2s"),t()}},dependencies:[b,F,C,h,g],styles:["button[_ngcontent-%COMP%]{margin-right:8px}"]});let m=i;return m})(),Qe=(()=>{var i;let f=class f{constructor(){Fe(this,i);be(this,i,fe(oe)),this.nzModalData=fe(Me)}destroyModal(){he(this,i).destroy({data:"this the result data"})}};i=new WeakMap,f.\u0275fac=function(a){return new(a||f)},f.\u0275cmp=E({type:f,selectors:[["nz-modal-custom-component"]],inputs:{title:"title",subtitle:"subtitle"},standalone:!0,features:[z],decls:12,vars:5,consts:[["nz-button","",3,"click","nzType"]],template:function(a,r){a&1&&(n(0,"div")(1,"h2"),e(2),t(),n(3,"h4"),e(4),t(),n(5,"p"),e(6),t(),n(7,"p")(8,"span"),e(9,"Get Modal instance in component"),t(),n(10,"button",0),s("click",function(){return r.destroyModal()}),e(11,"destroy modal in the component"),t()()()),a&2&&(u(2),X(r.title),u(2),X(r.subtitle),u(2),De("My favorite framework is ",r.nzModalData.favoriteFramework," and my favorite library is ",r.nzModalData.favoriteLibrary," "),u(4),c("nzType","primary"))},dependencies:[b,F,C,h],encapsulation:2});let m=f;return m})();var Ae=(()=>{let i=class i{constructor(){this.expanded=!1}goLink(d){window&&(window.location.hash=d)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(d=>d.expandCode(this.expanded))}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=E({type:i,selectors:[["nz-demo-modal"]],viewQuery:function(o,a){if(o&1&&q(Z,5),o&2){let r;Q(r=U())&&(a.codeBoxes=r)}},standalone:!0,features:[z],decls:1619,vars:55,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-modal-demo-basic","nzTitle","\u57FA\u672C"],["nzHref","#components-modal-demo-async","nzTitle","\u5F02\u6B65\u5173\u95ED"],["nzHref","#components-modal-demo-footer","nzTitle","\u81EA\u5B9A\u4E49\u7EC4\u6210\u90E8\u5206"],["nzHref","#components-modal-demo-footer2","nzTitle","\u81EA\u5B9A\u4E49\u9875\u811A"],["nzHref","#components-modal-demo-confirm","nzTitle","\u786E\u8BA4\u5BF9\u8BDD\u6846"],["nzHref","#components-modal-demo-confirm-promise","nzTitle","\u786E\u8BA4\u5BF9\u8BDD\u6846"],["nzHref","#components-modal-demo-info","nzTitle","\u4FE1\u606F\u63D0\u793A"],["nzHref","#components-modal-demo-locale","nzTitle","\u56FD\u9645\u5316"],["nzHref","#components-modal-demo-manual","nzTitle","\u624B\u52A8\u79FB\u9664"],["nzHref","#components-modal-demo-position","nzTitle","\u81EA\u5B9A\u4E49\u4F4D\u7F6E"],["nzHref","#components-modal-demo-service","nzTitle","\u670D\u52A1\u65B9\u5F0F\u521B\u5EFA"],["nzHref","#components-modal-demo-draggable","nzTitle","\u53EF\u62D6\u62FD"],["nzHref","#api","nzTitle","API"],[1,"markdown"],[1,"subtitle"],[1,"widget"],["aria-label","Edit this page on Github","href","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/doc/index.zh-CN.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nz-icon","","nzType","edit"],["id","\u4F55\u65F6\u4F7F\u7528"],["onclick","window.location.hash = '\u4F55\u65F6\u4F7F\u7528'",1,"anchor"],[1,"language-ts"],[1,"token","keyword"],[1,"token","punctuation"],[1,"token","string"],["nz-icon","","nzType","appstore","nz-tooltip","","nzTooltipTitle","\u5C55\u5F00\u5168\u90E8\u4EE3\u7801",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzXl","nzSpan"],["nzTitle","\u57FA\u672C","nzSelector","nz-demo-modal-basic","nzGenerateCommand","ng g ng-zorro-antd:modal-basic <name>","nzComponentName","NzDemoModalBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","\u81EA\u5B9A\u4E49\u7EC4\u6210\u90E8\u5206","nzSelector","nz-demo-modal-footer","nzGenerateCommand","ng g ng-zorro-antd:modal-footer <name>","nzComponentName","NzDemoModalFooterComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u786E\u8BA4\u5BF9\u8BDD\u6846","nzSelector","nz-demo-modal-confirm","nzGenerateCommand","ng g ng-zorro-antd:modal-confirm <name>","nzComponentName","NzDemoModalConfirmComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u4FE1\u606F\u63D0\u793A","nzSelector","nz-demo-modal-info","nzGenerateCommand","ng g ng-zorro-antd:modal-info <name>","nzComponentName","NzDemoModalInfoComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u624B\u52A8\u79FB\u9664","nzSelector","nz-demo-modal-manual","nzGenerateCommand","ng g ng-zorro-antd:modal-manual <name>","nzComponentName","NzDemoModalManualComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u670D\u52A1\u65B9\u5F0F\u521B\u5EFA","nzSelector","nz-demo-modal-service","nzGenerateCommand","ng g ng-zorro-antd:modal-service <name>","nzComponentName","NzDemoModalServiceComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u5F02\u6B65\u5173\u95ED","nzSelector","nz-demo-modal-async","nzGenerateCommand","ng g ng-zorro-antd:modal-async <name>","nzComponentName","NzDemoModalAsyncComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u81EA\u5B9A\u4E49\u9875\u811A","nzSelector","nz-demo-modal-footer2","nzGenerateCommand","ng g ng-zorro-antd:modal-footer2 <name>","nzComponentName","NzDemoModalFooter2Component","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u786E\u8BA4\u5BF9\u8BDD\u6846","nzSelector","nz-demo-modal-confirm-promise","nzGenerateCommand","ng g ng-zorro-antd:modal-confirm-promise <name>","nzComponentName","NzDemoModalConfirmPromiseComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u56FD\u9645\u5316","nzSelector","nz-demo-modal-locale","nzGenerateCommand","ng g ng-zorro-antd:modal-locale <name>","nzComponentName","NzDemoModalLocaleComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u81EA\u5B9A\u4E49\u4F4D\u7F6E","nzSelector","nz-demo-modal-position","nzGenerateCommand","ng g ng-zorro-antd:modal-position <name>","nzComponentName","NzDemoModalPositionComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u53EF\u62D6\u62FD","nzSelector","nz-demo-modal-draggable","nzGenerateCommand","ng g ng-zorro-antd:modal-draggable <name>","nzComponentName","NzDemoModalDraggableComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nzmodalservice"],[1,"api-type-label","service"],["onclick","window.location.hash = 'nzmodalservice'",1,"anchor"],["id","\u91C7\u7528\u670D\u52A1\u65B9\u5F0F\u521B\u5EFA\u666E\u901A\u6A21\u5F0F\u5BF9\u8BDD\u6846"],["onclick","window.location.hash = '\u91C7\u7528\u670D\u52A1\u65B9\u5F0F\u521B\u5EFA\u666E\u901A\u6A21\u5F0F\u5BF9\u8BDD\u6846'",1,"anchor"],["id","\u786E\u8BA4\u6846\u6A21\u5F0F---nzmodalservice-method()"],["onclick","window.location.hash = '\u786E\u8BA4\u6846\u6A21\u5F0F---nzmodalservice-method()'",1,"anchor"],[1,"token","operator"],[1,"token","function"],["spellcheck","true",1,"token","comment"],["id","\u76F8\u5173\u7C7B\u578B\u5B9A\u4E49"],["onclick","window.location.hash = '\u76F8\u5173\u7C7B\u578B\u5B9A\u4E49'",1,"anchor"],["id","nzmodalservice-\u7684\u5176\u4ED6\u65B9\u6CD5/\u5C5E\u6027"],["onclick","window.location.hash = 'nzmodalservice-\u7684\u5176\u4ED6\u65B9\u6CD5/\u5C5E\u6027'",1,"anchor"],["id","nzmodalref"],["onclick","window.location.hash = 'nzmodalref'",1,"anchor"],["id","modalbuttonoptions\uFF08\u7528\u4E8E\u81EA\u5B9A\u4E49\u5E95\u90E8\u6309\u94AE\uFF09"],["onclick","window.location.hash = 'modalbuttonoptions\uFF08\u7528\u4E8E\u81EA\u5B9A\u4E49\u5E95\u90E8\u6309\u94AE\uFF09'",1,"anchor"],["id","[nzmodaltitle]:standalone"],[1,"api-type-label","directive"],[1,"api-type-label","standalone"],["onclick","window.location.hash = '[nzmodaltitle]:standalone'",1,"anchor"],[1,"language-html"],[1,"token","tag"],[1,"token","attr-name"],["id","[nzmodalcontent]:standalone"],["onclick","window.location.hash = '[nzmodalcontent]:standalone'",1,"anchor"],["id","[nzmodalfooter]:standalone"],["onclick","window.location.hash = '[nzmodalfooter]:standalone'",1,"anchor"],[1,"token","attr-value"]],template:function(o,a){o&1&&(n(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),s("nzClick",function(p){return a.goLink(p)}),l(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7)(9,"nz-link",8)(10,"nz-link",9)(11,"nz-link",10)(12,"nz-link",11)(13,"nz-link",12)(14,"nz-link",13)(15,"nz-link",14),t()(),n(16,"section",15)(17,"h1"),e(18,"Modal"),n(19,"span",16),e(20,"\u5BF9\u8BDD\u6846"),t(),l(21,"span",17),n(22,"a",18),l(23,"span",19),t()(),n(24,"section",15),S(),n(25,"p"),e(26,"\u6A21\u6001\u5BF9\u8BDD\u6846\u3002"),t(),n(27,"h2",20)(28,"span"),e(29,"\u4F55\u65F6\u4F7F\u7528"),t(),n(30,"a",21),e(31,"#"),t()(),n(32,"p"),e(33,"\u9700\u8981\u7528\u6237\u5904\u7406\u4E8B\u52A1\uFF0C\u53C8\u4E0D\u5E0C\u671B\u8DF3\u8F6C\u9875\u9762\u4EE5\u81F4\u6253\u65AD\u5DE5\u4F5C\u6D41\u7A0B\u65F6\uFF0C\u53EF\u4EE5\u4F7F\u7528 "),n(34,"code"),e(35,"Modal"),t(),e(36," \u5728\u5F53\u524D\u9875\u9762\u6B63\u4E2D\u6253\u5F00\u4E00\u4E2A\u6D6E\u5C42\uFF0C\u627F\u8F7D\u76F8\u5E94\u7684\u64CD\u4F5C\u3002"),t(),n(37,"p"),e(38,"\u53E6\u5916\u5F53\u9700\u8981\u4E00\u4E2A\u7B80\u6D01\u7684\u786E\u8BA4\u6846\u8BE2\u95EE\u7528\u6237\u65F6\uFF0C\u53EF\u4EE5\u4F7F\u7528\u7CBE\u5FC3\u5C01\u88C5\u597D\u7684 "),n(39,"code"),e(40,"NzModalService.confirm()"),t(),e(41," \u7B49\u65B9\u6CD5\u3002"),t(),n(42,"p"),e(43,"\u63A8\u8350\u4F7F\u7528\u52A0\u8F7D Component \u7684\u65B9\u5F0F\u5F39\u51FA Modal\uFF0C\u8FD9\u6837\u5F39\u51FA\u5C42\u7684 Component \u903B\u8F91\u53EF\u4EE5\u4E0E\u5916\u5C42 Component \u5B8C\u5168\u9694\u79BB\uFF0C\u5E76\u4E14\u505A\u5230\u53EF\u4EE5\u968F\u65F6\u590D\u7528\uFF0C"),t(),n(44,"p"),e(45,"\u5728\u5F39\u51FA\u5C42 Component \u4E2D\u53EF\u4EE5\u901A\u8FC7\u4F9D\u8D56\u6CE8\u5165"),n(46,"code"),e(47,"NzModalRef"),t(),e(48,"\u65B9\u5F0F\u76F4\u63A5\u83B7\u53D6\u6A21\u6001\u6846\u7684\u7EC4\u4EF6\u5B9E\u4F8B\uFF0C\u7528\u4E8E\u63A7\u5236\u5728\u5F39\u51FA\u5C42\u7EC4\u4EF6\u4E2D\u63A7\u5236\u6A21\u6001\u6846\u884C\u4E3A\u3002"),t(),n(49,"pre",22)(50,"code")(51,"span",23),e(52,"import"),t(),e(53," "),n(54,"span",24),e(55,"{"),t(),e(56," NzModalModule "),n(57,"span",24),e(58,"}"),t(),e(59," "),n(60,"span",23),e(61,"from"),t(),e(62," "),n(63,"span",25),e(64,"'ng-zorro-antd/modal'"),t(),n(65,"span",24),e(66,";"),t()()(),x(),t(),n(67,"h2")(68,"span"),e(69,"\u4EE3\u7801\u6F14\u793A"),t(),n(70,"span",26),s("click",function(){return a.expandAllCode()}),t()()(),n(71,"div",27)(72,"div",28)(73,"nz-code-box",29),l(74,"nz-demo-modal-basic",30),n(75,"div",31),S(),n(76,"p"),e(77,"\u7B2C\u4E00\u4E2A\u5BF9\u8BDD\u6846\u3002"),t(),x(),t()(),n(78,"nz-code-box",32),l(79,"nz-demo-modal-footer",30),n(80,"div",31),S(),n(81,"p"),e(82,"\u66F4\u590D\u6742\u7684\u4F8B\u5B50\uFF0C\u81EA\u5B9A\u4E49\u4E86\u9875\u811A\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u63D0\u4EA4\u540E\u8FDB\u5165 loading \u72B6\u6001\uFF0C\u5B8C\u6210\u540E\u5173\u95ED\u3002"),t(),n(83,"p"),e(84,"\u4E0D\u9700\u8981\u9ED8\u8BA4\u786E\u5B9A\u53D6\u6D88\u6309\u94AE\u65F6\uFF0C\u4F60\u53EF\u4EE5\u628A "),n(85,"code"),e(86,"nzFooter"),t(),e(87," \u8BBE\u4E3A "),n(88,"code"),e(89,"null"),t(),e(90,"\u3002"),t(),x(),t()(),n(91,"nz-code-box",33),l(92,"nz-demo-modal-confirm",30),n(93,"div",31),S(),n(94,"p"),e(95,"\u4F7F\u7528 "),n(96,"code"),e(97,"NzModalService.confirm()"),t(),e(98," \u53EF\u4EE5\u5FEB\u6377\u5730\u5F39\u51FA\u786E\u8BA4\u6846\u3002"),t(),x(),t()(),n(99,"nz-code-box",34),l(100,"nz-demo-modal-info",30),n(101,"div",31),S(),n(102,"p"),e(103,"\u5404\u79CD\u7C7B\u578B\u7684\u4FE1\u606F\u63D0\u793A\uFF0C\u53EA\u63D0\u4F9B\u4E00\u4E2A\u6309\u94AE\u7528\u4E8E\u5173\u95ED\u3002"),t(),x(),t()(),n(104,"nz-code-box",35),l(105,"nz-demo-modal-manual",30),n(106,"div",31),S(),n(107,"p"),e(108,"\u624B\u52A8\u5173\u95EDmodal\u3002"),t(),x(),t()(),n(109,"nz-code-box",36),l(110,"nz-demo-modal-service",30),n(111,"div",31),S(),n(112,"p"),e(113,"Modal\u7684service\u7528\u6CD5\uFF0C\u793A\u4F8B\u4E2D\u6F14\u793A\u4E86\u7528\u6237\u81EA\u5B9A\u4E49\u6A21\u677F\u3001\u81EA\u5B9A\u4E49component\u3001\u4EE5\u53CA\u6CE8\u5165\u6A21\u6001\u6846\u5B9E\u4F8B\u7684\u65B9\u6CD5\u3002"),t(),n(114,"p"),e(115,"\u4F7F\u7528\u6A21\u7248\u4F5C\u4E3A\u5185\u5BB9\u6216\u9875\u811A\u65F6\u7684\u4E0A\u4E0B\u6587\u4E3A "),n(116,"code"),e(117," { $implicit: nzData, modalRef: NzModalRef }"),t()(),x(),t()()(),n(118,"div",28)(119,"nz-code-box",37),l(120,"nz-demo-modal-async",30),n(121,"div",31),S(),n(122,"p"),e(123,"\u70B9\u51FB\u786E\u5B9A\u540E\u5F02\u6B65\u5173\u95ED\u5BF9\u8BDD\u6846\uFF0C\u4F8B\u5982\u63D0\u4EA4\u8868\u5355\u3002"),t(),x(),t()(),n(124,"nz-code-box",38),l(125,"nz-demo-modal-footer2",30),n(126,"div",31),S(),n(127,"p"),e(128,"\u4F7F\u7528 "),n(129,"code"),e(130,"nzModalFooter"),t(),e(131," \u6307\u4EE4\u81EA\u5B9A\u4E49\u4E86\u9875\u811A\u7684\u6309\u94AE\u3002"),t(),x(),t()(),n(132,"nz-code-box",39),l(133,"nz-demo-modal-confirm-promise",30),n(134,"div",31),S(),n(135,"p"),e(136,"\u4F7F\u7528 "),n(137,"code"),e(138,"NzModalService.confirm()"),t(),e(139," \u53EF\u4EE5\u5FEB\u6377\u5730\u5F39\u51FA\u786E\u8BA4\u6846\u3002NzOnCancel/NzOnOk \u8FD4\u56DE promise \u53EF\u4EE5\u5EF6\u8FDF\u5173\u95ED"),t(),x(),t()(),n(140,"nz-code-box",40),l(141,"nz-demo-modal-locale",30),n(142,"div",31),S(),n(143,"p"),e(144,"\u8BBE\u7F6E "),n(145,"code"),e(146,"nzOkText"),t(),e(147," \u4E0E "),n(148,"code"),e(149,"nzCancelText"),t(),e(150," \u4EE5\u81EA\u5B9A\u4E49\u6309\u94AE\u6587\u5B57\u3002"),t(),x(),t()(),n(151,"nz-code-box",41),l(152,"nz-demo-modal-position",30),n(153,"div",31),S(),n(154,"p"),e(155,"\u4F7F\u7528 "),n(156,"code"),e(157,"nzCentered"),t(),e(158," \u6216\u7C7B\u4F3C "),n(159,"code"),e(160,"style.top"),t(),e(161," \u7684\u6837\u5F0F\u6765\u8BBE\u7F6E\u5BF9\u8BDD\u6846\u4F4D\u7F6E\u3002"),t(),n(162,"blockquote")(163,"p")(164,"strong"),e(165,"\u6CE8\u610F"),t(),e(166," \u7531\u4E8EAngular\u7684\u6837\u5F0F\u9694\u79BB\uFF0C\u82E5\u5728Component\u4E2D\u6CA1\u6709\u52A0\u5165"),n(167,"code"),e(168,"encapsulation: ViewEncapsulation.None"),t(),e(169,"\uFF0C\u5219\u60A8\u53EF\u80FD\u9700\u8981\u5728\u81EA\u5B9A\u4E49\u6837\u5F0F\u5185\u91C7\u7528"),n(170,"code"),e(171,"::ng-deep"),t(),e(172,"\u6765\u8986\u76D6NgZorro\u7684\u6837\u5F0F"),t()(),x(),t()(),n(173,"nz-code-box",42),l(174,"nz-demo-modal-draggable",30),n(175,"div",31),S(),n(176,"p"),e(177,"\u53EF\u62D6\u62FD\u7684\u5BF9\u8BDD\u6846\u3002"),t(),x(),t()()()(),n(178,"section",43),S(),n(179,"h2",44)(180,"span"),e(181,"API"),t(),n(182,"a",45),e(183,"#"),t()(),n(184,"h3",46)(185,"span"),e(186,"NzModalService"),t(),n(187,"label",47),e(188,"service"),t(),n(189,"a",48),e(190,"#"),t()(),n(191,"p"),e(192,"\u5BF9\u8BDD\u6846\u5F53\u524D\u5206\u4E3A 2 \u79CD\u6A21\u5F0F\uFF0C"),n(193,"code"),e(194,"\u666E\u901A\u6A21\u5F0F"),t(),e(195," \u548C "),n(196,"code"),e(197,"\u786E\u8BA4\u6846\u6A21\u5F0F"),t(),e(198,"\uFF08\u5373"),n(199,"code"),e(200,"Confirm"),t(),e(201,"\u5BF9\u8BDD\u6846\uFF0C\u901A\u8FC7\u8C03\u7528"),n(202,"code"),e(203,"confirm/info/success/error/warning"),t(),e(204,"\u5F39\u51FA\uFF09\uFF0C\u4E24\u79CD\u6A21\u5F0F\u5BF9 API \u7684\u652F\u6301\u7A0B\u5EA6\u7A0D\u6709\u4E0D\u540C\u3002"),t(),n(205,"table")(206,"thead")(207,"tr")(208,"th"),e(209,"\u53C2\u6570"),t(),n(210,"th"),e(211,"\u8BF4\u660E"),t(),n(212,"th"),e(213,"\u7C7B\u578B"),t(),n(214,"th"),e(215,"\u9ED8\u8BA4\u503C"),t(),n(216,"th"),e(217,"\u5168\u5C40\u914D\u7F6E"),t()()(),n(218,"tbody")(219,"tr")(220,"td"),e(221,"nzAfterOpen"),t(),n(222,"td"),e(223,"Modal \u6253\u5F00\u540E\u7684\u56DE\u8C03"),t(),n(224,"td"),e(225,"EventEmitter"),t(),n(226,"td"),e(227,"-"),t(),l(228,"td"),t(),n(229,"tr")(230,"td"),e(231,"nzAfterClose"),t(),n(232,"td"),e(233,"Modal \u5B8C\u5168\u5173\u95ED\u540E\u7684\u56DE\u8C03\uFF0C\u53EF\u76D1\u542C close/destroy \u65B9\u6CD5\u4F20\u5165\u7684\u53C2\u6570"),t(),n(234,"td"),e(235,"EventEmitter"),t(),n(236,"td"),e(237,"-"),t(),l(238,"td"),t(),n(239,"tr")(240,"td"),e(241,"nzBodyStyle"),t(),n(242,"td"),e(243,"Modal body \u6837\u5F0F"),t(),n(244,"td")(245,"code"),e(246,"object"),t()(),n(247,"td"),e(248,"-"),t(),l(249,"td"),t(),n(250,"tr")(251,"td"),e(252,"nzCancelText"),t(),n(253,"td"),e(254,"\u53D6\u6D88\u6309\u94AE\u6587\u5B57\u3002"),n(255,"i"),e(256,"\u8BBE\u4E3A null \u8868\u793A\u4E0D\u663E\u793A\u53D6\u6D88\u6309\u94AE\uFF08\u82E5\u5728\u666E\u901A\u6A21\u5F0F\u4E0B\u4F7F\u7528\u4E86 nzFooter \u53C2\u6570\uFF0C\u5219\u8BE5\u503C\u65E0\u6548\uFF09"),t()(),n(257,"td")(258,"code"),e(259,"string"),t()(),n(260,"td"),e(261,"\u53D6\u6D88"),t(),l(262,"td"),t(),n(263,"tr")(264,"td"),e(265,"nzCentered"),t(),n(266,"td"),e(267,"\u5782\u76F4\u5C45\u4E2D\u5C55\u793A Modal"),t(),n(268,"td")(269,"code"),e(270,"boolean"),t()(),n(271,"td")(272,"code"),e(273,"false"),t()(),l(274,"td"),t(),n(275,"tr")(276,"td"),e(277,"nzClosable"),t(),n(278,"td"),e(279,"\u662F\u5426\u663E\u793A\u53F3\u4E0A\u89D2\u7684\u5173\u95ED\u6309\u94AE\u3002"),n(280,"i"),e(281,"\u786E\u8BA4\u6846\u6A21\u5F0F\u4E0B\u8BE5\u503C\u65E0\u6548\uFF08\u9ED8\u8BA4\u4F1A\u88AB\u9690\u85CF\uFF09"),t()(),n(282,"td")(283,"code"),e(284,"boolean"),t()(),n(285,"td")(286,"code"),e(287,"true"),t()(),l(288,"td"),t(),n(289,"tr")(290,"td"),e(291,"nzOkLoading"),t(),n(292,"td"),e(293,"\u786E\u5B9A\u6309\u94AE loading"),t(),n(294,"td")(295,"code"),e(296,"boolean"),t()(),n(297,"td")(298,"code"),e(299,"false"),t()(),l(300,"td"),t(),n(301,"tr")(302,"td"),e(303,"nzCancelLoading"),t(),n(304,"td"),e(305,"\u53D6\u6D88\u6309\u94AE loading"),t(),n(306,"td")(307,"code"),e(308,"boolean"),t()(),n(309,"td")(310,"code"),e(311,"false"),t()(),l(312,"td"),t(),n(313,"tr")(314,"td"),e(315,"nzOkDisabled"),t(),n(316,"td"),e(317,"\u662F\u5426\u7981\u7528\u786E\u5B9A\u6309\u94AE"),t(),n(318,"td")(319,"code"),e(320,"boolean"),t()(),n(321,"td")(322,"code"),e(323,"false"),t()(),l(324,"td"),t(),n(325,"tr")(326,"td"),e(327,"nzCancelDisabled"),t(),n(328,"td"),e(329,"\u662F\u5426\u7981\u7528\u53D6\u6D88\u6309\u94AE"),t(),n(330,"td")(331,"code"),e(332,"boolean"),t()(),n(333,"td")(334,"code"),e(335,"false"),t()(),l(336,"td"),t(),n(337,"tr")(338,"td"),e(339,"nzDraggable"),t(),n(340,"td"),e(341,"\u6A21\u6001\u6846\u662F\u5426\u53EF\u62D6\u52A8"),t(),n(342,"td")(343,"code"),e(344,"boolean"),t()(),n(345,"td")(346,"code"),e(347,"false"),t()(),l(348,"td"),t(),n(349,"tr")(350,"td"),e(351,"nzFooter"),t(),n(352,"td"),e(353,"\u5E95\u90E8\u5185\u5BB9\u3002"),n(354,"i"),e(355,"1. \u4EC5\u5728\u666E\u901A\u6A21\u5F0F\u4E0B\u6709\u6548\u3002"),l(356,"br"),e(357,"2. \u53EF\u901A\u8FC7\u4F20\u5165 ModalButtonOptions \u6765\u6700\u5927\u7A0B\u5EA6\u81EA\u5B9A\u4E49\u6309\u94AE\uFF08\u8BE6\u89C1\u6848\u4F8B\u6216\u4E0B\u65B9\u8BF4\u660E\uFF09\u3002"),l(358,"br"),e(359,"3. \u5F53\u4E0D\u9700\u8981\u5E95\u90E8\u65F6\uFF0C\u53EF\u4EE5\u8BBE\u4E3A null"),t()(),n(360,"td"),e(361,"string"),l(362,"br"),e(363,"TemplateRef"),l(364,"br"),e(365,"ModalButtonOptions"),t(),n(366,"td"),e(367,"\u9ED8\u8BA4\u7684\u786E\u5B9A\u53D6\u6D88\u6309\u94AE"),t(),l(368,"td"),t(),n(369,"tr")(370,"td"),e(371,"nzKeyboard"),t(),n(372,"td"),e(373,"\u662F\u5426\u652F\u6301\u952E\u76D8 esc \u5173\u95ED"),t(),n(374,"td")(375,"code"),e(376,"boolean"),t()(),n(377,"td")(378,"code"),e(379,"true"),t()(),l(380,"td"),t(),n(381,"tr")(382,"td"),e(383,"nzMask"),t(),n(384,"td"),e(385,"\u662F\u5426\u5C55\u793A\u906E\u7F69"),t(),n(386,"td")(387,"code"),e(388,"boolean"),t()(),n(389,"td")(390,"code"),e(391,"true"),t()(),n(392,"td"),e(393,"\u2705"),t()(),n(394,"tr")(395,"td"),e(396,"nzMaskClosable"),t(),n(397,"td"),e(398,"\u70B9\u51FB\u8499\u5C42\u662F\u5426\u5141\u8BB8\u5173\u95ED"),t(),n(399,"td")(400,"code"),e(401,"boolean"),t()(),n(402,"td")(403,"code"),e(404,"true"),t()(),n(405,"td"),e(406,"\u2705"),t()(),n(407,"tr")(408,"td"),e(409,"nzCloseOnNavigation"),t(),n(410,"td"),e(411,"\u5F53\u7528\u6237\u5728\u5386\u53F2\u4E2D\u524D\u8FDB/\u540E\u9000\u65F6\u662F\u5426\u5173\u95ED\u6A21\u6001\u6846\u3002\u6CE8\u610F\uFF0C\u8FD9\u901A\u5E38\u4E0D\u5305\u62EC\u70B9\u51FB\u94FE\u63A5\uFF08\u9664\u975E\u7528\u6237\u4F7F\u7528 HashLocationStrategy\uFF09\u3002"),t(),n(412,"td")(413,"code"),e(414,"boolean"),t()(),n(415,"td")(416,"code"),e(417,"true"),t()(),n(418,"td"),e(419,"\u2705"),t()(),n(420,"tr")(421,"td"),e(422,"nzDirection"),t(),n(423,"td"),e(424,"\u6587\u5B57\u65B9\u5411"),t(),n(425,"td")(426,"code"),e(427,"'ltr' | 'rtl'"),t()(),n(428,"td"),e(429,"-"),t(),n(430,"td"),e(431,"\u2705"),t()(),n(432,"tr")(433,"td"),e(434,"nzMaskStyle"),t(),n(435,"td"),e(436,"\u906E\u7F69\u6837\u5F0F"),t(),n(437,"td")(438,"code"),e(439,"object"),t()(),n(440,"td"),e(441,"-"),t(),l(442,"td"),t(),n(443,"tr")(444,"td"),e(445,"nzOkText"),t(),n(446,"td"),e(447,"\u786E\u8BA4\u6309\u94AE\u6587\u5B57\u3002"),n(448,"i"),e(449,"\u8BBE\u4E3A null \u8868\u793A\u4E0D\u663E\u793A\u786E\u8BA4\u6309\u94AE\uFF08\u82E5\u5728\u666E\u901A\u6A21\u5F0F\u4E0B\u4F7F\u7528\u4E86 nzFooter \u53C2\u6570\uFF0C\u5219\u8BE5\u503C\u65E0\u6548\uFF09"),t()(),n(450,"td")(451,"code"),e(452,"string"),t()(),n(453,"td"),e(454,"\u786E\u5B9A"),t(),l(455,"td"),t(),n(456,"tr")(457,"td"),e(458,"nzOkType"),t(),n(459,"td"),e(460,"\u786E\u8BA4\u6309\u94AE\u7C7B\u578B\u3002"),n(461,"i"),e(462,"\u4E0E "),n(463,"code"),e(464,"nz-button"),t(),e(465," \u7684 "),n(466,"code"),e(467,"nzType"),t(),e(468," \u7C7B\u578B\u503C\u4E00\u81F4"),t()(),n(469,"td")(470,"code"),e(471,"string"),t()(),n(472,"td")(473,"code"),e(474,"primary"),t()(),l(475,"td"),t(),n(476,"tr")(477,"td"),e(478,"nzOkDanger"),t(),n(479,"td"),e(480,"\u786E\u8BA4\u6309\u94AE\u662F\u5426\u4E3A\u5371\u9669\u6309\u94AE\u3002"),n(481,"i"),e(482,"\u4E0E "),n(483,"code"),e(484,"nz-button"),t(),e(485," \u7684 "),n(486,"code"),e(487,"nzDanger"),t(),e(488," \u503C\u4FDD\u6301\u4E00\u81F4"),t()(),n(489,"td")(490,"code"),e(491,"boolean"),t()(),n(492,"td")(493,"code"),e(494,"false"),t()(),l(495,"td"),t(),n(496,"tr")(497,"td"),e(498,"nzStyle"),t(),n(499,"td"),e(500,"\u53EF\u7528\u4E8E\u8BBE\u7F6E\u6D6E\u5C42\u7684\u6837\u5F0F\uFF0C\u8C03\u6574\u6D6E\u5C42\u4F4D\u7F6E\u7B49"),t(),n(501,"td")(502,"code"),e(503,"object"),t()(),n(504,"td"),e(505,"-"),t(),l(506,"td"),t(),n(507,"tr")(508,"td"),e(509,"nzTitle"),t(),n(510,"td"),e(511,"\u6807\u9898\u3002"),n(512,"i"),e(513,"\u7559\u7A7A\u8868\u793A\u4E0D\u5C55\u793A\u6807\u9898\u3002TemplateRef \u7684\u4F7F\u7528\u65B9\u6CD5\u53EF\u53C2\u8003\u6848\u4F8B"),t()(),n(514,"td"),e(515,"string"),l(516,"br"),e(517,"TemplateRef"),t(),n(518,"td"),e(519,"-"),t(),l(520,"td"),t(),n(521,"tr")(522,"td"),e(523,"nzCloseIcon"),t(),n(524,"td"),e(525,"\u81EA\u5B9A\u4E49\u5173\u95ED\u56FE\u6807"),t(),n(526,"td")(527,"code"),e(528,"string|TemplateRef<void>"),t()(),n(529,"td"),e(530,"-"),t(),l(531,"td"),t(),n(532,"tr")(533,"td"),e(534,"nzVisible"),t(),n(535,"td"),e(536,"\u5BF9\u8BDD\u6846\u662F\u5426\u53EF\u89C1\u3002"),n(537,"i"),e(538,"\u5F53\u4EE5 "),n(539,"code"),e(540,"<nz-modal>"),t(),e(541," \u6807\u7B7E\u4F7F\u7528\u65F6\uFF0C\u8BF7\u52A1\u5FC5\u4F7F\u7528\u53CC\u5411\u7ED1\u5B9A\uFF0C\u4F8B\u5982\uFF1A"),n(542,"code"),e(543,'[(nzVisible)]="visible"'),t()()(),n(544,"td")(545,"code"),e(546,"boolean"),t()(),n(547,"td")(548,"code"),e(549,"false"),t()(),l(550,"td"),t(),n(551,"tr")(552,"td"),e(553,"nzWidth"),t(),n(554,"td"),e(555,"\u5BBD\u5EA6\u3002"),n(556,"i"),e(557,"\u4F7F\u7528\u6570\u5B57\u65F6\uFF0C\u9ED8\u8BA4\u5355\u4F4D\u4E3A px"),t()(),n(558,"td"),e(559,"string"),l(560,"br"),e(561,"number"),t(),n(562,"td"),e(563,"520"),t(),l(564,"td"),t(),n(565,"tr")(566,"td"),e(567,"nzClassName"),t(),n(568,"td"),e(569,"\u5BF9\u8BDD\u6846\u7684\u7C7B\u540D"),t(),n(570,"td")(571,"code"),e(572,"string"),t()(),n(573,"td"),e(574,"-"),t(),l(575,"td"),t(),n(576,"tr")(577,"td"),e(578,"nzWrapClassName"),t(),n(579,"td"),e(580,"\u5BF9\u8BDD\u6846\u5916\u5C42\u5BB9\u5668\u7684\u7C7B\u540D"),t(),n(581,"td")(582,"code"),e(583,"string"),t()(),n(584,"td"),e(585,"-"),t(),l(586,"td"),t(),n(587,"tr")(588,"td"),e(589,"nzZIndex"),t(),n(590,"td"),e(591,"\u8BBE\u7F6E Modal \u7684 "),n(592,"code"),e(593,"z-index"),t()(),n(594,"td")(595,"code"),e(596,"number"),t()(),n(597,"td"),e(598,"1000"),t(),l(599,"td"),t(),n(600,"tr")(601,"td"),e(602,"nzOnCancel"),t(),n(603,"td"),e(604,"\u70B9\u51FB\u906E\u7F69\u5C42\u6216\u53F3\u4E0A\u89D2\u53C9\u6216\u53D6\u6D88\u6309\u94AE\u7684\u56DE\u8C03\uFF08\u82E5 nzContent \u4E3A Component\uFF0C\u5219\u5C06\u4F1A\u4EE5\u8BE5 Component \u5B9E\u4F8B\u4F5C\u4E3A\u53C2\u6570\uFF09\u3002"),n(605,"i"),e(606,"\u6CE8\uFF1A\u5F53\u4EE5"),n(607,"code"),e(608,"NzModalService.create"),t(),e(609,"\u521B\u5EFA\u65F6\uFF0C\u6B64\u53C2\u6570\u5E94\u4F20\u5165 function\uFF08\u56DE\u8C03\u51FD\u6570\uFF09\u3002\u8BE5\u51FD\u6570\u53EF\u8FD4\u56DE promise\uFF0C\u5F85\u6267\u884C\u5B8C\u6BD5\u6216 promise \u7ED3\u675F\u65F6\uFF0C\u5C06\u81EA\u52A8\u5173\u95ED\u5BF9\u8BDD\u6846\uFF08\u8FD4\u56DE false \u53EF\u963B\u6B62\u5173\u95ED\uFF09"),t()(),n(610,"td"),e(611,"EventEmitter"),t(),n(612,"td"),e(613,"-"),t(),l(614,"td"),t(),n(615,"tr")(616,"td"),e(617,"nzOnOk"),t(),n(618,"td"),e(619,"\u70B9\u51FB\u786E\u5B9A\u56DE\u8C03\uFF08\u82E5 nzContent \u4E3A Component\uFF0C\u5219\u5C06\u4F1A\u4EE5\u8BE5 Component \u5B9E\u4F8B\u4F5C\u4E3A\u53C2\u6570\uFF09\u3002"),n(620,"i"),e(621,"\u6CE8\uFF1A\u5F53\u4EE5"),n(622,"code"),e(623,"NzModalService.create"),t(),e(624,"\u521B\u5EFA\u65F6\uFF0C\u6B64\u53C2\u6570\u5E94\u4F20\u5165 function\uFF08\u56DE\u8C03\u51FD\u6570\uFF09\u3002\u8BE5\u51FD\u6570\u53EF\u8FD4\u56DE promise\uFF0C\u5F85\u6267\u884C\u5B8C\u6BD5\u6216 promise \u7ED3\u675F\u65F6\uFF0C\u5C06\u81EA\u52A8\u5173\u95ED\u5BF9\u8BDD\u6846\uFF08\u8FD4\u56DE false \u53EF\u963B\u6B62\u5173\u95ED\uFF09"),t()(),n(625,"td"),e(626,"EventEmitter"),t(),n(627,"td"),e(628,"-"),t(),l(629,"td"),t(),n(630,"tr")(631,"td"),e(632,"nzContent"),t(),n(633,"td"),e(634,"\u5185\u5BB9"),t(),n(635,"td"),e(636,"string"),l(637,"br"),e(638,"TemplateRef"),l(639,"br"),e(640,"Component"),l(641,"br"),e(642,"ng-content"),t(),n(643,"td"),e(644,"-"),t(),l(645,"td"),t(),n(646,"tr")(647,"td"),e(648,"nzIconType"),t(),n(649,"td"),e(650,"\u56FE\u6807 Icon \u7C7B\u578B\u3002"),n(651,"i"),e(652,"\u4EC5 \u786E\u8BA4\u6846\u6A21\u5F0F \u4E0B\u6709\u6548"),t()(),n(653,"td")(654,"code"),e(655,"string"),t()(),n(656,"td")(657,"code"),e(658,"'question-circle'"),t()(),l(659,"td"),t(),n(660,"tr")(661,"td"),e(662,"nzAutofocus"),t(),n(663,"td"),e(664,"\u81EA\u52A8\u805A\u7126\u53CA\u805A\u7126\u4F4D\u7F6E\uFF0C\u4E3A "),n(665,"code"),e(666,"null"),t(),e(667," \u65F6\u7981\u7528"),t(),n(668,"td")(669,"code"),e(670,"'ok' | 'cancel' | 'auto' | null"),t()(),n(671,"td")(672,"code"),e(673,"'auto'"),t()(),l(674,"td"),t()()(),n(675,"h4",49)(676,"span"),e(677,"\u91C7\u7528\u670D\u52A1\u65B9\u5F0F\u521B\u5EFA\u666E\u901A\u6A21\u5F0F\u5BF9\u8BDD\u6846"),t(),n(678,"a",50),e(679,"#"),t()(),n(680,"blockquote")(681,"p"),e(682,"\u60A8\u53EF\u8C03\u7528 "),n(683,"code"),e(684,"NzModalService.create(options)"),t(),e(685," \u6765\u52A8\u6001\u521B\u5EFA"),n(686,"strong"),e(687,"\u666E\u901A\u6A21\u5F0F"),t(),e(688,"\u5BF9\u8BDD\u6846\uFF0C\u8FD9\u91CC\u7684 "),n(689,"code"),e(690,"options"),t(),e(691," \u662F\u4E00\u4E2A\u5BF9\u8C61\uFF0C\u652F\u6301\u4E0A\u65B9 API \u4E2D\u7ED9\u51FA\u7684\u652F\u6301 "),n(692,"strong"),e(693,"\u666E\u901A\u6A21\u5F0F"),t(),e(694," \u7684\u53C2\u6570"),t()(),n(695,"h3",51)(696,"span"),e(697,"\u786E\u8BA4\u6846\u6A21\u5F0F - NzModalService.method()"),t(),n(698,"a",52),e(699,"#"),t()(),n(700,"p"),e(701,"\u5305\u62EC\uFF1A"),t(),n(702,"ul")(703,"li")(704,"code"),e(705,"NzModalService.info"),t()(),n(706,"li")(707,"code"),e(708,"NzModalService.success"),t()(),n(709,"li")(710,"code"),e(711,"NzModalService.error"),t()(),n(712,"li")(713,"code"),e(714,"NzModalService.warning"),t()(),n(715,"li")(716,"code"),e(717,"NzModalService.confirm"),t()()(),n(718,"p"),e(719,"\u4EE5\u4E0A\u5747\u4E3A\u4E00\u4E2A\u51FD\u6570\uFF0C\u53C2\u6570\u4E3A object\uFF0C\u4E0E\u4E0A\u65B9 API \u4E00\u81F4\u3002\u90E8\u5206\u5C5E\u6027\u7C7B\u578B\u6216\u521D\u59CB\u503C\u6709\u6240\u4E0D\u540C\uFF0C\u5DF2\u5217\u5728\u4E0B\u65B9\uFF1A"),t(),n(720,"table")(721,"thead")(722,"tr")(723,"th"),e(724,"\u53C2\u6570"),t(),n(725,"th"),e(726,"\u8BF4\u660E"),t(),n(727,"th"),e(728,"\u7C7B\u578B"),t(),n(729,"th"),e(730,"\u9ED8\u8BA4\u503C"),t()()(),n(731,"tbody")(732,"tr")(733,"td"),e(734,"nzOnOk"),t(),n(735,"td"),e(736,"\u70B9\u51FB\u786E\u5B9A\u6309\u94AE\u65F6\u5C06\u6267\u884C\u7684\u56DE\u8C03\u51FD\u6570\uFF08\u82E5 nzContent \u4E3A Component\uFF0C\u5219\u5C06\u4F1A\u4EE5\u8BE5 Component \u5B9E\u4F8B\u4F5C\u4E3A\u53C2\u6570\uFF09\u3002"),n(737,"i"),e(738,"\u8BE5\u51FD\u6570\u53EF\u8FD4\u56DE promise\uFF0C\u5F85\u6267\u884C\u5B8C\u6BD5\u6216 promise \u7ED3\u675F\u65F6\uFF0C\u5C06\u81EA\u52A8\u5173\u95ED\u5BF9\u8BDD\u6846\uFF08\u8FD4\u56DE false \u53EF\u963B\u6B62\u5173\u95ED\uFF09"),t()(),n(739,"td"),e(740,"function"),t(),n(741,"td"),e(742,"-"),t()(),n(743,"tr")(744,"td"),e(745,"nzOnCancel"),t(),n(746,"td"),e(747,"\u70B9\u51FB\u906E\u7F69\u5C42\u6216\u53F3\u4E0A\u89D2\u53C9\u6216\u53D6\u6D88\u6309\u94AE\u7684\u56DE\u8C03\uFF08\u82E5 nzContent \u4E3A Component\uFF0C\u5219\u5C06\u4F1A\u4EE5\u8BE5 Component \u5B9E\u4F8B\u4F5C\u4E3A\u53C2\u6570\uFF09\u3002"),n(748,"i"),e(749,"\u8BE5\u51FD\u6570\u53EF\u8FD4\u56DE promise\uFF0C\u5F85\u6267\u884C\u5B8C\u6BD5\u6216 promise \u7ED3\u675F\u65F6\uFF0C\u5C06\u81EA\u52A8\u5173\u95ED\u5BF9\u8BDD\u6846\uFF08\u8FD4\u56DE false \u53EF\u963B\u6B62\u5173\u95ED\uFF09"),t()(),n(750,"td"),e(751,"function"),t(),n(752,"td"),e(753,"-"),t()(),n(754,"tr")(755,"td"),e(756,"nzWidth"),t(),n(757,"td"),e(758,"\u5BBD\u5EA6"),t(),n(759,"td"),e(760,"string"),l(761,"br"),e(762,"number"),t(),n(763,"td"),e(764,"416"),t()(),n(765,"tr")(766,"td"),e(767,"nzMaskClosable"),t(),n(768,"td"),e(769,"\u70B9\u51FB\u8499\u5C42\u662F\u5426\u5141\u8BB8\u5173\u95ED"),t(),n(770,"td")(771,"code"),e(772,"boolean"),t()(),n(773,"td")(774,"code"),e(775,"false"),t()()()()(),n(776,"p"),e(777,"\u4EE5\u4E0A\u51FD\u6570\u8C03\u7528\u540E\uFF0C\u4F1A\u8FD4\u56DE\u4E00\u4E2A\u5F15\u7528\uFF0C\u53EF\u4EE5\u901A\u8FC7\u8BE5\u5F15\u7528\u5173\u95ED\u5F39\u7A97\u3002"),t(),n(778,"pre",22)(779,"code")(780,"span",23),e(781,"constructor"),t(),n(782,"span",24),e(783,"("),t(),e(784,"modal"),n(785,"span",24),e(786,":"),t(),e(787," NzModalService"),n(788,"span",24),e(789,")"),t(),e(790," "),n(791,"span",24),e(792,"{"),t(),e(793,`
`),n(794,"span",23),e(795,"const"),t(),e(796," ref"),n(797,"span",24),e(798,":"),t(),e(799," NzModalRef "),n(800,"span",53),e(801,"="),t(),e(802," modal"),n(803,"span",24),e(804,"."),t(),n(805,"span",54),e(806,"info"),t(),n(807,"span",24),e(808,"("),t(),n(809,"span",24),e(810,")"),t(),n(811,"span",24),e(812,";"),t(),e(813,`
ref`),n(814,"span",24),e(815,"."),t(),n(816,"span",54),e(817,"close"),t(),n(818,"span",24),e(819,"("),t(),n(820,"span",24),e(821,")"),t(),n(822,"span",24),e(823,";"),t(),e(824," "),n(825,"span",55),e(826,"// \u6216 ref.destroy(); \u5C06\u76F4\u63A5\u9500\u6BC1\u5BF9\u8BDD\u6846"),t(),e(827,`
`),n(828,"span",24),e(829,"}"),t()()(),n(830,"h3",56)(831,"span"),e(832,"\u76F8\u5173\u7C7B\u578B\u5B9A\u4E49"),t(),n(833,"a",57),e(834,"#"),t()(),n(835,"h4",58)(836,"span"),e(837,"NzModalService \u7684\u5176\u4ED6\u65B9\u6CD5/\u5C5E\u6027"),t(),n(838,"label",47),e(839,"service"),t(),n(840,"a",59),e(841,"#"),t()(),n(842,"table")(843,"thead")(844,"tr")(845,"th"),e(846,"\u65B9\u6CD5/\u5C5E\u6027"),t(),n(847,"th"),e(848,"\u8BF4\u660E"),t(),n(849,"th"),e(850,"\u7C7B\u578B"),t()()(),n(851,"tbody")(852,"tr")(853,"td"),e(854,"openModals"),t(),n(855,"td"),e(856,"\u5F53\u524D\u6253\u5F00\u7684\u6240\u6709 Modal \u5F15\u7528\u5217\u8868"),t(),n(857,"td"),e(858,"NzModalRef[]"),t()(),n(859,"tr")(860,"td"),e(861,"afterAllClose"),t(),n(862,"td"),e(863,"\u6240\u6709 Modal \u5B8C\u5168\u5173\u95ED\u540E\u7684\u56DE\u8C03"),t(),n(864,"td"),e(865,"Observable<void>"),t()(),n(866,"tr")(867,"td"),e(868,"closeAll()"),t(),n(869,"td"),e(870,"\u5173\u95ED\u6240\u6709\u6A21\u6001\u6846"),t(),n(871,"td"),e(872,"function"),t()()()(),n(873,"h4",60)(874,"span"),e(875,"NzModalRef"),t(),n(876,"a",61),e(877,"#"),t()(),n(878,"blockquote")(879,"p"),e(880,"NzModalRef \u5BF9\u8C61\u7528\u4E8E\u63A7\u5236\u5BF9\u8BDD\u6846\u4EE5\u53CA\u8FDB\u884C\u5185\u5BB9\u95F4\u7684\u901A\u4FE1"),t()(),n(881,"p"),e(882,"\u901A\u8FC7\u670D\u52A1\u65B9\u5F0F "),n(883,"code"),e(884,"NzModalService.xxx()"),t(),e(885," \u521B\u5EFA\u7684\u5BF9\u8BDD\u6846\uFF0C\u90FD\u4F1A\u8FD4\u56DE\u4E00\u4E2A "),n(886,"code"),e(887,"NzModalRef"),t(),e(888," \u5BF9\u8C61\uFF0C\u7528\u4E8E\u64CD\u63A7\u8BE5\u5BF9\u8BDD\u6846\uFF08\u82E5\u4F7F\u7528 nzContent \u4E3A Component \u65F6\uFF0C\u4E5F\u53EF\u901A\u8FC7\u4F9D\u8D56\u6CE8\u5165 "),n(889,"code"),e(890,"NzModalRef"),t(),e(891," \u65B9\u5F0F\u83B7\u5F97\u6B64\u5BF9\u8C61\uFF09\uFF0C\u8BE5\u5BF9\u8C61\u5177\u6709\u4EE5\u4E0B\u65B9\u6CD5\uFF1A"),t(),n(892,"table")(893,"thead")(894,"tr")(895,"th"),e(896,"\u65B9\u6CD5/\u5C5E\u6027"),t(),n(897,"th"),e(898,"\u8BF4\u660E"),t()()(),n(899,"tbody")(900,"tr")(901,"td"),e(902,"afterOpen"),t(),n(903,"td"),e(904,"\u540C nzAfterOpen\uFF0C\u4F46\u7C7B\u578B\u4E3A Observable<void>"),t()(),n(905,"tr")(906,"td"),e(907,"afterClose"),t(),n(908,"td"),e(909,"\u540C nzAfterClose\uFF0C\u4F46\u7C7B\u578B\u4E3A Observable<result:any>"),t()(),n(910,"tr")(911,"td"),e(912,"close(result: any)"),t(),n(913,"td"),e(914,"\u5173\u95ED(\u9690\u85CF)\u5BF9\u8BDD\u6846\u3002"),n(915,"i"),e(916,"\u6CE8\uFF1A\u5F53\u7528\u4E8E\u4EE5\u670D\u52A1\u65B9\u5F0F\u521B\u5EFA\u7684\u5BF9\u8BDD\u6846\uFF0C\u6B64\u65B9\u6CD5\u5C06\u76F4\u63A5 \u9500\u6BC1 \u5BF9\u8BDD\u6846\uFF08\u540C destroy \u65B9\u6CD5\uFF09"),t()()(),n(917,"tr")(918,"td"),e(919,"destroy(result: any)"),t(),n(920,"td"),e(921,"\u9500\u6BC1\u5BF9\u8BDD\u6846\u3002"),n(922,"i"),e(923,"\u6CE8\uFF1A\u4EC5\u7528\u4E8E\u670D\u52A1\u65B9\u5F0F\u521B\u5EFA\u7684\u5BF9\u8BDD\u6846\uFF08\u975E\u670D\u52A1\u65B9\u5F0F\u521B\u5EFA\u7684\u5BF9\u8BDD\u6846\uFF0C\u6B64\u65B9\u6CD5\u53EA\u4F1A\u9690\u85CF\u5BF9\u8BDD\u6846\uFF09"),t()()(),n(924,"tr")(925,"td"),e(926,"getContentComponent()"),t(),n(927,"td"),e(928,"\u83B7\u53D6\u5BF9\u8BDD\u6846\u5185\u5BB9\u4E2D"),n(929,"code"),e(930,"nzContent"),t(),e(931,"\u7684 Component \u5B9E\u4F8B instance\u3002"),n(932,"i"),e(933,"\u6CE8\uFF1A\u5F53\u5BF9\u8BDD\u6846\u8FD8\u672A\u521D\u59CB\u5316\u5B8C\u6BD5\uFF08"),n(934,"code"),e(935,"ngOnInit"),t(),e(936,"\u672A\u6267\u884C\uFF09\u65F6\uFF0C\u6B64\u51FD\u6570\u5C06\u8FD4\u56DE"),n(937,"code"),e(938,"undefined"),t()()()(),n(939,"tr")(940,"td"),e(941,"getContentComponentRef()"),t(),n(942,"td"),e(943,"\u83B7\u53D6\u5BF9\u8BDD\u6846\u5185\u5BB9\u4E2D"),n(944,"code"),e(945,"nzContent"),t(),e(946,"\u7684 Component \u5F15\u7528 ComponentRef\u3002"),n(947,"i"),e(948,"\u6CE8\uFF1A\u5F53\u5BF9\u8BDD\u6846\u8FD8\u672A\u521D\u59CB\u5316\u5B8C\u6BD5\uFF08"),n(949,"code"),e(950,"ngOnInit"),t(),e(951,"\u672A\u6267\u884C\uFF09\u65F6\uFF0C\u6B64\u51FD\u6570\u5C06\u8FD4\u56DE"),n(952,"code"),e(953,"null"),t()()()(),n(954,"tr")(955,"td"),e(956,"triggerOk()"),t(),n(957,"td"),e(958,"\u624B\u52A8\u89E6\u53D1 nzOnOk"),t()(),n(959,"tr")(960,"td"),e(961,"triggerCancel()"),t(),n(962,"td"),e(963,"\u624B\u52A8\u89E6\u53D1 nzOnCancel"),t()(),n(964,"tr")(965,"td"),e(966,"updateConfig(config: ModalOptions): void"),t(),n(967,"td"),e(968,"\u66F4\u65B0\u914D\u7F6E"),t()()()(),n(969,"h3",62)(970,"span"),e(971,"ModalButtonOptions\uFF08\u7528\u4E8E\u81EA\u5B9A\u4E49\u5E95\u90E8\u6309\u94AE\uFF09"),t(),n(972,"a",63),e(973,"#"),t()(),n(974,"p"),e(975,"\u53EF\u5C06\u6B64\u7C7B\u578B\u6570\u7EC4\u4F20\u5165 "),n(976,"code"),e(977,"nzFooter"),t(),e(978,"\uFF0C\u7528\u4E8E\u81EA\u5B9A\u4E49\u5E95\u90E8\u6309\u94AE\u3002"),t(),n(979,"p"),e(980,"\u6309\u94AE\u914D\u7F6E\u9879\u5982\u4E0B\uFF08\u4E0E button \u7EC4\u4EF6\u4FDD\u6301\u4E00\u81F4\uFF09\uFF1A"),t(),n(981,"pre",22)(982,"code"),e(983,"nzFooter"),n(984,"span",24),e(985,":"),t(),e(986," "),n(987,"span",24),e(988,"["),t(),n(989,"span",24),e(990,"{"),t(),e(991,`
label`),n(992,"span",24),e(993,":"),t(),e(994," "),n(995,"span",23),e(996,"string"),t(),n(997,"span",24),e(998,";"),t(),e(999," "),n(1e3,"span",55),e(1001,"// \u6309\u94AE\u6587\u672C"),t(),e(1002,`
type`),n(1003,"span",53),e(1004,"?"),t(),n(1005,"span",24),e(1006,":"),t(),e(1007," "),n(1008,"span",23),e(1009,"string"),t(),n(1010,"span",24),e(1011,";"),t(),e(1012," "),n(1013,"span",55),e(1014,"// \u7C7B\u578B"),t(),e(1015,`
danger`),n(1016,"span",53),e(1017,"?"),t(),n(1018,"span",24),e(1019,":"),t(),e(1020," "),n(1021,"span",23),e(1022,"boolean"),t(),n(1023,"span",24),e(1024,";"),t(),e(1025," "),n(1026,"span",55),e(1027,"// \u662F\u5426danger"),t(),e(1028,`
shape`),n(1029,"span",53),e(1030,"?"),t(),n(1031,"span",24),e(1032,":"),t(),e(1033," "),n(1034,"span",23),e(1035,"string"),t(),n(1036,"span",24),e(1037,";"),t(),e(1038," "),n(1039,"span",55),e(1040,"// \u5F62\u72B6"),t(),e(1041,`
ghost`),n(1042,"span",53),e(1043,"?"),t(),n(1044,"span",24),e(1045,":"),t(),e(1046," "),n(1047,"span",23),e(1048,"boolean"),t(),n(1049,"span",24),e(1050,";"),t(),e(1051," "),n(1052,"span",55),e(1053,"// \u662F\u5426ghost"),t(),e(1054,`
size`),n(1055,"span",53),e(1056,"?"),t(),n(1057,"span",24),e(1058,":"),t(),e(1059," "),n(1060,"span",23),e(1061,"string"),t(),n(1062,"span",24),e(1063,";"),t(),e(1064," "),n(1065,"span",55),e(1066,"// \u5927\u5C0F"),t(),e(1067,`
autoLoading`),n(1068,"span",53),e(1069,"?"),t(),n(1070,"span",24),e(1071,":"),t(),e(1072," "),n(1073,"span",23),e(1074,"boolean"),t(),n(1075,"span",24),e(1076,";"),t(),e(1077," "),n(1078,"span",55),e(1079,"// \u9ED8\u8BA4\u4E3Atrue\uFF0C\u82E5\u4E3Atrue\u65F6\uFF0C\u5F53onClick\u8FD4\u56DEpromise\u65F6\u6B64\u6309\u94AE\u5C06\u81EA\u52A8\u7F6E\u4E3Aloading\u72B6\u6001"),t(),e(1080,`
`),n(1081,"span",55),e(1082,"// \u63D0\u793A\uFF1A\u4E0B\u65B9\u65B9\u6CD5\u7684this\u6307\u5411\u8BE5\u914D\u7F6E\u5BF9\u8C61\u81EA\u8EAB\u3002\u5F53nzContent\u4E3A\u7EC4\u4EF6\u7C7B\u65F6\uFF0C\u4E0B\u65B9\u65B9\u6CD5\u4F20\u5165\u7684contentComponentInstance\u53C2\u6570\u4E3A\u8BE5\u7EC4\u4EF6\u7C7B\u7684\u5B9E\u4F8B"),t(),e(1083,`
`),n(1084,"span",55),e(1085,"// \u662F\u5426\u663E\u793A\u8BE5\u6309\u94AE"),t(),e(1086,`
show`),n(1087,"span",53),e(1088,"?"),t(),n(1089,"span",24),e(1090,":"),t(),e(1091," "),n(1092,"span",23),e(1093,"boolean"),t(),e(1094," "),n(1095,"span",53),e(1096,"|"),t(),e(1097," "),n(1098,"span",24),e(1099,"("),t(),n(1100,"span",24),e(1101,"("),t(),n(1102,"span",23),e(1103,"this"),t(),n(1104,"span",24),e(1105,":"),t(),e(1106," ModalButtonOptions"),n(1107,"span",24),e(1108,","),t(),e(1109," contentComponentInstance"),n(1110,"span",53),e(1111,"?"),t(),n(1112,"span",24),e(1113,":"),t(),e(1114," object"),n(1115,"span",24),e(1116,")"),t(),e(1117," "),n(1118,"span",53),e(1119,"="),t(),n(1120,"span",53),e(1121,">"),t(),e(1122," "),n(1123,"span",23),e(1124,"boolean"),t(),n(1125,"span",24),e(1126,")"),t(),n(1127,"span",24),e(1128,";"),t(),e(1129,`
`),n(1130,"span",55),e(1131,"// \u662F\u5426\u663E\u793A\u4E3Aloading"),t(),e(1132,`
loading`),n(1133,"span",53),e(1134,"?"),t(),n(1135,"span",24),e(1136,":"),t(),e(1137," "),n(1138,"span",23),e(1139,"boolean"),t(),e(1140," "),n(1141,"span",53),e(1142,"|"),t(),e(1143," "),n(1144,"span",24),e(1145,"("),t(),n(1146,"span",24),e(1147,"("),t(),n(1148,"span",23),e(1149,"this"),t(),n(1150,"span",24),e(1151,":"),t(),e(1152," ModalButtonOptions"),n(1153,"span",24),e(1154,","),t(),e(1155," contentComponentInstance"),n(1156,"span",53),e(1157,"?"),t(),n(1158,"span",24),e(1159,":"),t(),e(1160," object"),n(1161,"span",24),e(1162,")"),t(),e(1163," "),n(1164,"span",53),e(1165,"="),t(),n(1166,"span",53),e(1167,">"),t(),e(1168," "),n(1169,"span",23),e(1170,"boolean"),t(),n(1171,"span",24),e(1172,")"),t(),n(1173,"span",24),e(1174,";"),t(),e(1175,`
`),n(1176,"span",55),e(1177,"// \u662F\u5426\u7981\u7528"),t(),e(1178,`
disabled`),n(1179,"span",53),e(1180,"?"),t(),n(1181,"span",24),e(1182,":"),t(),e(1183," "),n(1184,"span",23),e(1185,"boolean"),t(),e(1186," "),n(1187,"span",53),e(1188,"|"),t(),e(1189," "),n(1190,"span",24),e(1191,"("),t(),n(1192,"span",24),e(1193,"("),t(),n(1194,"span",23),e(1195,"this"),t(),n(1196,"span",24),e(1197,":"),t(),e(1198," ModalButtonOptions"),n(1199,"span",24),e(1200,","),t(),e(1201," contentComponentInstance"),n(1202,"span",53),e(1203,"?"),t(),n(1204,"span",24),e(1205,":"),t(),e(1206," object"),n(1207,"span",24),e(1208,")"),t(),e(1209," "),n(1210,"span",53),e(1211,"="),t(),n(1212,"span",53),e(1213,">"),t(),e(1214," "),n(1215,"span",23),e(1216,"boolean"),t(),n(1217,"span",24),e(1218,")"),t(),n(1219,"span",24),e(1220,";"),t(),e(1221,`
`),n(1222,"span",55),e(1223,"// \u6309\u94AE\u70B9\u51FB\u56DE\u8C03"),t(),e(1224,`
onClick`),n(1225,"span",53),e(1226,"?"),t(),n(1227,"span",24),e(1228,"("),t(),n(1229,"span",23),e(1230,"this"),t(),n(1231,"span",24),e(1232,":"),t(),e(1233," ModalButtonOptions"),n(1234,"span",24),e(1235,","),t(),e(1236," contentComponentInstance"),n(1237,"span",53),e(1238,"?"),t(),n(1239,"span",24),e(1240,":"),t(),e(1241," object"),n(1242,"span",24),e(1243,")"),t(),n(1244,"span",24),e(1245,":"),t(),e(1246," "),n(1247,"span",23),e(1248,"void"),t(),e(1249," "),n(1250,"span",53),e(1251,"|"),t(),e(1252," Promise"),n(1253,"span",53),e(1254,"<"),t(),n(1255,"span",23),e(1256,"void"),t(),n(1257,"span",53),e(1258,">"),t(),e(1259," "),n(1260,"span",53),e(1261,"|"),t(),e(1262," "),n(1263,"span",23),e(1264,"any"),t(),n(1265,"span",24),e(1266,";"),t(),e(1267,`
`),n(1268,"span",24),e(1269,"}"),t(),n(1270,"span",24),e(1271,"]"),t()()(),n(1272,"p"),e(1273,"\u4EE5\u4E0A\u914D\u7F6E\u9879\u4E5F\u53EF\u5728\u8FD0\u884C\u6001\u5B9E\u65F6\u6539\u53D8\uFF0C\u6765\u89E6\u53D1\u6309\u94AE\u884C\u4E3A\u6539\u53D8\u3002"),t(),n(1274,"h3",64)(1275,"span"),e(1276,"[nzModalTitle]"),t(),n(1277,"label",65),e(1278,"directive"),t(),n(1279,"label",66),e(1280,"standalone"),t(),n(1281,"a",67),e(1282,"#"),t()(),n(1283,"p"),e(1284,"\u81EA\u5B9A\u4E49\u6807\u9898\u3002"),t(),n(1285,"pre",68)(1286,"code")(1287,"span",69)(1288,"span",69)(1289,"span",24),e(1290,"<"),t(),e(1291,"div"),t(),e(1292," "),n(1293,"span",70),e(1294,"*nzModalTitle"),t(),n(1295,"span",24),e(1296,">"),t()(),e(1297," Custom Modal Title "),n(1298,"span",69)(1299,"span",69)(1300,"span",24),e(1301,"</"),t(),e(1302,"div"),t(),n(1303,"span",24),e(1304,">"),t()(),e(1305,`
`),n(1306,"span",55),e(1307,"<!-- or -->"),t(),e(1308,`
`),n(1309,"span",69)(1310,"span",69)(1311,"span",24),e(1312,"<"),t(),e(1313,"ng-template"),t(),e(1314," "),n(1315,"span",70),e(1316,"[nzModalTitle]"),t(),n(1317,"span",24),e(1318,">"),t()(),e(1319," Custom Modal Title "),n(1320,"span",69)(1321,"span",69)(1322,"span",24),e(1323,"</"),t(),e(1324,"ng-template"),t(),n(1325,"span",24),e(1326,">"),t()()()(),n(1327,"h3",71)(1328,"span"),e(1329,"[nzModalContent]"),t(),n(1330,"label",65),e(1331,"directive"),t(),n(1332,"label",66),e(1333,"standalone"),t(),n(1334,"a",72),e(1335,"#"),t()(),n(1336,"p"),e(1337,"\u81EA\u5B9A\u4E49\u5185\u5BB9\u3002"),t(),n(1338,"pre",68)(1339,"code")(1340,"span",69)(1341,"span",69)(1342,"span",24),e(1343,"<"),t(),e(1344,"div"),t(),e(1345," "),n(1346,"span",70),e(1347,"*nzModalContent"),t(),n(1348,"span",24),e(1349,">"),t()(),e(1350," Custom Modal Content "),n(1351,"span",69)(1352,"span",69)(1353,"span",24),e(1354,"</"),t(),e(1355,"div"),t(),n(1356,"span",24),e(1357,">"),t()(),e(1358,`
`),n(1359,"span",55),e(1360,"<!-- or -->"),t(),e(1361,`
`),n(1362,"span",69)(1363,"span",69)(1364,"span",24),e(1365,"<"),t(),e(1366,"ng-template"),t(),e(1367," "),n(1368,"span",70),e(1369,"[nzModalContent]"),t(),n(1370,"span",24),e(1371,">"),t()(),e(1372," Custom Modal Content "),n(1373,"span",69)(1374,"span",69)(1375,"span",24),e(1376,"</"),t(),e(1377,"ng-template"),t(),n(1378,"span",24),e(1379,">"),t()()()(),n(1380,"h3",73)(1381,"span"),e(1382,"[nzModalFooter]"),t(),n(1383,"label",65),e(1384,"directive"),t(),n(1385,"label",66),e(1386,"standalone"),t(),n(1387,"a",74),e(1388,"#"),t()(),n(1389,"p"),e(1390,"\u81EA\u5B9A\u4E49\u9875\u811A\u3002"),t(),n(1391,"pre",68)(1392,"code")(1393,"span",69)(1394,"span",69)(1395,"span",24),e(1396,"<"),t(),e(1397,"div"),t(),e(1398," "),n(1399,"span",70),e(1400,"*nzModalFooter"),t(),n(1401,"span",24),e(1402,">"),t()(),e(1403,`
`),n(1404,"span",69)(1405,"span",69)(1406,"span",24),e(1407,"<"),t(),e(1408,"button"),t(),e(1409," "),n(1410,"span",70),e(1411,"nz-button"),t(),e(1412," "),n(1413,"span",70),e(1414,"nzType"),t(),n(1415,"span",75)(1416,"span",24),e(1417,"="),t(),n(1418,"span",24),e(1419,'"'),t(),e(1420,"default"),n(1421,"span",24),e(1422,'"'),t()(),e(1423," "),n(1424,"span",70),e(1425,"(click)"),t(),n(1426,"span",75)(1427,"span",24),e(1428,"="),t(),n(1429,"span",24),e(1430,'"'),t(),e(1431,"handleCancel()"),n(1432,"span",24),e(1433,'"'),t()(),n(1434,"span",24),e(1435,">"),t()(),e(1436,"Custom Callback"),n(1437,"span",69)(1438,"span",69)(1439,"span",24),e(1440,"</"),t(),e(1441,"button"),t(),n(1442,"span",24),e(1443,">"),t()(),e(1444,`
`),n(1445,"span",69)(1446,"span",69)(1447,"span",24),e(1448,"<"),t(),e(1449,"button"),t(),e(1450," "),n(1451,"span",70),e(1452,"nz-button"),t(),e(1453," "),n(1454,"span",70),e(1455,"nzType"),t(),n(1456,"span",75)(1457,"span",24),e(1458,"="),t(),n(1459,"span",24),e(1460,'"'),t(),e(1461,"primary"),n(1462,"span",24),e(1463,'"'),t()(),e(1464," "),n(1465,"span",70),e(1466,"(click)"),t(),n(1467,"span",75)(1468,"span",24),e(1469,"="),t(),n(1470,"span",24),e(1471,'"'),t(),e(1472,"handleOk()"),n(1473,"span",24),e(1474,'"'),t()(),e(1475," "),n(1476,"span",70),e(1477,"[nzLoading]"),t(),n(1478,"span",75)(1479,"span",24),e(1480,"="),t(),n(1481,"span",24),e(1482,'"'),t(),e(1483,"isConfirmLoading"),n(1484,"span",24),e(1485,'"'),t()(),n(1486,"span",24),e(1487,">"),t()(),e(1488,"Custom Submit"),n(1489,"span",69)(1490,"span",69)(1491,"span",24),e(1492,"</"),t(),e(1493,"button"),t(),n(1494,"span",24),e(1495,">"),t()(),e(1496,`
`),n(1497,"span",69)(1498,"span",69)(1499,"span",24),e(1500,"</"),t(),e(1501,"div"),t(),n(1502,"span",24),e(1503,">"),t()(),e(1504,`
`),n(1505,"span",55),e(1506,"<!-- or -->"),t(),e(1507,`
`),n(1508,"span",69)(1509,"span",69)(1510,"span",24),e(1511,"<"),t(),e(1512,"ng-template"),t(),e(1513," "),n(1514,"span",70),e(1515,"[nzModalFooter]"),t(),n(1516,"span",24),e(1517,">"),t()(),e(1518,`
`),n(1519,"span",69)(1520,"span",69)(1521,"span",24),e(1522,"<"),t(),e(1523,"button"),t(),e(1524," "),n(1525,"span",70),e(1526,"nz-button"),t(),e(1527," "),n(1528,"span",70),e(1529,"nzType"),t(),n(1530,"span",75)(1531,"span",24),e(1532,"="),t(),n(1533,"span",24),e(1534,'"'),t(),e(1535,"default"),n(1536,"span",24),e(1537,'"'),t()(),e(1538," "),n(1539,"span",70),e(1540,"(click)"),t(),n(1541,"span",75)(1542,"span",24),e(1543,"="),t(),n(1544,"span",24),e(1545,'"'),t(),e(1546,"handleCancel()"),n(1547,"span",24),e(1548,'"'),t()(),n(1549,"span",24),e(1550,">"),t()(),e(1551,"Custom Callback"),n(1552,"span",69)(1553,"span",69)(1554,"span",24),e(1555,"</"),t(),e(1556,"button"),t(),n(1557,"span",24),e(1558,">"),t()(),e(1559,`
`),n(1560,"span",69)(1561,"span",69)(1562,"span",24),e(1563,"<"),t(),e(1564,"button"),t(),e(1565," "),n(1566,"span",70),e(1567,"nz-button"),t(),e(1568," "),n(1569,"span",70),e(1570,"nzType"),t(),n(1571,"span",75)(1572,"span",24),e(1573,"="),t(),n(1574,"span",24),e(1575,'"'),t(),e(1576,"primary"),n(1577,"span",24),e(1578,'"'),t()(),e(1579," "),n(1580,"span",70),e(1581,"(click)"),t(),n(1582,"span",75)(1583,"span",24),e(1584,"="),t(),n(1585,"span",24),e(1586,'"'),t(),e(1587,"handleOk()"),n(1588,"span",24),e(1589,'"'),t()(),e(1590," "),n(1591,"span",70),e(1592,"[nzLoading]"),t(),n(1593,"span",75)(1594,"span",24),e(1595,"="),t(),n(1596,"span",24),e(1597,'"'),t(),e(1598,"isConfirmLoading"),n(1599,"span",24),e(1600,'"'),t()(),n(1601,"span",24),e(1602,">"),t()(),e(1603,"Custom Submit"),n(1604,"span",69)(1605,"span",69)(1606,"span",24),e(1607,"</"),t(),e(1608,"button"),t(),n(1609,"span",24),e(1610,">"),t()(),e(1611,`
`),n(1612,"span",69)(1613,"span",69)(1614,"span",24),e(1615,"</"),t(),e(1616,"ng-template"),t(),n(1617,"span",24),e(1618,">"),t()()()(),x(),t()()),o&2&&(u(),c("nzOffsetTop",16),u(),c("nzAffix",!1),u(69),c("nzGutter",16),u(),c("nzXl",12)("nzSpan",24),u(),c("nzId","components-modal-demo-basic")("nzLink","components-modal-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/basic.md"),u(5),c("nzId","components-modal-demo-footer")("nzLink","components-modal-demo-footer")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/footer.md"),u(13),c("nzId","components-modal-demo-confirm")("nzLink","components-modal-demo-confirm")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/confirm.md"),u(8),c("nzId","components-modal-demo-info")("nzLink","components-modal-demo-info")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/info.md"),u(5),c("nzId","components-modal-demo-manual")("nzLink","components-modal-demo-manual")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/manual.md"),u(5),c("nzId","components-modal-demo-service")("nzLink","components-modal-demo-service")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/service.md"),u(9),c("nzXl",12)("nzSpan",24),u(),c("nzId","components-modal-demo-async")("nzLink","components-modal-demo-async")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/async.md"),u(5),c("nzId","components-modal-demo-footer2")("nzLink","components-modal-demo-footer2")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/footer2.md"),u(8),c("nzId","components-modal-demo-confirm-promise")("nzLink","components-modal-demo-confirm-promise")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/confirm-promise.md"),u(8),c("nzId","components-modal-demo-locale")("nzLink","components-modal-demo-locale")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/locale.md"),u(11),c("nzId","components-modal-demo-position")("nzLink","components-modal-demo-position")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/position.md"),u(22),c("nzId","components-modal-demo-draggable")("nzLink","components-modal-demo-draggable")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/draggable.md"))},dependencies:[le,Z,ee,te,$,ie,ne,J,Y,ae,me,de,re,ue,se,ce,pe,Ee,xe,Se,ze],encapsulation:2});let m=i;return m})();var ve=(()=>{let i=class i{constructor(){this.expanded=!1}goLink(d){window&&(window.location.hash=d)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(d=>d.expandCode(this.expanded))}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=E({type:i,selectors:[["nz-demo-modal"]],viewQuery:function(o,a){if(o&1&&q(Z,5),o&2){let r;Q(r=U())&&(a.codeBoxes=r)}},standalone:!0,features:[z],decls:1718,vars:55,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-modal-demo-basic","nzTitle","Basic"],["nzHref","#components-modal-demo-async","nzTitle","Asynchronously close"],["nzHref","#components-modal-demo-footer","nzTitle","Customized Parts"],["nzHref","#components-modal-demo-footer2","nzTitle","Customized Footer"],["nzHref","#components-modal-demo-confirm","nzTitle","Confirmation modal dialog"],["nzHref","#components-modal-demo-confirm-promise","nzTitle","Confirmation modal dialog"],["nzHref","#components-modal-demo-info","nzTitle","Information modal dialog"],["nzHref","#components-modal-demo-locale","nzTitle","Internationalization"],["nzHref","#components-modal-demo-manual","nzTitle","Manual to destroy"],["nzHref","#components-modal-demo-position","nzTitle","To customize the position of modal"],["nzHref","#components-modal-demo-service","nzTitle","Modal's service"],["nzHref","#components-modal-demo-draggable","nzTitle","Draggable"],["nzHref","#api","nzTitle","API"],[1,"markdown"],[1,"subtitle"],[1,"widget"],["aria-label","Edit this page on Github","href","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/doc/index.en-US.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nz-icon","","nzType","edit"],["id","when-to-use"],["onclick","window.location.hash = 'when-to-use'",1,"anchor"],[1,"language-ts"],[1,"token","keyword"],[1,"token","punctuation"],[1,"token","string"],["nz-icon","","nzType","appstore","nz-tooltip","","nzTooltipTitle","Expand All Code",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzXl","nzSpan"],["nzTitle","Basic","nzSelector","nz-demo-modal-basic","nzGenerateCommand","ng g ng-zorro-antd:modal-basic <name>","nzComponentName","NzDemoModalBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","Customized Parts","nzSelector","nz-demo-modal-footer","nzGenerateCommand","ng g ng-zorro-antd:modal-footer <name>","nzComponentName","NzDemoModalFooterComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Confirmation modal dialog","nzSelector","nz-demo-modal-confirm","nzGenerateCommand","ng g ng-zorro-antd:modal-confirm <name>","nzComponentName","NzDemoModalConfirmComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Information modal dialog","nzSelector","nz-demo-modal-info","nzGenerateCommand","ng g ng-zorro-antd:modal-info <name>","nzComponentName","NzDemoModalInfoComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Manual to destroy","nzSelector","nz-demo-modal-manual","nzGenerateCommand","ng g ng-zorro-antd:modal-manual <name>","nzComponentName","NzDemoModalManualComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Modal's service","nzSelector","nz-demo-modal-service","nzGenerateCommand","ng g ng-zorro-antd:modal-service <name>","nzComponentName","NzDemoModalServiceComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Asynchronously close","nzSelector","nz-demo-modal-async","nzGenerateCommand","ng g ng-zorro-antd:modal-async <name>","nzComponentName","NzDemoModalAsyncComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Customized Footer","nzSelector","nz-demo-modal-footer2","nzGenerateCommand","ng g ng-zorro-antd:modal-footer2 <name>","nzComponentName","NzDemoModalFooter2Component","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Confirmation modal dialog","nzSelector","nz-demo-modal-confirm-promise","nzGenerateCommand","ng g ng-zorro-antd:modal-confirm-promise <name>","nzComponentName","NzDemoModalConfirmPromiseComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Internationalization","nzSelector","nz-demo-modal-locale","nzGenerateCommand","ng g ng-zorro-antd:modal-locale <name>","nzComponentName","NzDemoModalLocaleComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","To customize the position of modal","nzSelector","nz-demo-modal-position","nzGenerateCommand","ng g ng-zorro-antd:modal-position <name>","nzComponentName","NzDemoModalPositionComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Draggable","nzSelector","nz-demo-modal-draggable","nzGenerateCommand","ng g ng-zorro-antd:modal-draggable <name>","nzComponentName","NzDemoModalDraggableComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nzmodalservice"],[1,"api-type-label","service"],["onclick","window.location.hash = 'nzmodalservice'",1,"anchor"],["id","nz_modal_data"],["onclick","window.location.hash = 'nz_modal_data'",1,"anchor"],["id","using-service-to-create-normal-mode-modal"],["onclick","window.location.hash = 'using-service-to-create-normal-mode-modal'",1,"anchor"],["id","confirm-box-mode---nzmodalservice-method()"],["onclick","window.location.hash = 'confirm-box-mode---nzmodalservice-method()'",1,"anchor"],[1,"token","operator"],[1,"token","function"],["spellcheck","true",1,"token","comment"],["id","related-type-definition"],["onclick","window.location.hash = 'related-type-definition'",1,"anchor"],["id","other-methods/attributes-for-nzmodalservice"],["onclick","window.location.hash = 'other-methods/attributes-for-nzmodalservice'",1,"anchor"],["id","nzmodalref"],["onclick","window.location.hash = 'nzmodalref'",1,"anchor"],["id","modalbuttonoptions-(used-to-customize-the-bottom-button)"],["onclick","window.location.hash = 'modalbuttonoptions-(used-to-customize-the-bottom-button)'",1,"anchor"],["id","[nzmodaltitle]:standalone"],[1,"api-type-label","directive"],[1,"api-type-label","standalone"],["onclick","window.location.hash = '[nzmodaltitle]:standalone'",1,"anchor"],[1,"language-html"],[1,"token","tag"],[1,"token","attr-name"],["id","[nzmodalcontent]:standalone"],["onclick","window.location.hash = '[nzmodalcontent]:standalone'",1,"anchor"],["id","[nzmodalfooter]"],["onclick","window.location.hash = '[nzmodalfooter]'",1,"anchor"],[1,"token","attr-value"]],template:function(o,a){o&1&&(n(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),s("nzClick",function(p){return a.goLink(p)}),l(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7)(9,"nz-link",8)(10,"nz-link",9)(11,"nz-link",10)(12,"nz-link",11)(13,"nz-link",12)(14,"nz-link",13)(15,"nz-link",14),t()(),n(16,"section",15)(17,"h1"),e(18,"Modal"),l(19,"span",16)(20,"span",17),n(21,"a",18),l(22,"span",19),t()(),n(23,"section",15),S(),n(24,"p"),e(25,"Modal dialogs."),t(),n(26,"h2",20)(27,"span"),e(28,"When To Use"),t(),n(29,"a",21),e(30,"#"),t()(),n(31,"p"),e(32,`When requiring users to interact with the application without jumping to a new page to interrupt the user's workflow,
you can use `),n(33,"code"),e(34,"Modal"),t(),e(35,` to create a new floating layer over the current page for user-getting feedback or information
purposes. Additionally, if you need to show a simple confirmation dialog, you can use `),n(36,"code"),e(37,"NzModalService.confirm()"),t(),e(38,` and so
on.`),t(),n(39,"p"),e(40,"It is recommended to use the "),n(41,"code"),e(42,"Component"),t(),e(43,` way to pop up the Modal so that the component logic of the popup layer can be
completely isolated from the outer component and reused at any time. In the popup layer component, you can obtain
Modal's component instance by injecting `),n(44,"code"),e(45,"NzModalRef"),t(),e(46," to control the behavior of the modal box."),t(),n(47,"pre",22)(48,"code")(49,"span",23),e(50,"import"),t(),e(51," "),n(52,"span",24),e(53,"{"),t(),e(54," NzModalModule "),n(55,"span",24),e(56,"}"),t(),e(57," "),n(58,"span",23),e(59,"from"),t(),e(60," "),n(61,"span",25),e(62,"'ng-zorro-antd/modal'"),t(),n(63,"span",24),e(64,";"),t()()(),x(),t(),n(65,"h2")(66,"span"),e(67,"Examples"),t(),n(68,"span",26),s("click",function(){return a.expandAllCode()}),t()()(),n(69,"div",27)(70,"div",28)(71,"nz-code-box",29),l(72,"nz-demo-modal-basic",30),n(73,"div",31),S(),n(74,"p"),e(75,"Basic modal."),t(),x(),t()(),n(76,"nz-code-box",32),l(77,"nz-demo-modal-footer",30),n(78,"div",31),S(),n(79,"p"),e(80,`A more complex example which define a customized footer button bar,
the dialog will change to loading state after clicking submit button, when the loading is over,
the modal dialog will be closed.`),t(),n(81,"p"),e(82,"You could set "),n(83,"code"),e(84,"nzFooter"),t(),e(85," to "),n(86,"code"),e(87,"null"),t(),e(88," if you don't need default footer buttons."),t(),x(),t()(),n(89,"nz-code-box",33),l(90,"nz-demo-modal-confirm",30),n(91,"div",31),S(),n(92,"p"),e(93,"To use "),n(94,"code"),e(95,"NzModalService.confirm()"),t(),e(96," to popup a confirmation modal dialog."),t(),x(),t()(),n(97,"nz-code-box",34),l(98,"nz-demo-modal-info",30),n(99,"div",31),S(),n(100,"p"),e(101,"In the various types of information modal dialog, only one button to close dialog is provided."),t(),x(),t()(),n(102,"nz-code-box",35),l(103,"nz-demo-modal-manual",30),n(104,"div",31),S(),n(105,"p"),e(106,"Manually destroying a modal."),t(),x(),t()(),n(107,"nz-code-box",36),l(108,"nz-demo-modal-service",30),n(109,"div",31),S(),n(110,"p"),e(111,"Usage of Modal's service, examples demonstrate user-defined templates, custom components, and methods for injecting modal instances."),t(),n(112,"p"),e(113,"The template context is "),n(114,"code"),e(115," { $implicit: nzData, modalRef: NzModalRef }"),t(),e(116," when the content or footer is templates."),t(),x(),t()()(),n(117,"div",28)(118,"nz-code-box",37),l(119,"nz-demo-modal-async",30),n(120,"div",31),S(),n(121,"p"),e(122,`Asynchronously close a modal dialog when a user clicked OK button, for example,
you can use this pattern when you submit a form.`),t(),x(),t()(),n(123,"nz-code-box",38),l(124,"nz-demo-modal-footer2",30),n(125,"div",31),S(),n(126,"p"),e(127,"use "),n(128,"code"),e(129,"nzModalFooter"),t(),e(130," directive to customized footer button bar."),t(),x(),t()(),n(131,"nz-code-box",39),l(132,"nz-demo-modal-confirm-promise",30),n(133,"div",31),S(),n(134,"p"),e(135,"To use "),n(136,"code"),e(137,"NzModalService.confirm()"),t(),e(138,` to popup confirmation modal dialog. Let NzOnCancel/NzOnOk function return a promise object to
delay closing the dialog.`),t(),x(),t()(),n(139,"nz-code-box",40),l(140,"nz-demo-modal-locale",30),n(141,"div",31),S(),n(142,"p"),e(143,"To customize the text of the buttons, you need to set "),n(144,"code"),e(145,"nzOkText"),t(),e(146," and "),n(147,"code"),e(148,"nzCancelText"),t(),e(149," props."),t(),x(),t()(),n(150,"nz-code-box",41),l(151,"nz-demo-modal-position",30),n(152,"div",31),S(),n(153,"p"),e(154,"You can use "),n(155,"code"),e(156,"nzCentered"),t(),e(157,","),n(158,"code"),e(159,"style.top"),t(),e(160," or other styles to set position of modal dialog."),t(),n(161,"blockquote")(162,"p")(163,"strong"),e(164,"NOTE"),t(),e(165," Due to Angular's style isolation, you may need to override the NgZorro style with "),n(166,"code"),e(167,":: ng-deep"),t(),e(168," within a custom style if "),n(169,"code"),e(170,"encapsulation: ViewEncapsulation.None"),t(),e(171," is not included in the Component"),t()(),x(),t()(),n(172,"nz-code-box",42),l(173,"nz-demo-modal-draggable",30),n(174,"div",31),S(),n(175,"p"),e(176,"Draggable modal."),t(),x(),t()()()(),n(177,"section",43),S(),n(178,"h2",44)(179,"span"),e(180,"API"),t(),n(181,"a",45),e(182,"#"),t()(),n(183,"h3",46)(184,"span"),e(185,"NzModalService"),t(),n(186,"label",47),e(187,"service"),t(),n(188,"a",48),e(189,"#"),t()(),n(190,"p"),e(191,"The dialog is currently divided into 2 modes, "),n(192,"code"),e(193,"normal mode"),t(),e(194," and "),n(195,"code"),e(196,"confirm box mode"),t(),e(197," (for instance, the "),n(198,"code"),e(199,"Confirm"),t(),e(200,` dialog,
which is called by `),n(201,"code"),e(202,"confirm/info/success/error/warning"),t(),e(203,`). The degree of API support for the two modes is slightly
different.`),t(),n(204,"table")(205,"thead")(206,"tr")(207,"th"),e(208,"Property"),t(),n(209,"th"),e(210,"Description"),t(),n(211,"th"),e(212,"Type"),t(),n(213,"th"),e(214,"Default"),t(),n(215,"th"),e(216,"Global Config"),t()()(),n(217,"tbody")(218,"tr")(219,"td")(220,"code"),e(221,"nzAfterOpen"),t()(),n(222,"td"),e(223,"Specify a EventEmitter that will be emitted when modal opened"),t(),n(224,"td"),e(225,"EventEmitter"),t(),n(226,"td"),e(227,"-"),t(),l(228,"td"),t(),n(229,"tr")(230,"td")(231,"code"),e(232,"nzAfterClose"),t()(),n(233,"td"),e(234,"Specify a EventEmitter that will be emitted when modal is closed completely (Can listen for parameters passed in the close/destroy method)"),t(),n(235,"td"),e(236,"EventEmitter"),t(),n(237,"td"),e(238,"-"),t(),l(239,"td"),t(),n(240,"tr")(241,"td")(242,"code"),e(243,"nzBodyStyle"),t()(),n(244,"td"),e(245,"Body style for modal body element. Such as height, padding etc."),t(),n(246,"td")(247,"code"),e(248,"object"),t()(),n(249,"td"),e(250,"-"),t(),l(251,"td"),t(),n(252,"tr")(253,"td")(254,"code"),e(255,"nzCancelText"),t()(),n(256,"td"),e(257,"Text of the Cancel button. "),n(258,"i"),e(259,"Set to null to show no cancel button (this value is invalid if the nzFooter parameter is used in normal mode)"),t()(),n(260,"td")(261,"code"),e(262,"string"),t()(),n(263,"td"),e(264,"Cancel"),t(),l(265,"td"),t(),n(266,"tr")(267,"td")(268,"code"),e(269,"nzCentered"),t()(),n(270,"td"),e(271,"Centered Modal"),t(),n(272,"td")(273,"code"),e(274,"boolean"),t()(),n(275,"td")(276,"code"),e(277,"false"),t()(),l(278,"td"),t(),n(279,"tr")(280,"td")(281,"code"),e(282,"nzClosable"),t()(),n(283,"td"),e(284,"Whether a close (x) button is visible on top right of the modal dialog or not. "),n(285,"i"),e(286,"Invalid value in confirm box mode (default will be hidden)"),t()(),n(287,"td")(288,"code"),e(289,"boolean"),t()(),n(290,"td")(291,"code"),e(292,"true"),t()(),l(293,"td"),t(),n(294,"tr")(295,"td")(296,"code"),e(297,"nzOkLoading"),t()(),n(298,"td"),e(299,"Whether to apply loading visual effect for OK button or not"),t(),n(300,"td")(301,"code"),e(302,"boolean"),t()(),n(303,"td")(304,"code"),e(305,"false"),t()(),l(306,"td"),t(),n(307,"tr")(308,"td")(309,"code"),e(310,"nzCancelLoading"),t()(),n(311,"td"),e(312,"Whether to apply loading visual effect for Cancel button or not"),t(),n(313,"td")(314,"code"),e(315,"boolean"),t()(),n(316,"td")(317,"code"),e(318,"false"),t()(),l(319,"td"),t(),n(320,"tr")(321,"td")(322,"code"),e(323,"nzOkDisabled"),t()(),n(324,"td"),e(325,"Whether to disable Ok button or not"),t(),n(326,"td")(327,"code"),e(328,"boolean"),t()(),n(329,"td")(330,"code"),e(331,"false"),t()(),l(332,"td"),t(),n(333,"tr")(334,"td")(335,"code"),e(336,"nzCancelDisabled"),t()(),n(337,"td"),e(338,"Whether to disable Cancel button or not"),t(),n(339,"td")(340,"code"),e(341,"boolean"),t()(),n(342,"td")(343,"code"),e(344,"false"),t()(),l(345,"td"),t(),n(346,"tr")(347,"td")(348,"code"),e(349,"nzDraggable"),t()(),n(350,"td"),e(351,"Whether modal is draggable or not"),t(),n(352,"td")(353,"code"),e(354,"boolean"),t()(),n(355,"td")(356,"code"),e(357,"false"),t()(),l(358,"td"),t(),n(359,"tr")(360,"td")(361,"code"),e(362,"nzFooter"),t()(),n(363,"td"),e(364,"Footer content, set as footer=null when you don't need default buttons. "),n(365,"i"),e(366,"1. Only valid in normal mode."),l(367,"br"),e(368,"2. You can customize the buttons to the maximum extent by passing a "),n(369,"code"),e(370,"ModalButtonOptions"),t(),e(371," configuration (see the case or the instructions below)."),t()(),n(372,"td"),e(373,"string"),l(374,"br"),e(375,"TemplateRef"),l(376,"br"),e(377,"ModalButtonOptions"),t(),n(378,"td"),e(379,"OK and Cancel buttons"),t(),l(380,"td"),t(),n(381,"tr")(382,"td")(383,"code"),e(384,"nzKeyboard"),t()(),n(385,"td"),e(386,"Whether support press esc to close"),t(),n(387,"td")(388,"code"),e(389,"boolean"),t()(),n(390,"td")(391,"code"),e(392,"true"),t()(),l(393,"td"),t(),n(394,"tr")(395,"td")(396,"code"),e(397,"nzMask"),t()(),n(398,"td"),e(399,"Whether show mask or not."),t(),n(400,"td")(401,"code"),e(402,"boolean"),t()(),n(403,"td")(404,"code"),e(405,"true"),t()(),n(406,"td"),e(407,"\u2705"),t()(),n(408,"tr")(409,"td")(410,"code"),e(411,"nzMaskClosable"),t()(),n(412,"td"),e(413,"Whether to close the modal dialog when the mask (area outside the modal) is clicked"),t(),n(414,"td")(415,"code"),e(416,"boolean"),t()(),n(417,"td")(418,"code"),e(419,"true"),t()(),n(420,"td"),e(421,"\u2705"),t()(),n(422,"tr")(423,"td")(424,"code"),e(425,"nzCloseOnNavigation"),t()(),n(426,"td"),e(427,"Whether to close the modal when the user goes backwards/forwards in history. Note that this usually doesn't include clicking on links (unless the user is using the HashLocationStrategy)."),t(),n(428,"td")(429,"code"),e(430,"boolean"),t()(),n(431,"td")(432,"code"),e(433,"true"),t()(),n(434,"td"),e(435,"\u2705"),t()(),n(436,"tr")(437,"td")(438,"code"),e(439,"nzDirection"),t()(),n(440,"td"),e(441,"Direction of the text in the modal"),t(),n(442,"td")(443,"code"),e(444,"'ltr' | 'rtl'"),t()(),n(445,"td"),e(446,"-"),t(),n(447,"td"),e(448,"\u2705"),t()(),n(449,"tr")(450,"td")(451,"code"),e(452,"nzMaskStyle"),t()(),n(453,"td"),e(454,"Style for modal's mask element."),t(),n(455,"td")(456,"code"),e(457,"object"),t()(),n(458,"td"),e(459,"-"),t(),l(460,"td"),t(),n(461,"tr")(462,"td")(463,"code"),e(464,"nzOkText"),t()(),n(465,"td"),e(466,"Text of the OK button. "),n(467,"i"),e(468,"Set to null to show no ok button (this value is invalid if the nzFooter parameter is used in normal mode)"),t()(),n(469,"td")(470,"code"),e(471,"string"),t()(),n(472,"td"),e(473,"OK"),t(),l(474,"td"),t(),n(475,"tr")(476,"td")(477,"code"),e(478,"nzOkType"),t()(),n(479,"td"),e(480,"Button type of the OK button. "),n(481,"i"),e(482,"Consistent with the "),n(483,"code"),e(484,"nzType"),t(),e(485," of the "),n(486,"code"),e(487,"nz-button"),t(),e(488,"."),t()(),n(489,"td")(490,"code"),e(491,"string"),t()(),n(492,"td")(493,"code"),e(494,"primary"),t()(),l(495,"td"),t(),n(496,"tr")(497,"td")(498,"code"),e(499,"nzOkDanger"),t()(),n(500,"td"),e(501,"Danger status of the OK button. "),n(502,"i"),e(503,"Consistent with the "),n(504,"code"),e(505,"nzDanger"),t(),e(506," of the "),n(507,"code"),e(508,"nz-button"),t(),e(509,"."),t()(),n(510,"td")(511,"code"),e(512,"boolean"),t()(),n(513,"td")(514,"code"),e(515,"false"),t()(),l(516,"td"),t(),n(517,"tr")(518,"td")(519,"code"),e(520,"nzStyle"),t()(),n(521,"td"),e(522,"Style of floating layer, typically used at least for adjusting the position."),t(),n(523,"td")(524,"code"),e(525,"object"),t()(),n(526,"td"),e(527,"-"),t(),l(528,"td"),t(),n(529,"tr")(530,"td")(531,"code"),e(532,"nzCloseIcon"),t()(),n(533,"td"),e(534,"Custom close icon"),t(),n(535,"td")(536,"code"),e(537,"string|TemplateRef<void>"),t()(),n(538,"td"),e(539,"-"),t(),l(540,"td"),t(),n(541,"tr")(542,"td")(543,"code"),e(544,"nzTitle"),t()(),n(545,"td"),e(546,"The modal dialog's title. "),n(547,"i"),e(548,"Leave blank to show no title. The usage of TemplateRef can refer to the case"),t()(),n(549,"td"),e(550,"string / TemplateRef"),t(),n(551,"td"),e(552,"-"),t(),l(553,"td"),t(),n(554,"tr")(555,"td")(556,"code"),e(557,"nzVisible"),t()(),n(558,"td"),e(559,"Whether the modal dialog is visible or not. "),n(560,"i"),e(561,"When using the "),n(562,"code"),e(563,"<nz-modal>"),t(),e(564," tag, be sure to use two-way binding, for example: "),n(565,"code"),e(566,'[(nzVisible)]="visible"'),t(),e(567,"."),t()(),n(568,"td")(569,"code"),e(570,"boolean"),t()(),n(571,"td")(572,"code"),e(573,"false"),t()(),l(574,"td"),t(),n(575,"tr")(576,"td")(577,"code"),e(578,"nzWidth"),t()(),n(579,"td"),e(580,"Width of the modal dialog. "),n(581,"i"),e(582,"When using numbers, the default unit is "),n(583,"code"),e(584,"px"),t()()(),n(585,"td"),e(586,"string"),l(587,"br"),e(588,"number"),t(),n(589,"td"),e(590,"520"),t(),l(591,"td"),t(),n(592,"tr")(593,"td")(594,"code"),e(595,"nzClassName"),t()(),n(596,"td"),e(597,"The class name of the modal dialog"),t(),n(598,"td")(599,"code"),e(600,"string"),t()(),n(601,"td"),e(602,"-"),t(),l(603,"td"),t(),n(604,"tr")(605,"td")(606,"code"),e(607,"nzWrapClassName"),t()(),n(608,"td"),e(609,"The class name of the container of the modal dialog"),t(),n(610,"td")(611,"code"),e(612,"string"),t()(),n(613,"td"),e(614,"-"),t(),l(615,"td"),t(),n(616,"tr")(617,"td")(618,"code"),e(619,"nzZIndex"),t()(),n(620,"td"),e(621,"The z-index of the Modal"),t(),n(622,"td")(623,"code"),e(624,"number"),t()(),n(625,"td"),e(626,"1000"),t(),l(627,"td"),t(),n(628,"tr")(629,"td")(630,"code"),e(631,"nzOnCancel"),t()(),n(632,"td"),e(633,"Specify a function that will be called when a user clicks mask, close button on top right or Cancel button (If nzContent is Component, the Component instance will be put in as an argument). "),n(634,"i"),e(635,"Note: When created with "),n(636,"code"),e(637,"NzModalService.create"),t(),e(638,", this parameter should be passed into the type of function (callback function). This function returns a promise, which is automatically closed when the execution is complete or the promise ends (return "),n(639,"code"),e(640,"false"),t(),e(641," to prevent closing)"),t()(),n(642,"td"),e(643,"EventEmitter"),t(),n(644,"td"),e(645,"-"),t(),l(646,"td"),t(),n(647,"tr")(648,"td")(649,"code"),e(650,"nzOnOk"),t()(),n(651,"td"),e(652,"Specify a EventEmitter that will be emitted when a user clicks the OK button (If nzContent is Component, the Component instance will be put in as an argument). "),n(653,"i"),e(654,"Note: When created with "),n(655,"code"),e(656,"NzModalService.create"),t(),e(657,", this parameter should be passed into the type of function (callback function). This function returns a promise, which is automatically closed when the execution is complete or the promise ends (return "),n(658,"code"),e(659,"false"),t(),e(660," to prevent closing)"),t()(),n(661,"td"),e(662,"EventEmitter"),t(),n(663,"td"),e(664,"-"),t(),l(665,"td"),t(),n(666,"tr")(667,"td")(668,"code"),e(669,"nzContent"),t()(),n(670,"td"),e(671,"Content"),t(),n(672,"td"),e(673,"string / TemplateRef / Component / ng-content"),t(),n(674,"td"),e(675,"-"),t(),l(676,"td"),t(),n(677,"tr")(678,"td")(679,"code"),e(680,"nzData"),t()(),n(681,"td"),e(682,"Will be a template variable when "),n(683,"code"),e(684,"nzContent"),t(),e(685," is "),n(686,"code"),e(687,"TemplateRef"),t()(),n(688,"td")(689,"code"),e(690,"object"),t(),e(691,", will be the value of the injection token NZ_MODAL_DATA when "),n(692,"code"),e(693,"nzContent"),t(),e(694," is a component"),t(),n(695,"td"),e(696,"-"),t(),l(697,"td"),t(),n(698,"tr")(699,"td")(700,"code"),e(701,"nzIconType"),t()(),n(702,"td"),e(703,"Icon type of the Icon component. "),n(704,"i"),e(705,"Only valid in confirm box mode"),t()(),n(706,"td")(707,"code"),e(708,"string"),t()(),n(709,"td"),e(710,"question-circle"),t(),l(711,"td"),t(),n(712,"tr")(713,"td")(714,"code"),e(715,"nzAutofocus"),t()(),n(716,"td"),e(717,"autofocus and the position\uFF0Cdisabled when is "),n(718,"code"),e(719,"null"),t()(),n(720,"td")(721,"code"),e(722,"'ok' | 'cancel' | 'auto' | null"),t()(),n(723,"td")(724,"code"),e(725,"'auto'"),t()(),l(726,"td"),t()()(),n(727,"h4",49)(728,"span"),e(729,"NZ_MODAL_DATA"),t(),n(730,"a",50),e(731,"#"),t()(),n(732,"blockquote")(733,"p"),e(734,"NZ_MODAL_DATA injection token is used to retrieve "),n(735,"code"),e(736,"nzData"),t(),e(737,` in the custom component.
The dialog created by the service method `),n(738,"code"),e(739,"NzModalService.create()"),t(),e(740," inject a "),n(741,"code"),e(742,"NZ_MODAL_DATA"),t(),e(743," token (if "),n(744,"code"),e(745,"nzContent"),t(),e(746,` is
used as Component) to retrieve the parameters that have used to the '`),n(747,"code"),e(748,"nzContent"),t(),e(749," component'"),t()(),n(750,"h4",51)(751,"span"),e(752,"Using service to create Normal Mode modal"),t(),n(753,"a",52),e(754,"#"),t()(),n(755,"blockquote")(756,"p"),e(757,"You can call "),n(758,"code"),e(759,"NzModalService.create(options)"),t(),e(760," to dynamically create "),n(761,"strong"),e(762,"normal mode"),t(),e(763," modals, where "),n(764,"code"),e(765,"options"),t(),e(766,` is an
object that supports the support given in the API above `),n(767,"strong"),e(768,"normal mode"),t(),e(769," parameters"),t()(),n(770,"h3",53)(771,"span"),e(772,"Confirm box mode - NzModalService.method()"),t(),n(773,"a",54),e(774,"#"),t()(),n(775,"p"),e(776,"There are five ways to display the information based on the content's nature:"),t(),n(777,"ul")(778,"li")(779,"code"),e(780,"NzModalService.info"),t()(),n(781,"li")(782,"code"),e(783,"NzModalService.success"),t()(),n(784,"li")(785,"code"),e(786,"NzModalService.error"),t()(),n(787,"li")(788,"code"),e(789,"NzModalService.warning"),t()(),n(790,"li")(791,"code"),e(792,"NzModalService.confirm"),t()()(),n(793,"p"),e(794,`The above items are all functions, expecting a settings object as a parameter.
Consistent with the above API, some property types or initial values are different as follows:`),t(),n(795,"table")(796,"thead")(797,"tr")(798,"th"),e(799,"Property"),t(),n(800,"th"),e(801,"Description"),t(),n(802,"th"),e(803,"Type"),t(),n(804,"th"),e(805,"Default"),t()()(),n(806,"tbody")(807,"tr")(808,"td"),e(809,"nzOnOk"),t(),n(810,"td"),e(811,"Specify a EventEmitter that will be emitted when a user clicks the OK button (If nzContent is Component, the Component instance will be put in as an argument.). "),n(812,"i"),e(813,"This function returns a promise, which is automatically closed when the execution is complete or the promise ends (return "),n(814,"code"),e(815,"false"),t(),e(816," to prevent closing)"),t()(),n(817,"td"),e(818,"function"),t(),n(819,"td"),e(820,"-"),t()(),n(821,"tr")(822,"td"),e(823,"nzOnCancel"),t(),n(824,"td"),e(825,"Specify a function that will be called when a user clicks mask, close button on top right or Cancel button (If nzContent is Component, the Component instance will be put in as an argument.). "),n(826,"i"),e(827,"This function returns a promise, which is automatically closed when the execution is complete or the promise ends (return "),n(828,"code"),e(829,"false"),t(),e(830," to prevent closing)"),t()(),n(831,"td"),e(832,"function"),t(),n(833,"td"),e(834,"-"),t()(),n(835,"tr")(836,"td"),e(837,"nzWidth"),t(),n(838,"td"),e(839,"Width of the modal dialog"),t(),n(840,"td"),e(841,"string / number"),t(),n(842,"td"),e(843,"416"),t()(),n(844,"tr")(845,"td"),e(846,"nzMaskClosable"),t(),n(847,"td"),e(848,"Whether to close the modal dialog when the mask (area outside the modal) is clicked"),t(),n(849,"td")(850,"code"),e(851,"boolean"),t()(),n(852,"td")(853,"code"),e(854,"false"),t()()()()(),n(855,"p"),e(856,"All the "),n(857,"code"),e(858,"NzModalService.method"),t(),e(859,"s will return a reference, and then we can close the popup by the reference."),t(),n(860,"pre",22)(861,"code")(862,"span",23),e(863,"constructor"),t(),n(864,"span",24),e(865,"("),t(),e(866,`modal
`),n(867,"span",24),e(868,":"),t(),e(869,`
NzModalService
`),n(870,"span",24),e(871,")"),t(),e(872,`
`),n(873,"span",24),e(874,"{"),t(),e(875,`
`),n(876,"span",23),e(877,"const"),t(),e(878," ref"),n(879,"span",24),e(880,":"),t(),e(881," NzModalRef "),n(882,"span",55),e(883,"="),t(),e(884," modal"),n(885,"span",24),e(886,"."),t(),n(887,"span",56),e(888,"info"),t(),n(889,"span",24),e(890,"("),t(),n(891,"span",24),e(892,")"),t(),n(893,"span",24),e(894,";"),t(),e(895,`
ref`),n(896,"span",24),e(897,"."),t(),n(898,"span",56),e(899,"close"),t(),n(900,"span",24),e(901,"("),t(),n(902,"span",24),e(903,")"),t(),n(904,"span",24),e(905,";"),t(),e(906," "),n(907,"span",57),e(908,"// Or ref.destroy(); This dialog will be destroyed directly"),t(),e(909,`
`),n(910,"span",24),e(911,"}"),t()()(),n(912,"h3",58)(913,"span"),e(914,"Related type definition"),t(),n(915,"a",59),e(916,"#"),t()(),n(917,"h4",60)(918,"span"),e(919,"Other Methods/Attributes for NzModalService"),t(),n(920,"a",61),e(921,"#"),t()(),n(922,"table")(923,"thead")(924,"tr")(925,"th"),e(926,"Methods/Attributes"),t(),n(927,"th"),e(928,"Description"),t(),n(929,"th"),e(930,"Type"),t()()(),n(931,"tbody")(932,"tr")(933,"td")(934,"code"),e(935,"openModals"),t()(),n(936,"td"),e(937,"All currently open Modal list"),t(),n(938,"td"),e(939,"NzModalRef[]"),t()(),n(940,"tr")(941,"td")(942,"code"),e(943,"afterAllClose"),t()(),n(944,"td"),e(945,"Callback called after all Modals closed completely"),t(),n(946,"td"),e(947,"Observable<void>"),t()(),n(948,"tr")(949,"td")(950,"code"),e(951,"closeAll()"),t()(),n(952,"td"),e(953,"Close all modals"),t(),n(954,"td"),e(955,"function"),t()()()(),n(956,"h4",62)(957,"span"),e(958,"NzModalRef"),t(),n(959,"a",63),e(960,"#"),t()(),n(961,"blockquote")(962,"p")(963,"code"),e(964,"NzModalRef"),t(),e(965," object is used to control dialogs and communicate with their content"),t()(),n(966,"p"),e(967,"The dialog created by the service method "),n(968,"code"),e(969,"NzModalService.xxx()"),t(),e(970," will return a "),n(971,"code"),e(972,"NzModalRef"),t(),e(973,` object that is used to
manipulate the dialog (this object can also be obtained by dependency injection `),n(974,"code"),e(975,"NzModalRef"),t(),e(976," if "),n(977,"code"),e(978,"nzContent"),t(),e(979,` is used as
Component), This object has the following methods:`),t(),n(980,"table")(981,"thead")(982,"tr")(983,"th"),e(984,"Method"),t(),n(985,"th"),e(986,"Description"),t()()(),n(987,"tbody")(988,"tr")(989,"td"),e(990,"afterOpen"),t(),n(991,"td"),e(992,"Same as nzAfterOpen but of type Observable<void>"),t()(),n(993,"tr")(994,"td"),e(995,"afterClose"),t(),n(996,"td"),e(997,"Same as nzAfterClose, but of type Observable<result:any>"),t()(),n(998,"tr")(999,"td"),e(1e3,"close()"),t(),n(1001,"td"),e(1002,"Close (hide) the dialog. "),n(1003,"i"),e(1004,"Note: When used for a dialog created as a service, this method will destroy the dialog directly (as with the destroy method)"),t()()(),n(1005,"tr")(1006,"td"),e(1007,"destroy()"),t(),n(1008,"td"),e(1009,"Destroy the dialog. "),n(1010,"i"),e(1011,"Note: Used only for dialogs created by the service (non-service created dialogs, this method only hides the dialog)"),t()()(),n(1012,"tr")(1013,"td"),e(1014,"getContentComponent()"),t(),n(1015,"td"),e(1016,"Gets the Component instance in the contents of the dialog for "),n(1017,"code"),e(1018,"nzContent"),t(),e(1019,". "),n(1020,"i"),e(1021," Note: When the dialog is not initialized ("),n(1022,"code"),e(1023,"ngOnInit"),t(),e(1024," is not executed), this function will return "),n(1025,"code"),e(1026,"undefined"),t()()()(),n(1027,"tr")(1028,"td"),e(1029,"getContentComponentRef()"),t(),n(1030,"td"),e(1031,"Gets the Component ref in the contents of the dialog for "),n(1032,"code"),e(1033,"nzContent"),t(),e(1034,". "),n(1035,"i"),e(1036," Note: When the dialog is not initialized ("),n(1037,"code"),e(1038,"ngOnInit"),t(),e(1039," is not executed), this function will return "),n(1040,"code"),e(1041,"null"),t()()()(),n(1042,"tr")(1043,"td"),e(1044,"triggerOk()"),t(),n(1045,"td"),e(1046,"Manually trigger nzOnOk"),t()(),n(1047,"tr")(1048,"td"),e(1049,"triggerCancel()"),t(),n(1050,"td"),e(1051,"Manually trigger nzOnCancel"),t()(),n(1052,"tr")(1053,"td"),e(1054,"updateConfig(config: ModalOptions): void"),t(),n(1055,"td"),e(1056,"Update the config"),t()()()(),n(1057,"h3",64)(1058,"span"),e(1059,"ModalButtonOptions (used to customize the bottom button)"),t(),n(1060,"a",65),e(1061,"#"),t()(),n(1062,"p"),e(1063,"An array of "),n(1064,"code"),e(1065,"ModalButtonOptions"),t(),e(1066," type can be passed to "),n(1067,"code"),e(1068,"nzFooter"),t(),e(1069," for custom bottom buttons."),t(),n(1070,"p"),e(1071,"The button configuration items are as follows (along with the button component):"),t(),n(1072,"pre",22)(1073,"code"),e(1074,"nzFooter"),n(1075,"span",24),e(1076,":"),t(),e(1077," "),n(1078,"span",24),e(1079,"["),t(),n(1080,"span",24),e(1081,"{"),t(),e(1082,`
label`),n(1083,"span",24),e(1084,":"),t(),e(1085," "),n(1086,"span",23),e(1087,"string"),t(),n(1088,"span",24),e(1089,";"),t(),e(1090," "),n(1091,"span",57),e(1092,"// Button text"),t(),e(1093,`
type`),n(1094,"span",55),e(1095,"?"),t(),e(1096," "),n(1097,"span",24),e(1098,":"),t(),e(1099," "),n(1100,"span",23),e(1101,"string"),t(),n(1102,"span",24),e(1103,";"),t(),e(1104," "),n(1105,"span",57),e(1106,"// Types"),t(),e(1107,`
danger`),n(1108,"span",55),e(1109,"?"),t(),e(1110," "),n(1111,"span",24),e(1112,":"),t(),e(1113," "),n(1114,"span",23),e(1115,"boolean"),t(),n(1116,"span",24),e(1117,";"),t(),e(1118," "),n(1119,"span",57),e(1120,"// Whether danger"),t(),e(1121,`
shape`),n(1122,"span",55),e(1123,"?"),t(),e(1124," "),n(1125,"span",24),e(1126,":"),t(),e(1127," "),n(1128,"span",23),e(1129,"string"),t(),n(1130,"span",24),e(1131,";"),t(),e(1132," "),n(1133,"span",57),e(1134,"// Shape"),t(),e(1135,`
ghost`),n(1136,"span",55),e(1137,"?"),t(),e(1138," "),n(1139,"span",24),e(1140,":"),t(),e(1141," "),n(1142,"span",23),e(1143,"boolean"),t(),n(1144,"span",24),e(1145,";"),t(),e(1146," "),n(1147,"span",57),e(1148,"// Whether ghost"),t(),e(1149,`
size`),n(1150,"span",55),e(1151,"?"),t(),e(1152," "),n(1153,"span",24),e(1154,":"),t(),e(1155," "),n(1156,"span",23),e(1157,"string"),t(),n(1158,"span",24),e(1159,";"),t(),e(1160," "),n(1161,"span",57),e(1162,"// Size"),t(),e(1163,`
autoLoading`),n(1164,"span",55),e(1165,"?"),t(),e(1166," "),n(1167,"span",24),e(1168,":"),t(),e(1169," "),n(1170,"span",23),e(1171,"boolean"),t(),n(1172,"span",24),e(1173,";"),t(),e(1174," "),n(1175,"span",57),e(1176,"// The default is true. If true, this button will automatically be set to the loading state when onClick returns a promise."),t(),e(1177,`
`),n(1178,"span",57),e(1179,"// Tip: The `this` of below methods points to the configuration object itself. When nzContent is a component class, the contentComponentInstance parameter passed in by the method below is an instance of the component class"),t(),e(1180,`
`),n(1181,"span",57),e(1182,"// Whether to show this button"),t(),e(1183,`
show`),n(1184,"span",55),e(1185,"?"),t(),e(1186," "),n(1187,"span",24),e(1188,":"),t(),e(1189," "),n(1190,"span",23),e(1191,"boolean"),t(),e(1192," "),n(1193,"span",55),e(1194,"|"),t(),e(1195," "),n(1196,"span",24),e(1197,"("),t(),n(1198,"span",24),e(1199,"("),t(),n(1200,"span",23),e(1201,"this"),t(),n(1202,"span",24),e(1203,":"),t(),e(1204," ModalButtonOptions"),n(1205,"span",24),e(1206,","),t(),e(1207," contentComponentInstance"),n(1208,"span",55),e(1209,"?"),t(),n(1210,"span",24),e(1211,":"),t(),e(1212," object"),n(1213,"span",24),e(1214,")"),t(),e(1215," "),n(1216,"span",55),e(1217,"="),t(),n(1218,"span",55),e(1219,">"),t(),e(1220," "),n(1221,"span",23),e(1222,"boolean"),t(),n(1223,"span",24),e(1224,")"),t(),n(1225,"span",24),e(1226,";"),t(),e(1227,`
`),n(1228,"span",57),e(1229,"// Whether to display loading"),t(),e(1230,`
loading`),n(1231,"span",55),e(1232,"?"),t(),e(1233," "),n(1234,"span",24),e(1235,":"),t(),e(1236," "),n(1237,"span",23),e(1238,"boolean"),t(),e(1239," "),n(1240,"span",55),e(1241,"|"),t(),e(1242," "),n(1243,"span",24),e(1244,"("),t(),n(1245,"span",24),e(1246,"("),t(),n(1247,"span",23),e(1248,"this"),t(),n(1249,"span",24),e(1250,":"),t(),e(1251," ModalButtonOptions"),n(1252,"span",24),e(1253,","),t(),e(1254," contentComponentInstance"),n(1255,"span",55),e(1256,"?"),t(),n(1257,"span",24),e(1258,":"),t(),e(1259," object"),n(1260,"span",24),e(1261,")"),t(),e(1262," "),n(1263,"span",55),e(1264,"="),t(),n(1265,"span",55),e(1266,">"),t(),e(1267," "),n(1268,"span",23),e(1269,"boolean"),t(),n(1270,"span",24),e(1271,")"),t(),n(1272,"span",24),e(1273,";"),t(),e(1274,`
`),n(1275,"span",57),e(1276,"// Is it disabled"),t(),e(1277,`
disabled`),n(1278,"span",55),e(1279,"?"),t(),e(1280," "),n(1281,"span",24),e(1282,":"),t(),e(1283," "),n(1284,"span",23),e(1285,"boolean"),t(),e(1286," "),n(1287,"span",55),e(1288,"|"),t(),e(1289," "),n(1290,"span",24),e(1291,"("),t(),n(1292,"span",24),e(1293,"("),t(),n(1294,"span",23),e(1295,"this"),t(),n(1296,"span",24),e(1297,":"),t(),e(1298," ModalButtonOptions"),n(1299,"span",24),e(1300,","),t(),e(1301," contentComponentInstance"),n(1302,"span",55),e(1303,"?"),t(),n(1304,"span",24),e(1305,":"),t(),e(1306," object"),n(1307,"span",24),e(1308,")"),t(),e(1309," "),n(1310,"span",55),e(1311,"="),t(),n(1312,"span",55),e(1313,">"),t(),e(1314," "),n(1315,"span",23),e(1316,"boolean"),t(),n(1317,"span",24),e(1318,")"),t(),n(1319,"span",24),e(1320,";"),t(),e(1321,`
`),n(1322,"span",57),e(1323,"// Callback of clicking"),t(),e(1324,`
onClick`),n(1325,"span",55),e(1326,"?"),t(),e(1327," "),n(1328,"span",24),e(1329,"("),t(),n(1330,"span",23),e(1331,"this"),t(),n(1332,"span",24),e(1333,":"),t(),e(1334," ModalButtonOptions"),n(1335,"span",24),e(1336,","),t(),e(1337," contentComponentInstance"),n(1338,"span",55),e(1339,"?"),t(),n(1340,"span",24),e(1341,":"),t(),e(1342," object"),n(1343,"span",24),e(1344,")"),t(),n(1345,"span",24),e(1346,":"),t(),e(1347," "),n(1348,"span",23),e(1349,"void"),t(),e(1350," "),n(1351,"span",55),e(1352,"|"),t(),e(1353," Promise"),n(1354,"span",55),e(1355,"<"),t(),n(1356,"span",23),e(1357,"void"),t(),n(1358,"span",55),e(1359,">"),t(),e(1360," "),n(1361,"span",55),e(1362,"|"),t(),e(1363," "),n(1364,"span",23),e(1365,"any"),t(),n(1366,"span",24),e(1367,";"),t(),e(1368,`
`),n(1369,"span",24),e(1370,"}"),t(),n(1371,"span",24),e(1372,"]"),t()()(),n(1373,"p"),e(1374,"The above configuration items can also be changed in real-time to trigger the button behavior change."),t(),n(1375,"h3",66)(1376,"span"),e(1377,"[nzModalTitle]"),t(),n(1378,"label",67),e(1379,"directive"),t(),n(1380,"label",68),e(1381,"standalone"),t(),n(1382,"a",69),e(1383,"#"),t()(),n(1384,"p"),e(1385,"Customize the title."),t(),n(1386,"pre",70)(1387,"code")(1388,"span",71)(1389,"span",71)(1390,"span",24),e(1391,"<"),t(),e(1392,"div"),t(),e(1393," "),n(1394,"span",72),e(1395,"*nzModalTitle"),t(),n(1396,"span",24),e(1397,">"),t()(),e(1398," Custom Modal Title"),n(1399,"span",71)(1400,"span",71)(1401,"span",24),e(1402,"</"),t(),e(1403,"div"),t(),n(1404,"span",24),e(1405,">"),t()(),e(1406,`
`),n(1407,"span",57),e(1408,"<!-- or -->"),t(),e(1409,`
`),n(1410,"span",71)(1411,"span",71)(1412,"span",24),e(1413,"<"),t(),e(1414,"ng-template"),t(),e(1415," "),n(1416,"span",72),e(1417,"[nzModalTitle]"),t(),n(1418,"span",24),e(1419,">"),t()(),e(1420," Custom Modal Title"),n(1421,"span",71)(1422,"span",71)(1423,"span",24),e(1424,"</"),t(),e(1425,"ng-template"),t(),n(1426,"span",24),e(1427,">"),t()()()(),n(1428,"h3",73)(1429,"span"),e(1430,"[nzModalContent]"),t(),n(1431,"label",67),e(1432,"directive"),t(),n(1433,"label",68),e(1434,"standalone"),t(),n(1435,"a",74),e(1436,"#"),t()(),n(1437,"p"),e(1438,"Customize the content."),t(),n(1439,"pre",70)(1440,"code")(1441,"span",71)(1442,"span",71)(1443,"span",24),e(1444,"<"),t(),e(1445,"div"),t(),e(1446," "),n(1447,"span",72),e(1448,"*nzModalContent"),t(),n(1449,"span",24),e(1450,">"),t()(),e(1451," Custom Modal Content"),n(1452,"span",71)(1453,"span",71)(1454,"span",24),e(1455,"</"),t(),e(1456,"div"),t(),n(1457,"span",24),e(1458,">"),t()(),e(1459,`
`),n(1460,"span",57),e(1461,"<!-- or -->"),t(),e(1462,`
`),n(1463,"span",71)(1464,"span",71)(1465,"span",24),e(1466,"<"),t(),e(1467,"ng-template"),t(),e(1468," "),n(1469,"span",72),e(1470,"[nzModalContent]"),t(),n(1471,"span",24),e(1472,">"),t()(),e(1473," Custom Modal Content"),n(1474,"span",71)(1475,"span",71)(1476,"span",24),e(1477,"</"),t(),e(1478,"ng-template"),t(),n(1479,"span",24),e(1480,">"),t()()()(),n(1481,"h3",75)(1482,"span"),e(1483,"[nzModalFooter]"),t(),n(1484,"label",67),e(1485,"directive"),t(),n(1486,"a",76),e(1487,"#"),t()(),n(1488,"p"),e(1489,"Customize the footer."),t(),n(1490,"pre",70)(1491,"code")(1492,"span",71)(1493,"span",71)(1494,"span",24),e(1495,"<"),t(),e(1496,"div"),t(),e(1497," "),n(1498,"span",72),e(1499,"*nzModalFooter"),t(),n(1500,"span",24),e(1501,">"),t()(),e(1502,`
`),n(1503,"span",71)(1504,"span",71)(1505,"span",24),e(1506,"<"),t(),e(1507,"button"),t(),e(1508," "),n(1509,"span",72),e(1510,"nz-button"),t(),e(1511," "),n(1512,"span",72),e(1513,"nzType"),t(),n(1514,"span",77)(1515,"span",24),e(1516,"="),t(),n(1517,"span",24),e(1518,'"'),t(),e(1519,"default"),n(1520,"span",24),e(1521,'"'),t()(),e(1522," "),n(1523,"span",72),e(1524,"(click)"),t(),n(1525,"span",77)(1526,"span",24),e(1527,"="),t(),n(1528,"span",24),e(1529,'"'),t(),e(1530,"handleCancel()"),n(1531,"span",24),e(1532,'"'),t()(),n(1533,"span",24),e(1534,">"),t()(),e(1535,"Custom Callback"),n(1536,"span",71)(1537,"span",71)(1538,"span",24),e(1539,"</"),t(),e(1540,"button"),t(),n(1541,"span",24),e(1542,">"),t()(),e(1543,`
`),n(1544,"span",71)(1545,"span",71)(1546,"span",24),e(1547,"<"),t(),e(1548,"button"),t(),e(1549," "),n(1550,"span",72),e(1551,"nz-button"),t(),e(1552," "),n(1553,"span",72),e(1554,"nzType"),t(),n(1555,"span",77)(1556,"span",24),e(1557,"="),t(),n(1558,"span",24),e(1559,'"'),t(),e(1560,"primary"),n(1561,"span",24),e(1562,'"'),t()(),e(1563," "),n(1564,"span",72),e(1565,"(click)"),t(),n(1566,"span",77)(1567,"span",24),e(1568,"="),t(),n(1569,"span",24),e(1570,'"'),t(),e(1571,"handleOk()"),n(1572,"span",24),e(1573,'"'),t()(),e(1574," "),n(1575,"span",72),e(1576,"[nzLoading]"),t(),n(1577,"span",77)(1578,"span",24),e(1579,"="),t(),n(1580,"span",24),e(1581,'"'),t(),e(1582,"isConfirmLoading"),n(1583,"span",24),e(1584,'"'),t()(),n(1585,"span",24),e(1586,">"),t()(),e(1587,"Custom Submit"),n(1588,"span",71)(1589,"span",71)(1590,"span",24),e(1591,"</"),t(),e(1592,"button"),t(),n(1593,"span",24),e(1594,">"),t()(),e(1595,`
`),n(1596,"span",71)(1597,"span",71)(1598,"span",24),e(1599,"</"),t(),e(1600,"div"),t(),n(1601,"span",24),e(1602,">"),t()(),e(1603,`
`),n(1604,"span",57),e(1605,"<!-- or -->"),t(),e(1606,`
`),n(1607,"span",71)(1608,"span",71)(1609,"span",24),e(1610,"<"),t(),e(1611,"ng-template"),t(),e(1612," "),n(1613,"span",72),e(1614,"[nzModalFooter]"),t(),n(1615,"span",24),e(1616,">"),t()(),e(1617,`
`),n(1618,"span",71)(1619,"span",71)(1620,"span",24),e(1621,"<"),t(),e(1622,"button"),t(),e(1623," "),n(1624,"span",72),e(1625,"nz-button"),t(),e(1626," "),n(1627,"span",72),e(1628,"nzType"),t(),n(1629,"span",77)(1630,"span",24),e(1631,"="),t(),n(1632,"span",24),e(1633,'"'),t(),e(1634,"default"),n(1635,"span",24),e(1636,'"'),t()(),e(1637," "),n(1638,"span",72),e(1639,"(click)"),t(),n(1640,"span",77)(1641,"span",24),e(1642,"="),t(),n(1643,"span",24),e(1644,'"'),t(),e(1645,"handleCancel()"),n(1646,"span",24),e(1647,'"'),t()(),n(1648,"span",24),e(1649,">"),t()(),e(1650,"Custom Callback"),n(1651,"span",71)(1652,"span",71)(1653,"span",24),e(1654,"</"),t(),e(1655,"button"),t(),n(1656,"span",24),e(1657,">"),t()(),e(1658,`
`),n(1659,"span",71)(1660,"span",71)(1661,"span",24),e(1662,"<"),t(),e(1663,"button"),t(),e(1664," "),n(1665,"span",72),e(1666,"nz-button"),t(),e(1667," "),n(1668,"span",72),e(1669,"nzType"),t(),n(1670,"span",77)(1671,"span",24),e(1672,"="),t(),n(1673,"span",24),e(1674,'"'),t(),e(1675,"primary"),n(1676,"span",24),e(1677,'"'),t()(),e(1678," "),n(1679,"span",72),e(1680,"(click)"),t(),n(1681,"span",77)(1682,"span",24),e(1683,"="),t(),n(1684,"span",24),e(1685,'"'),t(),e(1686,"handleOk()"),n(1687,"span",24),e(1688,'"'),t()(),e(1689," "),n(1690,"span",72),e(1691,"[nzLoading]"),t(),n(1692,"span",77)(1693,"span",24),e(1694,"="),t(),n(1695,"span",24),e(1696,'"'),t(),e(1697,"isConfirmLoading"),n(1698,"span",24),e(1699,'"'),t()(),n(1700,"span",24),e(1701,">"),t()(),e(1702,"Custom Submit"),n(1703,"span",71)(1704,"span",71)(1705,"span",24),e(1706,"</"),t(),e(1707,"button"),t(),n(1708,"span",24),e(1709,">"),t()(),e(1710,`
`),n(1711,"span",71)(1712,"span",71)(1713,"span",24),e(1714,"</"),t(),e(1715,"ng-template"),t(),n(1716,"span",24),e(1717,">"),t()()()(),x(),t()()),o&2&&(u(),c("nzOffsetTop",16),u(),c("nzAffix",!1),u(67),c("nzGutter",16),u(),c("nzXl",12)("nzSpan",24),u(),c("nzId","components-modal-demo-basic")("nzLink","components-modal-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/basic.md"),u(5),c("nzId","components-modal-demo-footer")("nzLink","components-modal-demo-footer")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/footer.md"),u(13),c("nzId","components-modal-demo-confirm")("nzLink","components-modal-demo-confirm")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/confirm.md"),u(8),c("nzId","components-modal-demo-info")("nzLink","components-modal-demo-info")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/info.md"),u(5),c("nzId","components-modal-demo-manual")("nzLink","components-modal-demo-manual")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/manual.md"),u(5),c("nzId","components-modal-demo-service")("nzLink","components-modal-demo-service")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/service.md"),u(10),c("nzXl",12)("nzSpan",24),u(),c("nzId","components-modal-demo-async")("nzLink","components-modal-demo-async")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/async.md"),u(5),c("nzId","components-modal-demo-footer2")("nzLink","components-modal-demo-footer2")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/footer2.md"),u(8),c("nzId","components-modal-demo-confirm-promise")("nzLink","components-modal-demo-confirm-promise")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/confirm-promise.md"),u(8),c("nzId","components-modal-demo-locale")("nzLink","components-modal-demo-locale")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/locale.md"),u(11),c("nzId","components-modal-demo-position")("nzLink","components-modal-demo-position")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/position.md"),u(22),c("nzId","components-modal-demo-draggable")("nzLink","components-modal-demo-draggable")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/modal/demo/draggable.md"))},dependencies:[le,Z,ee,te,$,ie,ne,J,Y,ae,me,de,re,ue,se,ce,pe,Ee,xe,Se,ze],encapsulation:2});let m=i;return m})();var tt=[{path:"en",component:ve},{path:"zh",component:Ae}],Bn=tt;export{Bn as default};