-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathchunk-77TYYNJM.js
3 lines (3 loc) · 34.2 KB
/
chunk-77TYYNJM.js
1
2
3
import{a as u,b as f}from"./chunk-U36PLR3L.js";import{a as ee,b as ne,d as ie}from"./chunk-SF6YDLBW.js";import{a as te}from"./chunk-FKGJGU3K.js";import{g as J,h as K,i as Y}from"./chunk-B3KZDYFP.js";import{a as D,g as X,h as U,j as q}from"./chunk-CQCG3332.js";import"./chunk-MC2HPSUP.js";import"./chunk-V4U3URE2.js";import{Ca as Z,Hc as P,Ic as V,Lc as Q,ec as W}from"./chunk-U67ZLHSB.js";import{Aa as h,Ac as O,Ba as I,Bc as G,Cc as L,Gc as C,Hc as n,Ib as z,Pb as A,Wb as m,bd as S,ic as e,jc as t,kc as o,oc as N,rc as E,tb as a,tc as T,ya as s,za as p}from"./chunk-6WFMSBDD.js";import"./chunk-EQDQRRRY.js";function ae(r,l){if(r&1){let i=N();e(0,"button",10),E("click",function(){h(i);let c=T();return I(c.doAction("undo"))}),n(1,"Undo"),t()}}function de(r,l){r&1&&(e(0,"p"),n(1,"Error Description Error Description Error Description Error Description"),t())}function ce(r,l){if(r&1){let i=N();e(0,"button",11),E("click",function(){h(i);let c=T();return I(c.doAction("detail"))}),n(1,"Detail"),t()}}function se(r,l){if(r&1){let i=N();e(0,"button",12),E("click",function(){h(i);let c=T();return I(c.doAction("ignore"))}),n(1,"Ignore"),t()}}function pe(r,l){r&1&&(e(0,"p"),n(1,"Info Description Info Description Info Description Info Description"),t())}function ze(r,l){if(r&1){let i=N();e(0,"button",16),E("click",function(){h(i);let c=T(2);return I(c.doAction("accept"))}),n(1,"Accept"),t()}}function ue(r,l){if(r&1){let i=N();e(0,"button",11),E("click",function(){h(i);let c=T(2);return I(c.doAction("decline"))}),n(1,"Decline"),t()}}function fe(r,l){r&1&&(e(0,"nz-space",13),A(1,ze,2,0,"button",14)(2,ue,2,0,"button",15),t())}var y=class r{doAction(l){console.log(`Do alert's action: ${l}`)}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,ae,2,0,"ng-template",null,0,S),o(3,"br")(4,"nz-alert",7),A(5,de,2,0,"ng-template",null,1,S)(7,ce,2,0,"ng-template",null,2,S),o(9,"br")(10,"nz-alert",8),A(11,se,2,0,"ng-template",null,3,S),o(13,"br")(14,"nz-alert",9),A(15,pe,2,0,"ng-template",null,4,S)(17,fe,3,0,"ng-template",null,5,S)),i&2){let c=C(2),R=C(6),oe=C(8),re=C(12),le=C(16),me=C(18);m("nzAction",c),a(4),m("nzDescription",R)("nzAction",oe),a(6),m("nzAction",re),a(4),m("nzDescription",le)("nzAction",me)}},dependencies:[f,u,ie,ne,ee,te,Y,K,J],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),m("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 v=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 F=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 Ee(r,l){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,Ee,2,0,"ng-template",null,0,S)),i&2){let c=C(2);m("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 $=class r{expanded=!1;codeBoxes;goLink(l){window&&(window.location.hash=l)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(l=>l.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=L())&&(d.codeBoxes=c)}},decls:303,vars:52,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-alert-demo-basic","nzTitle","\u57FA\u672C"],["nzHref","#components-alert-demo-style","nzTitle","\u56DB\u79CD\u6837\u5F0F"],["nzHref","#components-alert-demo-closable","nzTitle","\u53EF\u5173\u95ED\u7684\u8B66\u544A\u63D0\u793A"],["nzHref","#components-alert-demo-description","nzTitle","\u542B\u6709\u8F85\u52A9\u6027\u6587\u5B57\u4ECB\u7ECD"],["nzHref","#components-alert-demo-icon","nzTitle","\u56FE\u6807"],["nzHref","#components-alert-demo-close-text","nzTitle","\u81EA\u5B9A\u4E49\u5173\u95ED"],["nzHref","#components-alert-demo-banner","nzTitle","\u9876\u90E8\u516C\u544A"],["nzHref","#components-alert-demo-action","nzTitle","\u64CD\u4F5C"],["nzHref","#components-alert-demo-custom-icon","nzTitle","\u81EA\u5B9A\u4E49\u56FE\u6807"],["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/alert/doc/index.zh-CN.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["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"],["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-alert-basic","nzGenerateCommand","ng g ng-zorro-antd:alert-basic <name>","nzComponentName","NzDemoAlertBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","\u53EF\u5173\u95ED\u7684\u8B66\u544A\u63D0\u793A","nzSelector","nz-demo-alert-closable","nzGenerateCommand","ng g ng-zorro-antd:alert-closable <name>","nzComponentName","NzDemoAlertClosableComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u56FE\u6807","nzSelector","nz-demo-alert-icon","nzGenerateCommand","ng g ng-zorro-antd:alert-icon <name>","nzComponentName","NzDemoAlertIconComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u9876\u90E8\u516C\u544A","nzSelector","nz-demo-alert-banner","nzGenerateCommand","ng g ng-zorro-antd:alert-banner <name>","nzComponentName","NzDemoAlertBannerComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u81EA\u5B9A\u4E49\u56FE\u6807","nzSelector","nz-demo-alert-custom-icon","nzGenerateCommand","ng g ng-zorro-antd:alert-custom-icon <name>","nzComponentName","NzDemoAlertCustomIconComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u56DB\u79CD\u6837\u5F0F","nzSelector","nz-demo-alert-style","nzGenerateCommand","ng g ng-zorro-antd:alert-style <name>","nzComponentName","NzDemoAlertStyleComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u542B\u6709\u8F85\u52A9\u6027\u6587\u5B57\u4ECB\u7ECD","nzSelector","nz-demo-alert-description","nzGenerateCommand","ng g ng-zorro-antd:alert-description <name>","nzComponentName","NzDemoAlertDescriptionComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u81EA\u5B9A\u4E49\u5173\u95ED","nzSelector","nz-demo-alert-close-text","nzGenerateCommand","ng g ng-zorro-antd:alert-close-text <name>","nzComponentName","NzDemoAlertCloseTextComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u64CD\u4F5C","nzSelector","nz-demo-alert-action","nzGenerateCommand","ng g ng-zorro-antd:alert-action <name>","nzComponentName","NzDemoAlertActionComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],[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),t()(),e(13,"section",12)(14,"h1"),n(15,"Alert"),e(16,"span",13),n(17,"\u8B66\u544A\u63D0\u793A"),t(),o(18,"span",14),e(19,"a",15),o(20,"nz-icon",16),t()(),e(21,"section",12),p(),e(22,"p"),n(23,"\u8B66\u544A\u63D0\u793A\uFF0C\u5C55\u73B0\u9700\u8981\u5173\u6CE8\u7684\u4FE1\u606F\u3002"),t(),e(24,"h2",17)(25,"span"),n(26,"\u4F55\u65F6\u4F7F\u7528"),t(),e(27,"a",18),n(28,"#"),t()(),e(29,"ul")(30,"li"),n(31,"\u5F53\u67D0\u4E2A\u9875\u9762\u9700\u8981\u5411\u7528\u6237\u663E\u793A\u8B66\u544A\u7684\u4FE1\u606F\u65F6\u3002"),t(),e(32,"li"),n(33,"\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()(),e(34,"pre")(35,"code",19)(36,"span",20),n(37,"import"),t(),n(38," "),e(39,"span",21),n(40,"{"),t(),n(41," NzAlertModule "),e(42,"span",21),n(43,"}"),t(),n(44," "),e(45,"span",20),n(46,"from"),t(),n(47," "),e(48,"span",22),n(49,"'ng-zorro-antd/alert'"),t(),e(50,"span",21),n(51,";"),t(),n(52,`
`),t()(),s(),t(),e(53,"h2")(54,"span"),n(55,"\u4EE3\u7801\u6F14\u793A"),t(),e(56,"nz-icon",23),E("click",function(){return d.expandAllCode()}),t()()(),e(57,"div",24)(58,"div",25)(59,"nz-code-box",26),o(60,"nz-demo-alert-basic",27),e(61,"div",28),p(),e(62,"p"),n(63,"\u6700\u7B80\u5355\u7684\u7528\u6CD5\uFF0C\u9002\u7528\u4E8E\u7B80\u77ED\u7684\u8B66\u544A\u63D0\u793A\u3002"),t(),s(),t()(),e(64,"nz-code-box",29),o(65,"nz-demo-alert-closable",27),e(66,"div",28),p(),e(67,"p"),n(68,"\u663E\u793A\u5173\u95ED\u6309\u94AE\uFF0C\u70B9\u51FB\u53EF\u5173\u95ED\u8B66\u544A\u63D0\u793A\u3002"),t(),s(),t()(),e(69,"nz-code-box",30),o(70,"nz-demo-alert-icon",27),e(71,"div",28),p(),e(72,"p"),n(73,"\u53EF\u53E3\u7684\u56FE\u6807\u8BA9\u4FE1\u606F\u7C7B\u578B\u66F4\u52A0\u9192\u76EE\u3002"),t(),s(),t()(),e(74,"nz-code-box",31),o(75,"nz-demo-alert-banner",27),e(76,"div",28),p(),e(77,"p"),n(78,"\u9875\u9762\u9876\u90E8\u901A\u544A\u5F62\u5F0F\uFF0C\u9ED8\u8BA4\u6709\u56FE\u6807\u4E14 "),e(79,"code"),n(80,"nzType"),t(),n(81," \u4E3A "),e(82,"code"),n(83,"'warning'"),t(),n(84,"\u3002"),t(),s(),t()(),e(85,"nz-code-box",32),o(86,"nz-demo-alert-custom-icon",27),e(87,"div",28),p(),e(88,"p"),n(89,"\u8BA9\u4FE1\u606F\u7C7B\u578B\u66F4\u52A0\u9192\u76EE, \u6EE1\u8DB3\u5B9A\u5236\u5316\u9700\u6C42\u3002"),t(),s(),t()()(),e(90,"div",25)(91,"nz-code-box",33),o(92,"nz-demo-alert-style",27),e(93,"div",28),p(),e(94,"p"),n(95,"\u5171\u6709\u56DB\u79CD\u6837\u5F0F "),e(96,"code"),n(97,"success"),t(),n(98,"\u3001"),e(99,"code"),n(100,"info"),t(),n(101,"\u3001"),e(102,"code"),n(103,"warning"),t(),n(104,"\u3001"),e(105,"code"),n(106,"error"),t(),n(107,"\u3002"),t(),s(),t()(),e(108,"nz-code-box",34),o(109,"nz-demo-alert-description",27),e(110,"div",28),p(),e(111,"p"),n(112,"\u542B\u6709\u8F85\u52A9\u6027\u6587\u5B57\u4ECB\u7ECD\u7684\u8B66\u544A\u63D0\u793A\u3002"),t(),s(),t()(),e(113,"nz-code-box",35),o(114,"nz-demo-alert-close-text",27),e(115,"div",28),p(),e(116,"p"),n(117,"\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(118,"nz-code-box",36),o(119,"nz-demo-alert-action",27),e(120,"div",28),p(),e(121,"p"),n(122,"\u53EF\u4EE5\u5728\u53F3\u4E0A\u89D2\u81EA\u5B9A\u4E49\u64CD\u4F5C\u9879\u3002"),t(),s(),t()()()(),e(123,"section",37),p(),e(124,"h2",38)(125,"span"),n(126,"API"),t(),e(127,"a",39),n(128,"#"),t()(),e(129,"h3",40)(130,"span"),n(131,"nz-alert"),t(),e(132,"label",41),n(133,"component"),t(),e(134,"a",42),n(135,"#"),t()(),e(136,"table")(137,"thead")(138,"tr")(139,"th"),n(140,"\u53C2\u6570"),t(),e(141,"th"),n(142,"\u8BF4\u660E"),t(),e(143,"th"),n(144,"\u7C7B\u578B"),t(),e(145,"th"),n(146,"\u9ED8\u8BA4\u503C"),t(),e(147,"th"),n(148,"\u5168\u5C40\u914D\u7F6E"),t()()(),e(149,"tbody")(150,"tr")(151,"td")(152,"code"),n(153,"[nzBanner]"),t()(),e(154,"td"),n(155,"\u662F\u5426\u7528\u4F5C\u9876\u90E8\u516C\u544A"),t(),e(156,"td")(157,"code"),n(158,"boolean"),t()(),e(159,"td")(160,"code"),n(161,"false"),t()(),o(162,"td"),t(),e(163,"tr")(164,"td")(165,"code"),n(166,"[nzAction]"),t()(),e(167,"td"),n(168,"\u81EA\u5B9A\u4E49\u64CD\u4F5C\u9879"),t(),e(169,"td")(170,"code"),n(171,"string | TemplateRef<void>"),t()(),e(172,"td"),n(173,"-"),t(),o(174,"td"),t(),e(175,"tr")(176,"td")(177,"code"),n(178,"[nzCloseable]"),t()(),e(179,"td"),n(180,"\u9ED8\u8BA4\u4E0D\u663E\u793A\u5173\u95ED\u6309\u94AE"),t(),e(181,"td")(182,"code"),n(183,"boolean"),t()(),e(184,"td"),n(185,"-"),t(),e(186,"td"),n(187,"\u2705"),t()(),e(188,"tr")(189,"td")(190,"code"),n(191,"[nzCloseText]"),t()(),e(192,"td"),n(193,"\u81EA\u5B9A\u4E49\u5173\u95ED\u6309\u94AE"),t(),e(194,"td")(195,"code"),n(196,"string | TemplateRef<void>"),t()(),e(197,"td"),n(198,"-"),t(),o(199,"td"),t(),e(200,"tr")(201,"td")(202,"code"),n(203,"[nzDescription]"),t()(),e(204,"td"),n(205,"\u8B66\u544A\u63D0\u793A\u7684\u8F85\u52A9\u6027\u6587\u5B57\u4ECB\u7ECD"),t(),e(206,"td")(207,"code"),n(208,"string | TemplateRef<void>"),t()(),e(209,"td"),n(210,"-"),t(),o(211,"td"),t(),e(212,"tr")(213,"td")(214,"code"),n(215,"[nzMessage]"),t()(),e(216,"td"),n(217,"\u8B66\u544A\u63D0\u793A\u5185\u5BB9"),t(),e(218,"td")(219,"code"),n(220,"string | TemplateRef<void>"),t()(),e(221,"td"),n(222,"-"),t(),o(223,"td"),t(),e(224,"tr")(225,"td")(226,"code"),n(227,"[nzShowIcon]"),t()(),e(228,"td"),n(229,"\u662F\u5426\u663E\u793A\u8F85\u52A9\u56FE\u6807\uFF0C"),e(230,"code"),n(231,"nzBanner"),t(),n(232," \u6A21\u5F0F\u4E0B\u9ED8\u8BA4\u503C\u4E3A "),e(233,"code"),n(234,"true"),t()(),e(235,"td")(236,"code"),n(237,"boolean"),t()(),e(238,"td")(239,"code"),n(240,"false"),t()(),e(241,"td"),n(242,"\u2705"),t()(),e(243,"tr")(244,"td")(245,"code"),n(246,"[nzIconType]"),t()(),e(247,"td"),n(248,"\u81EA\u5B9A\u4E49\u56FE\u6807\u7C7B\u578B\uFF0C"),e(249,"code"),n(250,"nzShowIcon"),t(),n(251," \u4E3A "),e(252,"code"),n(253,"true"),t(),n(254," \u65F6\u6709\u6548"),t(),e(255,"td")(256,"code"),n(257,"string"),t()(),e(258,"td"),n(259,"-"),t(),o(260,"td"),t(),e(261,"tr")(262,"td")(263,"code"),n(264,"[nzType]"),t()(),e(265,"td"),n(266,"\u6307\u5B9A\u8B66\u544A\u63D0\u793A\u7684\u6837\u5F0F\uFF0C"),e(267,"code"),n(268,"nzBanner"),t(),n(269," \u6A21\u5F0F\u4E0B\u9ED8\u8BA4\u503C\u4E3A "),e(270,"code"),n(271,"'warning'"),t()(),e(272,"td")(273,"code"),n(274,"'success' | 'info' | 'warning' | 'error'"),t()(),e(275,"td")(276,"code"),n(277,"'info'"),t()(),o(278,"td"),t(),e(279,"tr")(280,"td")(281,"code"),n(282,"[nzIcon]"),t()(),e(283,"td"),n(284,"\u81EA\u5B9A\u4E49\u56FE\u6807\uFF0CshowIcon \u4E3A true \u65F6\u6709\u6548"),t(),e(285,"td")(286,"code"),n(287,"string | TemplateRef<void>"),t()(),e(288,"td"),n(289,"-"),t(),o(290,"td"),t(),e(291,"tr")(292,"td")(293,"code"),n(294,"(nzOnClose)"),t()(),e(295,"td"),n(296,"\u5173\u95ED\u65F6\u89E6\u53D1\u7684\u56DE\u8C03\u51FD\u6570"),t(),e(297,"td")(298,"code"),n(299,"EventEmitter<void>"),t()(),e(300,"td"),n(301,"-"),t(),o(302,"td"),t()()(),s(),t()()),i&2&&(a(),m("nzOffsetTop",16),a(),m("nzAffix",!1),a(55),m("nzGutter",16),a(),m("nzXl",12)("nzSpan",24),a(),m("nzId","components-alert-demo-basic")("nzLink","components-alert-demo-basic")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/basic.md"),a(5),m("nzId","components-alert-demo-closable")("nzLink","components-alert-demo-closable")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/closable.md"),a(5),m("nzId","components-alert-demo-icon")("nzLink","components-alert-demo-icon")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/icon.md"),a(5),m("nzId","components-alert-demo-banner")("nzLink","components-alert-demo-banner")("nzIframe",!0)("nzIframeHeight",220)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/banner.md"),a(11),m("nzId","components-alert-demo-custom-icon")("nzLink","components-alert-demo-custom-icon")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/custom-icon.md"),a(5),m("nzXl",12)("nzSpan",24),a(),m("nzId","components-alert-demo-style")("nzLink","components-alert-demo-style")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/style.md"),a(17),m("nzId","components-alert-demo-description")("nzLink","components-alert-demo-description")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/description.md"),a(5),m("nzId","components-alert-demo-close-text")("nzLink","components-alert-demo-close-text")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/close-text.md"),a(5),m("nzId","components-alert-demo-action")("nzLink","components-alert-demo-action")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/action.md"))},dependencies:[q,D,X,U,Q,V,P,W,Z,y,B,_,v,F,w,k,H,M],encapsulation:2})};var j=class r{expanded=!1;codeBoxes;goLink(l){window&&(window.location.hash=l)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(l=>l.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=L())&&(d.codeBoxes=c)}},decls:295,vars:52,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-alert-demo-basic","nzTitle","Basic"],["nzHref","#components-alert-demo-style","nzTitle","More types"],["nzHref","#components-alert-demo-closable","nzTitle","Closable"],["nzHref","#components-alert-demo-description","nzTitle","Description"],["nzHref","#components-alert-demo-icon","nzTitle","Icon"],["nzHref","#components-alert-demo-close-text","nzTitle","Customized Close Text"],["nzHref","#components-alert-demo-banner","nzTitle","Banner"],["nzHref","#components-alert-demo-action","nzTitle","Custom action"],["nzHref","#components-alert-demo-custom-icon","nzTitle","Custom icon"],["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/alert/doc/index.en-US.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["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"],["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-alert-basic","nzGenerateCommand","ng g ng-zorro-antd:alert-basic <name>","nzComponentName","NzDemoAlertBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","Closable","nzSelector","nz-demo-alert-closable","nzGenerateCommand","ng g ng-zorro-antd:alert-closable <name>","nzComponentName","NzDemoAlertClosableComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Icon","nzSelector","nz-demo-alert-icon","nzGenerateCommand","ng g ng-zorro-antd:alert-icon <name>","nzComponentName","NzDemoAlertIconComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Banner","nzSelector","nz-demo-alert-banner","nzGenerateCommand","ng g ng-zorro-antd:alert-banner <name>","nzComponentName","NzDemoAlertBannerComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Custom icon","nzSelector","nz-demo-alert-custom-icon","nzGenerateCommand","ng g ng-zorro-antd:alert-custom-icon <name>","nzComponentName","NzDemoAlertCustomIconComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","More types","nzSelector","nz-demo-alert-style","nzGenerateCommand","ng g ng-zorro-antd:alert-style <name>","nzComponentName","NzDemoAlertStyleComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Description","nzSelector","nz-demo-alert-description","nzGenerateCommand","ng g ng-zorro-antd:alert-description <name>","nzComponentName","NzDemoAlertDescriptionComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Customized Close Text","nzSelector","nz-demo-alert-close-text","nzGenerateCommand","ng g ng-zorro-antd:alert-close-text <name>","nzComponentName","NzDemoAlertCloseTextComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Custom action","nzSelector","nz-demo-alert-action","nzGenerateCommand","ng g ng-zorro-antd:alert-action <name>","nzComponentName","NzDemoAlertActionComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],[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),t()(),e(13,"section",12)(14,"h1"),n(15,"Alert"),o(16,"span",13)(17,"span",14),e(18,"a",15),o(19,"nz-icon",16),t()(),e(20,"section",12),p(),e(21,"p"),n(22,"Alert component for feedback."),t(),e(23,"h2",17)(24,"span"),n(25,"When To Use"),t(),e(26,"a",18),n(27,"#"),t()(),e(28,"ul")(29,"li"),n(30,"When you need to show alert messages to users."),t(),e(31,"li"),n(32,"When you need a persistent static container which is closable by user actions."),t()(),e(33,"pre")(34,"code",19)(35,"span",20),n(36,"import"),t(),n(37," "),e(38,"span",21),n(39,"{"),t(),n(40," NzAlertModule "),e(41,"span",21),n(42,"}"),t(),n(43," "),e(44,"span",20),n(45,"from"),t(),n(46," "),e(47,"span",22),n(48,"'ng-zorro-antd/alert'"),t(),e(49,"span",21),n(50,";"),t(),n(51,`
`),t()(),s(),t(),e(52,"h2")(53,"span"),n(54,"Examples"),t(),e(55,"nz-icon",23),E("click",function(){return d.expandAllCode()}),t()()(),e(56,"div",24)(57,"div",25)(58,"nz-code-box",26),o(59,"nz-demo-alert-basic",27),e(60,"div",28),p(),e(61,"p"),n(62,"The simplest usage for short messages."),t(),s(),t()(),e(63,"nz-code-box",29),o(64,"nz-demo-alert-closable",27),e(65,"div",28),p(),e(66,"p"),n(67,"To show close button."),t(),s(),t()(),e(68,"nz-code-box",30),o(69,"nz-demo-alert-icon",27),e(70,"div",28),p(),e(71,"p"),n(72,"Decent icon make information more clear and more friendly."),t(),s(),t()(),e(73,"nz-code-box",31),o(74,"nz-demo-alert-banner",27),e(75,"div",28),p(),e(76,"p"),n(77,"Display Alert as a banner at top of page."),t(),s(),t()(),e(78,"nz-code-box",32),o(79,"nz-demo-alert-custom-icon",27),e(80,"div",28),p(),e(81,"p"),n(82,"Make information more clear and more friendly and meet customized needs."),t(),s(),t()()(),e(83,"div",25)(84,"nz-code-box",33),o(85,"nz-demo-alert-style",27),e(86,"div",28),p(),e(87,"p"),n(88,"There are 4 types of Alert: "),e(89,"code"),n(90,"success"),t(),n(91,", "),e(92,"code"),n(93,"info"),t(),n(94,", "),e(95,"code"),n(96,"warning"),t(),n(97,", "),e(98,"code"),n(99,"error"),t(),n(100,"."),t(),s(),t()(),e(101,"nz-code-box",34),o(102,"nz-demo-alert-description",27),e(103,"div",28),p(),e(104,"p"),n(105,"Additional description for alert message."),t(),s(),t()(),e(106,"nz-code-box",35),o(107,"nz-demo-alert-close-text",27),e(108,"div",28),p(),e(109,"p"),n(110,"Replace the default icon with customized content."),t(),s(),t()(),e(111,"nz-code-box",36),o(112,"nz-demo-alert-action",27),e(113,"div",28),p(),e(114,"p"),n(115,"Custom action."),t(),s(),t()()()(),e(116,"section",37),p(),e(117,"h2",38)(118,"span"),n(119,"API"),t(),e(120,"a",39),n(121,"#"),t()(),e(122,"h3",40)(123,"span"),n(124,"nz-alert"),t(),e(125,"label",41),n(126,"component"),t(),e(127,"a",42),n(128,"#"),t()(),e(129,"table")(130,"thead")(131,"tr")(132,"th"),n(133,"Property"),t(),e(134,"th"),n(135,"Description"),t(),e(136,"th"),n(137,"Type"),t(),e(138,"th"),n(139,"Default"),t(),e(140,"th"),n(141,"Global Config"),t()()(),e(142,"tbody")(143,"tr")(144,"td")(145,"code"),n(146,"[nzBanner]"),t()(),e(147,"td"),n(148,"Whether to show as banner"),t(),e(149,"td")(150,"code"),n(151,"boolean"),t()(),e(152,"td")(153,"code"),n(154,"false"),t()(),o(155,"td"),t(),e(156,"tr")(157,"td")(158,"code"),n(159,"[nzAction]"),t()(),e(160,"td"),n(161,"Customized alert's action"),t(),e(162,"td")(163,"code"),n(164,"string | TemplateRef<void>"),t()(),e(165,"td"),n(166,"-"),t(),o(167,"td"),t(),e(168,"tr")(169,"td")(170,"code"),n(171,"[nzCloseable]"),t()(),e(172,"td"),n(173,"Whether Alert can be closed"),t(),e(174,"td")(175,"code"),n(176,"boolean"),t()(),e(177,"td"),n(178,"-"),t(),e(179,"td"),n(180,"\u2705"),t()(),e(181,"tr")(182,"td")(183,"code"),n(184,"[nzCloseText]"),t()(),e(185,"td"),n(186,"Close text to show"),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,"[nzDescription]"),t()(),e(197,"td"),n(198,"Additional content of Alert"),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,"[nzMessage]"),t()(),e(209,"td"),n(210,"Content of Alert"),t(),e(211,"td")(212,"code"),n(213,"string | TemplateRef<void>"),t()(),e(214,"td"),n(215,"-"),t(),o(216,"td"),t(),e(217,"tr")(218,"td")(219,"code"),n(220,"[nzShowIcon]"),t()(),e(221,"td"),n(222,"Whether to show icon, in "),e(223,"code"),n(224,"nzBanner"),t(),n(225," mode default is "),e(226,"code"),n(227,"true"),t()(),e(228,"td")(229,"code"),n(230,"boolean"),t()(),e(231,"td")(232,"code"),n(233,"false"),t()(),e(234,"td"),n(235,"\u2705"),t()(),e(236,"tr")(237,"td")(238,"code"),n(239,"[nzIconType]"),t()(),e(240,"td"),n(241,"Icon type, effective when "),e(242,"code"),n(243,"nzShowIcon"),t(),n(244," is "),e(245,"code"),n(246,"true"),t()(),e(247,"td")(248,"code"),n(249,"string"),t()(),e(250,"td"),n(251,"-"),t(),o(252,"td"),t(),e(253,"tr")(254,"td")(255,"code"),n(256,"[nzType]"),t()(),e(257,"td"),n(258,"Type of Alert styles, in "),e(259,"code"),n(260,"nzBanner"),t(),n(261," mode default is "),e(262,"code"),n(263,"'warning'"),t()(),e(264,"td")(265,"code"),n(266,"'success' | 'info' | 'warning' | 'error'"),t()(),e(267,"td")(268,"code"),n(269,"'info'"),t()(),o(270,"td"),t(),e(271,"tr")(272,"td")(273,"code"),n(274,"[nzIcon]"),t()(),e(275,"td"),n(276,"Custom icon, effective when showIcon is true"),t(),e(277,"td")(278,"code"),n(279,"string | TemplateRef<void>"),t()(),e(280,"td"),n(281,"-"),t(),o(282,"td"),t(),e(283,"tr")(284,"td")(285,"code"),n(286,"(nzOnClose)"),t()(),e(287,"td"),n(288,"Callback when Alert is closed"),t(),e(289,"td")(290,"code"),n(291,"EventEmitter<void>"),t()(),e(292,"td"),n(293,"-"),t(),o(294,"td"),t()()(),s(),t()()),i&2&&(a(),m("nzOffsetTop",16),a(),m("nzAffix",!1),a(54),m("nzGutter",16),a(),m("nzXl",12)("nzSpan",24),a(),m("nzId","components-alert-demo-basic")("nzLink","components-alert-demo-basic")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/basic.md"),a(5),m("nzId","components-alert-demo-closable")("nzLink","components-alert-demo-closable")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/closable.md"),a(5),m("nzId","components-alert-demo-icon")("nzLink","components-alert-demo-icon")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/icon.md"),a(5),m("nzId","components-alert-demo-banner")("nzLink","components-alert-demo-banner")("nzIframe",!0)("nzIframeHeight",220)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/banner.md"),a(5),m("nzId","components-alert-demo-custom-icon")("nzLink","components-alert-demo-custom-icon")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/custom-icon.md"),a(5),m("nzXl",12)("nzSpan",24),a(),m("nzId","components-alert-demo-style")("nzLink","components-alert-demo-style")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/style.md"),a(17),m("nzId","components-alert-demo-description")("nzLink","components-alert-demo-description")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/description.md"),a(5),m("nzId","components-alert-demo-close-text")("nzLink","components-alert-demo-close-text")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/close-text.md"),a(5),m("nzId","components-alert-demo-action")("nzLink","components-alert-demo-action")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/alert/demo/action.md"))},dependencies:[q,D,X,U,Q,V,P,W,Z,y,B,_,v,F,w,k,H,M],encapsulation:2})};var be=[{path:"en",component:j},{path:"zh",component:$}],St=be;export{St as default};