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