-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathchunk-2KOSSSYR.js
More file actions
1 lines (1 loc) · 33.5 KB
/
chunk-2KOSSSYR.js
File metadata and controls
1 lines (1 loc) · 33.5 KB
1
import{a as u,b as f}from"./chunk-IDAY32WL.js";import{h as D,n as X,o as U,t as q,u as $}from"./chunk-JM5QIDRJ.js";import"./chunk-K6GUFW7O.js";import"./chunk-G7P6FTJN.js";import{Eb as W,Lb as K,Mb as Y,Nb as ee,Ob as te,Pb as ne,Rb as ie,Sb as oe,Tb as Z,Ub as P,fe as Q,gb as L}from"./chunk-ZWU6IZIC.js";import{Ac as G,Bc as V,Fb as A,Fc as C,Kc as n,cc as l,dc as e,ec as t,fc as o,id as S,mc as I,nb as a,ra as s,sa as p,sc as E,ta as h,ua as N,vc as T,zb as z,zc as O}from"./chunk-FGVLHZZS.js";import"./chunk-H4BOUERG.js";function de(r,m){if(r&1){let i=I();e(0,"button",10),E("click",function(){h(i);let c=T();return N(c.doAction("undo"))}),n(1,"Undo"),t()}}function ce(r,m){r&1&&(e(0,"p"),n(1,"Error Description Error Description Error Description Error Description"),t())}function se(r,m){if(r&1){let i=I();e(0,"button",11),E("click",function(){h(i);let c=T();return N(c.doAction("detail"))}),n(1,"Detail"),t()}}function pe(r,m){if(r&1){let i=I();e(0,"button",12),E("click",function(){h(i);let c=T();return N(c.doAction("ignore"))}),n(1,"Ignore"),t()}}function ze(r,m){r&1&&(e(0,"p"),n(1,"Info Description Info Description Info Description Info Description"),t())}function ue(r,m){if(r&1){let i=I();e(0,"button",16),E("click",function(){h(i);let c=T(2);return N(c.doAction("accept"))}),n(1,"Accept"),t()}}function fe(r,m){if(r&1){let i=I();e(0,"button",11),E("click",function(){h(i);let c=T(2);return N(c.doAction("decline"))}),n(1,"Decline"),t()}}function Ee(r,m){r&1&&(e(0,"nz-space",13),A(1,ue,2,0,"button",14)(2,fe,2,0,"button",15),t())}var y=class r{doAction(m){console.log(`Do alert's action: ${m}`)}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=z({type:r,selectors:[["nz-demo-alert-action"]],decls:19,vars:6,consts:[["actionTemplate1",""],["descriptionTemplate1",""],["actionTemplate2",""],["actionTemplate3",""],["descriptionTemplate2",""],["actionTemplate4",""],["nzShowIcon","","nzType","success","nzMessage","Success Text",3,"nzAction"],["nzShowIcon","","nzType","error","nzMessage","Error Text",3,"nzDescription","nzAction"],["nzCloseable","","nzType","warning","nzMessage","Warning Text",3,"nzAction"],["nzShowIcon","","nzType","info","nzMessage","Info Text",3,"nzDescription","nzAction"],["nz-button","","nzSize","small","nzType","text",3,"click"],["nz-button","","nzSize","small","nzType","default","nzDanger","",3,"click"],["nz-button","","nzSize","small","nzType","primary","nzGhost","",3,"click"],["nzDirection","vertical"],["nz-button","","nzSize","small","nzType","primary",3,"click",4,"nzSpaceItem"],["nz-button","","nzSize","small","nzType","default","nzDanger","",3,"click",4,"nzSpaceItem"],["nz-button","","nzSize","small","nzType","primary",3,"click"]],template:function(i,d){if(i&1&&(o(0,"nz-alert",6),A(1,de,2,0,"ng-template",null,0,S),o(3,"br")(4,"nz-alert",7),A(5,ce,2,0,"ng-template",null,1,S)(7,se,2,0,"ng-template",null,2,S),o(9,"br")(10,"nz-alert",8),A(11,pe,2,0,"ng-template",null,3,S),o(13,"br")(14,"nz-alert",9),A(15,ze,2,0,"ng-template",null,4,S)(17,Ee,3,0,"ng-template",null,5,S)),i&2){let c=C(2),R=C(6),re=C(8),me=C(12),le=C(16),ae=C(18);l("nzAction",c),a(4),l("nzDescription",R)("nzAction",re),a(6),l("nzAction",me),a(4),l("nzDescription",le)("nzAction",ae)}},dependencies:[f,u,oe,ie,te,ne,ee,Y,K],encapsulation:2})};var B=class r{static \u0275fac=function(i){return new(i||r)};static \u0275cmp=z({type:r,selectors:[["nz-demo-alert-banner"]],decls:4,vars:1,consts:[["nzBanner","","nzMessage","Warning text"],["nzBanner","","nzMessage","Very long warning text warning text text text text text text text","nzCloseable",""],["nzBanner","","nzMessage","Warning text without icon",3,"nzShowIcon"],["nzBanner","","nzType","error","nzMessage","Error text"]],template:function(i,d){i&1&&o(0,"nz-alert",0)(1,"nz-alert",1)(2,"nz-alert",2)(3,"nz-alert",3),i&2&&(a(2),l("nzShowIcon",!1))},dependencies:[f,u],styles:["nz-alert[_ngcontent-%COMP%]{margin-bottom:12px}"]})};var _=class r{static \u0275fac=function(i){return new(i||r)};static \u0275cmp=z({type:r,selectors:[["nz-demo-alert-basic"]],decls:1,vars:0,consts:[["nzType","success","nzMessage","Success Text"]],template:function(i,d){i&1&&o(0,"nz-alert",0)},dependencies:[f,u],encapsulation:2})};var F=class r{afterClose(){console.log("close")}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=z({type:r,selectors:[["nz-demo-alert-closable"]],decls:2,vars:0,consts:[["nzType","warning","nzCloseable","","nzMessage","Warning Text Warning Text Warning Text Warning Text Warning Text Warning Text Warning Text",3,"nzOnClose"],["nzType","error","nzCloseable","","nzMessage","Error Text","nzDescription","Error Description Error Description Error Description Error Description Error Description Error Description",3,"nzOnClose"]],template:function(i,d){i&1&&(e(0,"nz-alert",0),E("nzOnClose",function(){return d.afterClose()}),t(),e(1,"nz-alert",1),E("nzOnClose",function(){return d.afterClose()}),t())},dependencies:[f,u],styles:["nz-alert[_ngcontent-%COMP%]{margin-bottom:16px}"]})};var v=class r{static \u0275fac=function(i){return new(i||r)};static \u0275cmp=z({type:r,selectors:[["nz-demo-alert-close-text"]],decls:1,vars:0,consts:[["nzType","info","nzMessage","Info Text","nzCloseText","Close Now"]],template:function(i,d){i&1&&o(0,"nz-alert",0)},dependencies:[f,u],encapsulation:2})};function xe(r,m){r&1&&(e(0,"div"),n(1," S "),t())}var w=class r{static \u0275fac=function(i){return new(i||r)};static \u0275cmp=z({type:r,selectors:[["nz-demo-alert-custom-icon"]],decls:3,vars:1,consts:[["customIconTemplate",""],["nzType","success","nzMessage","Success Tips","nzDescription","Detailed description and advices about successful copywriting.","nzShowIcon","",3,"nzIcon"]],template:function(i,d){if(i&1&&(o(0,"nz-alert",1),A(1,xe,2,0,"ng-template",null,0,S)),i&2){let c=C(2);l("nzIcon",c)}},dependencies:[f,u],encapsulation:2})};var k=class r{static \u0275fac=function(i){return new(i||r)};static \u0275cmp=z({type:r,selectors:[["nz-demo-alert-description"]],decls:4,vars:0,consts:[["nzType","success","nzMessage","Success Text","nzDescription","Success Description Success Description Success Description"],["nzType","info","nzMessage","Info Text","nzDescription","Info Description Info Description Info Description Info Description"],["nzType","warning","nzMessage","Warning Text","nzDescription","Warning Description Warning Description Warning Description Warning Description"],["nzType","error","nzMessage","Error Text","nzDescription","Error Description Error Description Error Description Error Description"]],template:function(i,d){i&1&&o(0,"nz-alert",0)(1,"nz-alert",1)(2,"nz-alert",2)(3,"nz-alert",3)},dependencies:[f,u],styles:["nz-alert[_ngcontent-%COMP%]{margin-bottom:16px}"]})};var H=class r{static \u0275fac=function(i){return new(i||r)};static \u0275cmp=z({type:r,selectors:[["nz-demo-alert-icon"]],decls:8,vars:0,consts:[["nzType","success","nzMessage","Success Tips","nzShowIcon",""],["nzType","info","nzMessage","Informational Notes","nzShowIcon",""],["nzType","warning","nzMessage","Warning","nzShowIcon",""],["nzType","error","nzMessage","Error","nzShowIcon",""],["nzType","success","nzMessage","Success Tips","nzDescription","Detailed description and advices about successful copywriting.","nzShowIcon",""],["nzType","info","nzMessage","Informational Notes","nzDescription","Additional description and informations about copywriting.","nzShowIcon",""],["nzType","warning","nzMessage","Warning","nzDescription","This is a warning notice about copywriting.","nzShowIcon",""],["nzType","error","nzMessage","Error","nzDescription","This is an error message about copywriting.","nzShowIcon",""]],template:function(i,d){i&1&&o(0,"nz-alert",0)(1,"nz-alert",1)(2,"nz-alert",2)(3,"nz-alert",3)(4,"nz-alert",4)(5,"nz-alert",5)(6,"nz-alert",6)(7,"nz-alert",7)},dependencies:[f,u],styles:["nz-alert[_ngcontent-%COMP%]{margin-bottom:16px}"]})};var M=class r{static \u0275fac=function(i){return new(i||r)};static \u0275cmp=z({type:r,selectors:[["nz-demo-alert-style"]],decls:4,vars:0,consts:[["nzType","success","nzMessage","Success Text"],["nzType","info","nzMessage","Info Text"],["nzType","warning","nzMessage","Warning Text"],["nzType","error","nzMessage","Error Text"]],template:function(i,d){i&1&&o(0,"nz-alert",0)(1,"nz-alert",1)(2,"nz-alert",2)(3,"nz-alert",3)},dependencies:[f,u],styles:["nz-alert[_ngcontent-%COMP%]{margin-bottom:16px}"]})};var j=class r{expanded=!1;codeBoxes;goLink(m){window&&(window.location.hash=m)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(m=>m.expandCode(this.expanded))}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=z({type:r,selectors:[["nz-demo-alert"]],viewQuery:function(i,d){if(i&1&&O(D,5),i&2){let c;G(c=V())&&(d.codeBoxes=c)}},decls:284,vars:25,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#\u4F55\u65F6\u4F7F\u7528","nzTitle","\u4F55\u65F6\u4F7F\u7528",1,"toc-indent-1"],["nzHref","#\u4EE3\u7801\u6F14\u793A","nzTitle","\u4EE3\u7801\u6F14\u793A",1,"toc-indent-1"],["nzHref","#components-alert-demo-basic","nzTitle","\u57FA\u672C",1,"toc-indent-2"],["nzHref","#components-alert-demo-style","nzTitle","\u56DB\u79CD\u6837\u5F0F",1,"toc-indent-2"],["nzHref","#components-alert-demo-closable","nzTitle","\u53EF\u5173\u95ED\u7684\u8B66\u544A\u63D0\u793A",1,"toc-indent-2"],["nzHref","#components-alert-demo-description","nzTitle","\u542B\u6709\u8F85\u52A9\u6027\u6587\u5B57\u4ECB\u7ECD",1,"toc-indent-2"],["nzHref","#components-alert-demo-icon","nzTitle","\u56FE\u6807",1,"toc-indent-2"],["nzHref","#components-alert-demo-close-text","nzTitle","\u81EA\u5B9A\u4E49\u5173\u95ED",1,"toc-indent-2"],["nzHref","#components-alert-demo-banner","nzTitle","\u9876\u90E8\u516C\u544A",1,"toc-indent-2"],["nzHref","#components-alert-demo-action","nzTitle","\u64CD\u4F5C",1,"toc-indent-2"],["nzHref","#components-alert-demo-custom-icon","nzTitle","\u81EA\u5B9A\u4E49\u56FE\u6807",1,"toc-indent-2"],["nzHref","#api","nzTitle","API",1,"toc-indent-1"],[1,"markdown"],[1,"subtitle"],["name","alert","description","\u8B66\u544A\u63D0\u793A\uFF0C\u5C55\u73B0\u9700\u8981\u5173\u6CE8\u7684\u4FE1\u606F\u3002","language","zh"],["id","\u4F55\u65F6\u4F7F\u7528"],["onclick","window.location.hash = '\u4F55\u65F6\u4F7F\u7528'",1,"anchor"],["id","\u4EE3\u7801\u6F14\u793A"],["nzType","appstore","nz-tooltip","","nzTooltipTitle","\u5C55\u5F00\u5168\u90E8\u4EE3\u7801",1,"code-box-expand-trigger",3,"click"],["onclick","window.location.hash = '\u4EE3\u7801\u6F14\u793A'",1,"anchor"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzXl","nzSpan"],["nzTitle","\u57FA\u672C","nzVersion","","nzId","components-alert-demo-basic","nzSelector","nz-demo-alert-basic","nzLink","components-alert-demo-basic","nzGenerateCommand","ng g ng-zorro-antd:alert-basic <name>","nzComponentName","NzDemoAlertBasicComponent","nzIframeSource","","nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/basic.md",3,"nzIframe","nzIframeHeight"],["demo",""],["intro",""],["nzTitle","\u53EF\u5173\u95ED\u7684\u8B66\u544A\u63D0\u793A","nzVersion","","nzId","components-alert-demo-closable","nzSelector","nz-demo-alert-closable","nzLink","components-alert-demo-closable","nzGenerateCommand","ng g ng-zorro-antd:alert-closable <name>","nzComponentName","NzDemoAlertClosableComponent","nzIframeSource","","nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/closable.md",3,"nzIframe","nzIframeHeight"],["nzTitle","\u56FE\u6807","nzVersion","","nzId","components-alert-demo-icon","nzSelector","nz-demo-alert-icon","nzLink","components-alert-demo-icon","nzGenerateCommand","ng g ng-zorro-antd:alert-icon <name>","nzComponentName","NzDemoAlertIconComponent","nzIframeSource","","nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/icon.md",3,"nzIframe","nzIframeHeight"],["nzTitle","\u9876\u90E8\u516C\u544A","nzVersion","","nzId","components-alert-demo-banner","nzSelector","nz-demo-alert-banner","nzLink","components-alert-demo-banner","nzGenerateCommand","ng g ng-zorro-antd:alert-banner <name>","nzComponentName","NzDemoAlertBannerComponent","nzIframeSource","","nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/banner.md",3,"nzIframe","nzIframeHeight"],["nzTitle","\u81EA\u5B9A\u4E49\u56FE\u6807","nzVersion","","nzId","components-alert-demo-custom-icon","nzSelector","nz-demo-alert-custom-icon","nzLink","components-alert-demo-custom-icon","nzGenerateCommand","ng g ng-zorro-antd:alert-custom-icon <name>","nzComponentName","NzDemoAlertCustomIconComponent","nzIframeSource","","nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/custom-icon.md",3,"nzIframe","nzIframeHeight"],["nzTitle","\u56DB\u79CD\u6837\u5F0F","nzVersion","","nzId","components-alert-demo-style","nzSelector","nz-demo-alert-style","nzLink","components-alert-demo-style","nzGenerateCommand","ng g ng-zorro-antd:alert-style <name>","nzComponentName","NzDemoAlertStyleComponent","nzIframeSource","","nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/style.md",3,"nzIframe","nzIframeHeight"],["nzTitle","\u542B\u6709\u8F85\u52A9\u6027\u6587\u5B57\u4ECB\u7ECD","nzVersion","","nzId","components-alert-demo-description","nzSelector","nz-demo-alert-description","nzLink","components-alert-demo-description","nzGenerateCommand","ng g ng-zorro-antd:alert-description <name>","nzComponentName","NzDemoAlertDescriptionComponent","nzIframeSource","","nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/description.md",3,"nzIframe","nzIframeHeight"],["nzTitle","\u81EA\u5B9A\u4E49\u5173\u95ED","nzVersion","","nzId","components-alert-demo-close-text","nzSelector","nz-demo-alert-close-text","nzLink","components-alert-demo-close-text","nzGenerateCommand","ng g ng-zorro-antd:alert-close-text <name>","nzComponentName","NzDemoAlertCloseTextComponent","nzIframeSource","","nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/close-text.md",3,"nzIframe","nzIframeHeight"],["nzTitle","\u64CD\u4F5C","nzVersion","","nzId","components-alert-demo-action","nzSelector","nz-demo-alert-action","nzLink","components-alert-demo-action","nzGenerateCommand","ng g ng-zorro-antd:alert-action <name>","nzComponentName","NzDemoAlertActionComponent","nzIframeSource","","nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/action.md",3,"nzIframe","nzIframeHeight"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-alert"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-alert'",1,"anchor"]],template:function(i,d){i&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),E("nzClick",function(R){return d.goLink(R)}),o(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),t()(),e(15,"section",14)(16,"h1"),n(17," Alert "),e(18,"span",15),n(19,"\u8B66\u544A\u63D0\u793A"),t()(),o(20,"component-meta",16),e(21,"section",14),p(),e(22,"h2",17)(23,"span"),n(24,"\u4F55\u65F6\u4F7F\u7528"),t(),e(25,"a",18),n(26,"#"),t()(),e(27,"ul")(28,"li"),n(29,"\u5F53\u67D0\u4E2A\u9875\u9762\u9700\u8981\u5411\u7528\u6237\u663E\u793A\u8B66\u544A\u7684\u4FE1\u606F\u65F6\u3002"),t(),e(30,"li"),n(31,"\u975E\u6D6E\u5C42\u7684\u9759\u6001\u5C55\u73B0\u5F62\u5F0F\uFF0C\u59CB\u7EC8\u5C55\u73B0\uFF0C\u4E0D\u4F1A\u81EA\u52A8\u6D88\u5931\uFF0C\u7528\u6237\u53EF\u4EE5\u70B9\u51FB\u5173\u95ED\u3002"),t()(),s(),t(),e(32,"h2",19)(33,"span"),n(34,"\u4EE3\u7801\u6F14\u793A"),t(),e(35,"nz-icon",20),E("click",function(){return d.expandAllCode()}),t(),e(36,"a",21),n(37,"#"),t()()(),e(38,"div",22)(39,"div",23)(40,"nz-code-box",24),o(41,"nz-demo-alert-basic",25),e(42,"div",26),p(),e(43,"p"),n(44,"\u6700\u7B80\u5355\u7684\u7528\u6CD5\uFF0C\u9002\u7528\u4E8E\u7B80\u77ED\u7684\u8B66\u544A\u63D0\u793A\u3002"),t(),s(),t()(),e(45,"nz-code-box",27),o(46,"nz-demo-alert-closable",25),e(47,"div",26),p(),e(48,"p"),n(49,"\u663E\u793A\u5173\u95ED\u6309\u94AE\uFF0C\u70B9\u51FB\u53EF\u5173\u95ED\u8B66\u544A\u63D0\u793A\u3002"),t(),s(),t()(),e(50,"nz-code-box",28),o(51,"nz-demo-alert-icon",25),e(52,"div",26),p(),e(53,"p"),n(54,"\u53EF\u53E3\u7684\u56FE\u6807\u8BA9\u4FE1\u606F\u7C7B\u578B\u66F4\u52A0\u9192\u76EE\u3002"),t(),s(),t()(),e(55,"nz-code-box",29),o(56,"nz-demo-alert-banner",25),e(57,"div",26),p(),e(58,"p"),n(59,"\u9875\u9762\u9876\u90E8\u901A\u544A\u5F62\u5F0F\uFF0C\u9ED8\u8BA4\u6709\u56FE\u6807\u4E14 "),e(60,"code"),n(61,"nzType"),t(),n(62," \u4E3A "),e(63,"code"),n(64,"'warning'"),t(),n(65,"\u3002"),t(),s(),t()(),e(66,"nz-code-box",30),o(67,"nz-demo-alert-custom-icon",25),e(68,"div",26),p(),e(69,"p"),n(70,"\u8BA9\u4FE1\u606F\u7C7B\u578B\u66F4\u52A0\u9192\u76EE, \u6EE1\u8DB3\u5B9A\u5236\u5316\u9700\u6C42\u3002"),t(),s(),t()()(),e(71,"div",23)(72,"nz-code-box",31),o(73,"nz-demo-alert-style",25),e(74,"div",26),p(),e(75,"p"),n(76,"\u5171\u6709\u56DB\u79CD\u6837\u5F0F "),e(77,"code"),n(78,"success"),t(),n(79,"\u3001"),e(80,"code"),n(81,"info"),t(),n(82,"\u3001"),e(83,"code"),n(84,"warning"),t(),n(85,"\u3001"),e(86,"code"),n(87,"error"),t(),n(88,"\u3002"),t(),s(),t()(),e(89,"nz-code-box",32),o(90,"nz-demo-alert-description",25),e(91,"div",26),p(),e(92,"p"),n(93,"\u542B\u6709\u8F85\u52A9\u6027\u6587\u5B57\u4ECB\u7ECD\u7684\u8B66\u544A\u63D0\u793A\u3002"),t(),s(),t()(),e(94,"nz-code-box",33),o(95,"nz-demo-alert-close-text",25),e(96,"div",26),p(),e(97,"p"),n(98,"\u53EF\u4EE5\u81EA\u5B9A\u4E49\u5173\u95ED\uFF0C\u81EA\u5B9A\u4E49\u7684\u5185\u5BB9\u4F1A\u66FF\u6362\u539F\u5148\u7684\u5173\u95ED\u6309\u94AE\u3002"),t(),s(),t()(),e(99,"nz-code-box",34),o(100,"nz-demo-alert-action",25),e(101,"div",26),p(),e(102,"p"),n(103,"\u53EF\u4EE5\u5728\u53F3\u4E0A\u89D2\u81EA\u5B9A\u4E49\u64CD\u4F5C\u9879\u3002"),t(),s(),t()()()(),e(104,"section",35),p(),e(105,"h2",36)(106,"span"),n(107,"API"),t(),e(108,"a",37),n(109,"#"),t()(),e(110,"h3",38)(111,"span"),n(112,"nz-alert"),t(),e(113,"label",39),n(114,"component"),t(),e(115,"a",40),n(116,"#"),t()(),e(117,"table")(118,"thead")(119,"tr")(120,"th"),n(121,"\u53C2\u6570"),t(),e(122,"th"),n(123,"\u8BF4\u660E"),t(),e(124,"th"),n(125,"\u7C7B\u578B"),t(),e(126,"th"),n(127,"\u9ED8\u8BA4\u503C"),t(),e(128,"th"),n(129,"\u5168\u5C40\u914D\u7F6E"),t()()(),e(130,"tbody")(131,"tr")(132,"td")(133,"code"),n(134,"[nzBanner]"),t()(),e(135,"td"),n(136,"\u662F\u5426\u7528\u4F5C\u9876\u90E8\u516C\u544A"),t(),e(137,"td")(138,"code"),n(139,"boolean"),t()(),e(140,"td")(141,"code"),n(142,"false"),t()(),o(143,"td"),t(),e(144,"tr")(145,"td")(146,"code"),n(147,"[nzAction]"),t()(),e(148,"td"),n(149,"\u81EA\u5B9A\u4E49\u64CD\u4F5C\u9879"),t(),e(150,"td")(151,"code"),n(152,"string | TemplateRef<void>"),t()(),e(153,"td"),n(154,"-"),t(),o(155,"td"),t(),e(156,"tr")(157,"td")(158,"code"),n(159,"[nzCloseable]"),t()(),e(160,"td"),n(161,"\u9ED8\u8BA4\u4E0D\u663E\u793A\u5173\u95ED\u6309\u94AE"),t(),e(162,"td")(163,"code"),n(164,"boolean"),t()(),e(165,"td"),n(166,"-"),t(),e(167,"td"),n(168,"\u2705"),t()(),e(169,"tr")(170,"td")(171,"code"),n(172,"[nzCloseText]"),t()(),e(173,"td"),n(174,"\u81EA\u5B9A\u4E49\u5173\u95ED\u6309\u94AE"),t(),e(175,"td")(176,"code"),n(177,"string | TemplateRef<void>"),t()(),e(178,"td"),n(179,"-"),t(),o(180,"td"),t(),e(181,"tr")(182,"td")(183,"code"),n(184,"[nzDescription]"),t()(),e(185,"td"),n(186,"\u8B66\u544A\u63D0\u793A\u7684\u8F85\u52A9\u6027\u6587\u5B57\u4ECB\u7ECD"),t(),e(187,"td")(188,"code"),n(189,"string | TemplateRef<void>"),t()(),e(190,"td"),n(191,"-"),t(),o(192,"td"),t(),e(193,"tr")(194,"td")(195,"code"),n(196,"[nzMessage]"),t()(),e(197,"td"),n(198,"\u8B66\u544A\u63D0\u793A\u5185\u5BB9"),t(),e(199,"td")(200,"code"),n(201,"string | TemplateRef<void>"),t()(),e(202,"td"),n(203,"-"),t(),o(204,"td"),t(),e(205,"tr")(206,"td")(207,"code"),n(208,"[nzShowIcon]"),t()(),e(209,"td"),n(210,"\u662F\u5426\u663E\u793A\u8F85\u52A9\u56FE\u6807\uFF0C"),e(211,"code"),n(212,"nzBanner"),t(),n(213," \u6A21\u5F0F\u4E0B\u9ED8\u8BA4\u503C\u4E3A "),e(214,"code"),n(215,"true"),t()(),e(216,"td")(217,"code"),n(218,"boolean"),t()(),e(219,"td")(220,"code"),n(221,"false"),t()(),e(222,"td"),n(223,"\u2705"),t()(),e(224,"tr")(225,"td")(226,"code"),n(227,"[nzIconType]"),t()(),e(228,"td"),n(229,"\u81EA\u5B9A\u4E49\u56FE\u6807\u7C7B\u578B\uFF0C"),e(230,"code"),n(231,"nzShowIcon"),t(),n(232," \u4E3A "),e(233,"code"),n(234,"true"),t(),n(235," \u65F6\u6709\u6548"),t(),e(236,"td")(237,"code"),n(238,"string"),t()(),e(239,"td"),n(240,"-"),t(),o(241,"td"),t(),e(242,"tr")(243,"td")(244,"code"),n(245,"[nzType]"),t()(),e(246,"td"),n(247,"\u6307\u5B9A\u8B66\u544A\u63D0\u793A\u7684\u6837\u5F0F\uFF0C"),e(248,"code"),n(249,"nzBanner"),t(),n(250," \u6A21\u5F0F\u4E0B\u9ED8\u8BA4\u503C\u4E3A "),e(251,"code"),n(252,"'warning'"),t()(),e(253,"td")(254,"code"),n(255,"'success' | 'info' | 'warning' | 'error'"),t()(),e(256,"td")(257,"code"),n(258,"'info'"),t()(),o(259,"td"),t(),e(260,"tr")(261,"td")(262,"code"),n(263,"[nzIcon]"),t()(),e(264,"td"),n(265,"\u81EA\u5B9A\u4E49\u56FE\u6807\uFF0CshowIcon \u4E3A true \u65F6\u6709\u6548"),t(),e(266,"td")(267,"code"),n(268,"string | TemplateRef<void>"),t()(),e(269,"td"),n(270,"-"),t(),o(271,"td"),t(),e(272,"tr")(273,"td")(274,"code"),n(275,"(nzOnClose)"),t()(),e(276,"td"),n(277,"\u5173\u95ED\u65F6\u89E6\u53D1\u7684\u56DE\u8C03\u51FD\u6570"),t(),e(278,"td")(279,"code"),n(280,"EventEmitter<void>"),t()(),e(281,"td"),n(282,"-"),t(),o(283,"td"),t()()(),s(),t()()),i&2&&(a(),l("nzOffsetTop",16),a(),l("nzAffix",!1),a(36),l("nzGutter",16),a(),l("nzXl",12)("nzSpan",24),a(),l("nzIframe",!1)("nzIframeHeight",null),a(5),l("nzIframe",!1)("nzIframeHeight",null),a(5),l("nzIframe",!1)("nzIframeHeight",null),a(5),l("nzIframe",!0)("nzIframeHeight",220),a(11),l("nzIframe",!1)("nzIframeHeight",null),a(5),l("nzXl",12)("nzSpan",24),a(),l("nzIframe",!1)("nzIframeHeight",null),a(17),l("nzIframe",!1)("nzIframeHeight",null),a(5),l("nzIframe",!1)("nzIframeHeight",null),a(5),l("nzIframe",!1)("nzIframeHeight",null))},dependencies:[$,D,q,X,U,L,P,Z,Q,W,y,B,_,F,v,w,k,H,M],encapsulation:2})};var J=class r{expanded=!1;codeBoxes;goLink(m){window&&(window.location.hash=m)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(m=>m.expandCode(this.expanded))}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=z({type:r,selectors:[["nz-demo-alert"]],viewQuery:function(i,d){if(i&1&&O(D,5),i&2){let c;G(c=V())&&(d.codeBoxes=c)}},decls:276,vars:25,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#when_to_use","nzTitle","When To Use",1,"toc-indent-1"],["nzHref","#examples","nzTitle","Examples",1,"toc-indent-1"],["nzHref","#components-alert-demo-basic","nzTitle","Basic",1,"toc-indent-2"],["nzHref","#components-alert-demo-style","nzTitle","More types",1,"toc-indent-2"],["nzHref","#components-alert-demo-closable","nzTitle","Closable",1,"toc-indent-2"],["nzHref","#components-alert-demo-description","nzTitle","Description",1,"toc-indent-2"],["nzHref","#components-alert-demo-icon","nzTitle","Icon",1,"toc-indent-2"],["nzHref","#components-alert-demo-close-text","nzTitle","Customized Close Text",1,"toc-indent-2"],["nzHref","#components-alert-demo-banner","nzTitle","Banner",1,"toc-indent-2"],["nzHref","#components-alert-demo-action","nzTitle","Custom action",1,"toc-indent-2"],["nzHref","#components-alert-demo-custom-icon","nzTitle","Custom icon",1,"toc-indent-2"],["nzHref","#api","nzTitle","API",1,"toc-indent-1"],[1,"markdown"],[1,"subtitle"],["name","alert","description","Alert component for feedback.","language","en"],["id","when_to_use"],["onclick","window.location.hash = 'when_to_use'",1,"anchor"],["id","examples"],["nzType","appstore","nz-tooltip","","nzTooltipTitle","Expand All Code",1,"code-box-expand-trigger",3,"click"],["onclick","window.location.hash = 'examples'",1,"anchor"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzXl","nzSpan"],["nzTitle","Basic","nzVersion","","nzId","components-alert-demo-basic","nzSelector","nz-demo-alert-basic","nzLink","components-alert-demo-basic","nzGenerateCommand","ng g ng-zorro-antd:alert-basic <name>","nzComponentName","NzDemoAlertBasicComponent","nzIframeSource","","nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/basic.md",3,"nzIframe","nzIframeHeight"],["demo",""],["intro",""],["nzTitle","Closable","nzVersion","","nzId","components-alert-demo-closable","nzSelector","nz-demo-alert-closable","nzLink","components-alert-demo-closable","nzGenerateCommand","ng g ng-zorro-antd:alert-closable <name>","nzComponentName","NzDemoAlertClosableComponent","nzIframeSource","","nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/closable.md",3,"nzIframe","nzIframeHeight"],["nzTitle","Icon","nzVersion","","nzId","components-alert-demo-icon","nzSelector","nz-demo-alert-icon","nzLink","components-alert-demo-icon","nzGenerateCommand","ng g ng-zorro-antd:alert-icon <name>","nzComponentName","NzDemoAlertIconComponent","nzIframeSource","","nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/icon.md",3,"nzIframe","nzIframeHeight"],["nzTitle","Banner","nzVersion","","nzId","components-alert-demo-banner","nzSelector","nz-demo-alert-banner","nzLink","components-alert-demo-banner","nzGenerateCommand","ng g ng-zorro-antd:alert-banner <name>","nzComponentName","NzDemoAlertBannerComponent","nzIframeSource","","nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/banner.md",3,"nzIframe","nzIframeHeight"],["nzTitle","Custom icon","nzVersion","","nzId","components-alert-demo-custom-icon","nzSelector","nz-demo-alert-custom-icon","nzLink","components-alert-demo-custom-icon","nzGenerateCommand","ng g ng-zorro-antd:alert-custom-icon <name>","nzComponentName","NzDemoAlertCustomIconComponent","nzIframeSource","","nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/custom-icon.md",3,"nzIframe","nzIframeHeight"],["nzTitle","More types","nzVersion","","nzId","components-alert-demo-style","nzSelector","nz-demo-alert-style","nzLink","components-alert-demo-style","nzGenerateCommand","ng g ng-zorro-antd:alert-style <name>","nzComponentName","NzDemoAlertStyleComponent","nzIframeSource","","nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/style.md",3,"nzIframe","nzIframeHeight"],["nzTitle","Description","nzVersion","","nzId","components-alert-demo-description","nzSelector","nz-demo-alert-description","nzLink","components-alert-demo-description","nzGenerateCommand","ng g ng-zorro-antd:alert-description <name>","nzComponentName","NzDemoAlertDescriptionComponent","nzIframeSource","","nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/description.md",3,"nzIframe","nzIframeHeight"],["nzTitle","Customized Close Text","nzVersion","","nzId","components-alert-demo-close-text","nzSelector","nz-demo-alert-close-text","nzLink","components-alert-demo-close-text","nzGenerateCommand","ng g ng-zorro-antd:alert-close-text <name>","nzComponentName","NzDemoAlertCloseTextComponent","nzIframeSource","","nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/close-text.md",3,"nzIframe","nzIframeHeight"],["nzTitle","Custom action","nzVersion","","nzId","components-alert-demo-action","nzSelector","nz-demo-alert-action","nzLink","components-alert-demo-action","nzGenerateCommand","ng g ng-zorro-antd:alert-action <name>","nzComponentName","NzDemoAlertActionComponent","nzIframeSource","","nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/action.md",3,"nzIframe","nzIframeHeight"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-alert"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-alert'",1,"anchor"]],template:function(i,d){i&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),E("nzClick",function(R){return d.goLink(R)}),o(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),t()(),e(15,"section",14)(16,"h1"),n(17," Alert "),o(18,"span",15),t(),o(19,"component-meta",16),e(20,"section",14),p(),e(21,"h2",17)(22,"span"),n(23,"When To Use"),t(),e(24,"a",18),n(25,"#"),t()(),e(26,"ul")(27,"li"),n(28,"When you need to show alert messages to users."),t(),e(29,"li"),n(30,"When you need a persistent static container which is closable by user actions."),t()(),s(),t(),e(31,"h2",19)(32,"span"),n(33,"Examples"),t(),e(34,"nz-icon",20),E("click",function(){return d.expandAllCode()}),t(),e(35,"a",21),n(36,"#"),t()()(),e(37,"div",22)(38,"div",23)(39,"nz-code-box",24),o(40,"nz-demo-alert-basic",25),e(41,"div",26),p(),e(42,"p"),n(43,"The simplest usage for short messages."),t(),s(),t()(),e(44,"nz-code-box",27),o(45,"nz-demo-alert-closable",25),e(46,"div",26),p(),e(47,"p"),n(48,"To show close button."),t(),s(),t()(),e(49,"nz-code-box",28),o(50,"nz-demo-alert-icon",25),e(51,"div",26),p(),e(52,"p"),n(53,"Decent icon make information more clear and more friendly."),t(),s(),t()(),e(54,"nz-code-box",29),o(55,"nz-demo-alert-banner",25),e(56,"div",26),p(),e(57,"p"),n(58,"Display Alert as a banner at top of page."),t(),s(),t()(),e(59,"nz-code-box",30),o(60,"nz-demo-alert-custom-icon",25),e(61,"div",26),p(),e(62,"p"),n(63,"Make information more clear and more friendly and meet customized needs."),t(),s(),t()()(),e(64,"div",23)(65,"nz-code-box",31),o(66,"nz-demo-alert-style",25),e(67,"div",26),p(),e(68,"p"),n(69,"There are 4 types of Alert: "),e(70,"code"),n(71,"success"),t(),n(72,", "),e(73,"code"),n(74,"info"),t(),n(75,", "),e(76,"code"),n(77,"warning"),t(),n(78,", "),e(79,"code"),n(80,"error"),t(),n(81,"."),t(),s(),t()(),e(82,"nz-code-box",32),o(83,"nz-demo-alert-description",25),e(84,"div",26),p(),e(85,"p"),n(86,"Additional description for alert message."),t(),s(),t()(),e(87,"nz-code-box",33),o(88,"nz-demo-alert-close-text",25),e(89,"div",26),p(),e(90,"p"),n(91,"Replace the default icon with customized content."),t(),s(),t()(),e(92,"nz-code-box",34),o(93,"nz-demo-alert-action",25),e(94,"div",26),p(),e(95,"p"),n(96,"Custom action."),t(),s(),t()()()(),e(97,"section",35),p(),e(98,"h2",36)(99,"span"),n(100,"API"),t(),e(101,"a",37),n(102,"#"),t()(),e(103,"h3",38)(104,"span"),n(105,"nz-alert"),t(),e(106,"label",39),n(107,"component"),t(),e(108,"a",40),n(109,"#"),t()(),e(110,"table")(111,"thead")(112,"tr")(113,"th"),n(114,"Property"),t(),e(115,"th"),n(116,"Description"),t(),e(117,"th"),n(118,"Type"),t(),e(119,"th"),n(120,"Default"),t(),e(121,"th"),n(122,"Global Config"),t()()(),e(123,"tbody")(124,"tr")(125,"td")(126,"code"),n(127,"[nzBanner]"),t()(),e(128,"td"),n(129,"Whether to show as banner"),t(),e(130,"td")(131,"code"),n(132,"boolean"),t()(),e(133,"td")(134,"code"),n(135,"false"),t()(),o(136,"td"),t(),e(137,"tr")(138,"td")(139,"code"),n(140,"[nzAction]"),t()(),e(141,"td"),n(142,"Customized alert's action"),t(),e(143,"td")(144,"code"),n(145,"string | TemplateRef<void>"),t()(),e(146,"td"),n(147,"-"),t(),o(148,"td"),t(),e(149,"tr")(150,"td")(151,"code"),n(152,"[nzCloseable]"),t()(),e(153,"td"),n(154,"Whether Alert can be closed"),t(),e(155,"td")(156,"code"),n(157,"boolean"),t()(),e(158,"td"),n(159,"-"),t(),e(160,"td"),n(161,"\u2705"),t()(),e(162,"tr")(163,"td")(164,"code"),n(165,"[nzCloseText]"),t()(),e(166,"td"),n(167,"Close text to show"),t(),e(168,"td")(169,"code"),n(170,"string | TemplateRef<void>"),t()(),e(171,"td"),n(172,"-"),t(),o(173,"td"),t(),e(174,"tr")(175,"td")(176,"code"),n(177,"[nzDescription]"),t()(),e(178,"td"),n(179,"Additional content of Alert"),t(),e(180,"td")(181,"code"),n(182,"string | TemplateRef<void>"),t()(),e(183,"td"),n(184,"-"),t(),o(185,"td"),t(),e(186,"tr")(187,"td")(188,"code"),n(189,"[nzMessage]"),t()(),e(190,"td"),n(191,"Content of Alert"),t(),e(192,"td")(193,"code"),n(194,"string | TemplateRef<void>"),t()(),e(195,"td"),n(196,"-"),t(),o(197,"td"),t(),e(198,"tr")(199,"td")(200,"code"),n(201,"[nzShowIcon]"),t()(),e(202,"td"),n(203,"Whether to show icon, in "),e(204,"code"),n(205,"nzBanner"),t(),n(206," mode default is "),e(207,"code"),n(208,"true"),t()(),e(209,"td")(210,"code"),n(211,"boolean"),t()(),e(212,"td")(213,"code"),n(214,"false"),t()(),e(215,"td"),n(216,"\u2705"),t()(),e(217,"tr")(218,"td")(219,"code"),n(220,"[nzIconType]"),t()(),e(221,"td"),n(222,"Icon type, effective when "),e(223,"code"),n(224,"nzShowIcon"),t(),n(225," is "),e(226,"code"),n(227,"true"),t()(),e(228,"td")(229,"code"),n(230,"string"),t()(),e(231,"td"),n(232,"-"),t(),o(233,"td"),t(),e(234,"tr")(235,"td")(236,"code"),n(237,"[nzType]"),t()(),e(238,"td"),n(239,"Type of Alert styles, in "),e(240,"code"),n(241,"nzBanner"),t(),n(242," mode default is "),e(243,"code"),n(244,"'warning'"),t()(),e(245,"td")(246,"code"),n(247,"'success' | 'info' | 'warning' | 'error'"),t()(),e(248,"td")(249,"code"),n(250,"'info'"),t()(),o(251,"td"),t(),e(252,"tr")(253,"td")(254,"code"),n(255,"[nzIcon]"),t()(),e(256,"td"),n(257,"Custom icon, effective when showIcon is true"),t(),e(258,"td")(259,"code"),n(260,"string | TemplateRef<void>"),t()(),e(261,"td"),n(262,"-"),t(),o(263,"td"),t(),e(264,"tr")(265,"td")(266,"code"),n(267,"(nzOnClose)"),t()(),e(268,"td"),n(269,"Callback when Alert is closed"),t(),e(270,"td")(271,"code"),n(272,"EventEmitter<void>"),t()(),e(273,"td"),n(274,"-"),t(),o(275,"td"),t()()(),s(),t()()),i&2&&(a(),l("nzOffsetTop",16),a(),l("nzAffix",!1),a(35),l("nzGutter",16),a(),l("nzXl",12)("nzSpan",24),a(),l("nzIframe",!1)("nzIframeHeight",null),a(5),l("nzIframe",!1)("nzIframeHeight",null),a(5),l("nzIframe",!1)("nzIframeHeight",null),a(5),l("nzIframe",!0)("nzIframeHeight",220),a(5),l("nzIframe",!1)("nzIframeHeight",null),a(5),l("nzXl",12)("nzSpan",24),a(),l("nzIframe",!1)("nzIframeHeight",null),a(17),l("nzIframe",!1)("nzIframeHeight",null),a(5),l("nzIframe",!1)("nzIframeHeight",null),a(5),l("nzIframe",!1)("nzIframeHeight",null))},dependencies:[$,D,q,X,U,L,P,Z,Q,W,y,B,_,F,v,w,k,H,M],encapsulation:2})};var Ne=[{path:"en",component:J},{path:"zh",component:j}],Dt=Ne;export{Dt as default};