PageSourceSearch

https://preview-8230-ng-zorro-antd.surge.sh/7034.2972fc0e63e2c7f6.js

js preview-8230-ng-zorro-antd.surge.sh collected 2026-10-03 14:58:56 UTC 60,809 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkng_zorro_antd_doc=self.webpackChunkng_zorro_antd_doc||[]).push([[7034],{7034:(L,F,r)=>{r.r(F),r.d(F,{NzDemoButtonModule:()=>N});var i=r(4190),q=r(6242),l=r(4119),b=r(266),A=r(7225),p=r(227);const m=[l.sL,b.b1,A.aF,p.PV];var _=r(379),n=r(9212),h=r(5393),D=r(8101),U=r(3185),E=r(8332),g=r(1687),Z=r(2987);let C=(()=>{class t{static#n=this.\u0275fac=function(e){return new(e||t)};static#t=this.\u0275cmp=n.Xpm({type:t,selectors:[["nz-demo-button-basic"]],decls:10,vars:0,consts:[["nz-button","","nzType","primary"],["nz-button","","nzType","default"],["nz-button","","nzType","dashed"],["nz-button","","nzType","text"],["nz-button","","nzType","link"]],template:function(e,d){1&e&&(n.TgZ(0,"button",0),n._uU(1,"Primary Button"),n.qZA(),n.TgZ(2,"button",1),n._uU(3,"Default Button"),n.qZA(),n.TgZ(4,"button",2),n._uU(5,"Dashed Button"),n.qZA(),n.TgZ(6,"button",3),n._uU(7,"Text Button"),n.qZA(),n.TgZ(8,"a",4),n._uU(9,"Link Button"),n.qZA())},dependencies:[l.ix,g.w,Z.dQ],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}"]})}return t})(),f=(()=>{class t{static#n=this.\u0275fac=function(e){return new(e||t)};static#t=this.\u0275cmp=n.Xpm({type:t,selectors:[["nz-demo-button-block"]],decls:10,vars:0,consts:[["nz-button","","nzType","primary","nzBlock",""],["nz-button","","nzType","default","nzBlock",""],["nz-button","","nzType","dashed","nzBlock",""],["nz-button","","nzType","text","nzBlock",""],["nz-button","","nzType","link","nzBlock",""]],template:function(e,d){1&e&&(n.TgZ(0,"button",0),n._uU(1,"Primary"),n.qZA(),n.TgZ(2,"button",1),n._uU(3,"Default"),n.qZA(),n.TgZ(4,"button",2),n._uU(5,"Dashed"),n.qZA(),n.TgZ(6,"button",3),n._uU(7,"Text"),n.qZA(),n.TgZ(8,"a",4),n._uU(9,"Link"),n.qZA())},dependencies:[l.ix,g.w,Z.dQ],styles:["[nz-button][_ngcontent-%COMP%]{margin-bottom:12px}"]})}return t})(),y=(()=>{class t{static#n=this.\u0275fac=function(e){return new(e||t)};static#t=this.\u0275cmp=n.Xpm({type:t,selectors:[["nz-demo-button-button-group"]],decls:37,vars:0,consts:[["nz-button",""],["nz-button","","nzType","primary"],["nz-button","","nzType","default","disabled",""],["nz-button","","nzType","primary","disabled",""],["nz-button","","nzType","default"],["nz-button","","nzType","dashed","disabled",""],["nz-icon","","nzType","left"],["nz-icon","","nzType","right"],["nz-icon","","nzType","cloud"],["nz-icon","","nzType","cloud-download"]],template:function(e,d){1&e&&(n.TgZ(0,"h4"),n._uU(1,"Basic"),n.qZA(),n.TgZ(2,"nz-button-group")(3,"button",0),n._uU(4,"Cancel"),n.qZA(),n.TgZ(5,"button",1),n._uU(6,"OK"),n.qZA()(),n.TgZ(7,"nz-button-group")(8,"button",2),n._uU(9,"L"),n.qZA(),n.TgZ(10,"button",2),n._uU(11,"M"),n.qZA(),n.TgZ(12,"button",2),n._uU(13,"R"),n.qZA()(),n.TgZ(14,"nz-button-group")(15,"button",3),n._uU(16,"L"),n.qZA(),n.TgZ(17,"button",2),n._uU(18,"M"),n.qZA(),n.TgZ(19,"button",4),n._uU(20,"M"),n.qZA(),n.TgZ(21,"button",5),n._uU(22,"R"),n.qZA()(),n.TgZ(23,"h4"),n._uU(24,"With Icon"),n.qZA(),n.TgZ(25,"nz-button-group")(26,"button",1),n._UZ(27,"span",6),n._uU(28," Go back "),n.qZA(),n.TgZ(29,"button",1),n._uU(30," Go forward "),n._UZ(31,"span",7),n.qZA()(),n.TgZ(32,"nz-button-group")(33,"button",1),n._UZ(34,"span",8),n.qZA(),n.TgZ(35,"button",1),n._UZ(36,"span",9),n.qZA()())},dependencies:[p.Ls,l.ix,l.fY,g.w,Z.dQ],styles:["h4[_ngcontent-%COMP%]{margin:16px 0;font-size:14px;line-height:1;font-weight:400}h4[_ngcontent-%COMP%]:first-child{margin-top:0}[nz-button][_ngcontent-%COMP%]{margin-bottom:12px}nz-button-group[_ngcontent-%COMP%]{margin-bottom:8px;margin-right:8px}"]})}return t})(),k=(()=>{class t{static#n=this.\u0275fac=function(e){return new(e||t)};static#t=this.\u0275cmp=n.Xpm({type:t,selectors:[["nz-demo-button-danger"]],decls:10,vars:0,consts:[["nz-button","","nzType","primary","nzDanger",""],["nz-button","","nzType","default","nzDanger",""],["nz-button","","nzType","dashed","nzDanger",""],["nz-button","","nzType","text","nzDanger",""],["nz-button","","nzType","link","nzDanger",""]],template:function(e,d){1&e&&(n.TgZ(0,"button",0),n._uU(1,"Primary"),n.qZA(),n.TgZ(2,"button",1),n._uU(3,"Default"),n.qZA(),n.TgZ(4,"button",2),n._uU(5,"Dashed"),n.qZA(),n.TgZ(6,"button",3),n._uU(7,"Text"),n.qZA(),n.TgZ(8,"a",4),n._uU(9,"Link"),n.qZA())},dependencies:[l.ix,g.w,Z.dQ],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}"]})}return t})(),x=(()=>{class t{static#n=this.\u0275fac=function(e){return new(e||t)};static#t=this.\u0275cmp=n.Xpm({type:t,selectors:[["nz-demo-button-disabled"]],decls:44,vars:0,consts:[["nz-button","","nzType","primary"],["nz-button","","nzType","primary","disabled",""],["nz-button","","nzType","default"],["nz-button","","nzType","default","disabled",""],["nz-button","","nzType","dashed"],["nz-button","","nzType","dashed","disabled",""],["nz-button","","nzType","text"],["nz-button","","nzType","text","disabled",""],["nz-button","","nzType","link"],["nz-button","","nzType","link","disabled",""],["nz-button","","nzType","text","nzDanger",""],["nz-button","","nzType","text","disabled","","nzDanger",""],["nz-button","","nzType","link","nzDanger",""],["nz-button","","nzType","link","disabled","","nzDanger",""],["nz-button","","nzType","default","nzDanger",""],["nz-button","","nzType","default","disabled","","nzDanger",""],[2,"padding","8px 8px 0px","background","rgb(190, 200, 200)"],["nz-button","","nzGhost",""],["nz-button","","nzGhost","","disabled",""]],template:function(e,d){1&e&&(n.TgZ(0,"button",0),n._uU(1,"Primary"),n.qZA(),n.TgZ(2,"button",1),n._uU(3,"Primary(disabled)"),n.qZA(),n._UZ(4,"br"),n.TgZ(5,"button",2),n._uU(6,"Default"),n.qZA(),n.TgZ(7,"button",3),n._uU(8,"Default(disabled)"),n.qZA(),n._UZ(9,"br"),n.TgZ(10,"button",4),n._uU(11,"Dashed"),n.qZA(),n.TgZ(12,"button",5),n._uU(13,"Dashed(disabled)"),n.qZA(),n._UZ(14,"br"),n.TgZ(15,"a",6),n._uU(16,"Text"),n.qZA(),n.TgZ(17,"a",7),n._uU(18,"Text(disabled)"),n.qZA(),n._UZ(19,"br"),n.TgZ(20,"a",8),n._uU(21,"Link"),n.qZA(),n.TgZ(22,"a",9),n._uU(23,"Link(disabled)"),n.qZA(),n._UZ(24,"br"),n.TgZ(25,"a",10),n._uU(26,"Danger Text"),n.qZA(),n.TgZ(27,"a",11),n._uU(28,"Danger Text(disabled)"),n.qZA(),n._UZ(29,"br"),n.TgZ(30,"a",12),n._uU(31,"Danger Link"),n.qZA(),n.TgZ(32,"a",13),n._uU(33,"Danger Link(disabled)"),n.qZA(),n._UZ(34,"br"),n.TgZ(35,"button",14),n._uU(36,"Danger Default"),n.qZA(),n.TgZ(37,"button",15),n._uU(38,"Danger Default(disabled)"),n.qZA(),n.TgZ(39,"div",16)(40,"button",17),n._uU(41,"Ghost"),n.qZA(),n.TgZ(42,"button",18),n._uU(43,"Ghost(disabled)"),n.qZA()())},dependencies:[l.ix,g.w,Z.dQ],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}"]})}return t})(),s=(()=>{class t{static#n=this.\u0275fac=function(e){return new(e||t)};static#t=this.\u0275cmp=n.Xpm({type:t,selectors:[["nz-demo-button-ghost"]],decls:9,vars:0,consts:[[2,"background","rgb(190, 200, 200)","padding","26px 16px 16px"],["nz-button","","nzType","primary","nzGhost",""],["nz-button","","nzType","default","nzGhost",""],["nz-button","","nzType","dashed","nzGhost",""],["nz-button","","nzType","link","nzGhost",""]],template:function(e,d){1&e&&(n.TgZ(0,"div",0)(1,"button",1),n._uU(2,"Primary"),n.qZA(),n.TgZ(3,"button",2),n._uU(4,"Default"),n.qZA(),n.TgZ(5,"button",3),n._uU(6,"Dashed"),n.qZA(),n.TgZ(7,"a",4),n._uU(8,"Link"),n.qZA()())},dependencies:[l.ix,g.w,Z.dQ],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}"]})}return t})(),R=(()=>{class t{static#n=this.\u0275fac=function(e){return new(e||t)};static#t=this.\u0275cmp=n.Xpm({type:t,selectors:[["nz-demo-button-icon"]],decls:23,vars:0,consts:[["nz-button","","nzType","primary","nzShape","circle"],["nz-icon","","nzType","search"],["nz-button","","nzType","primary"],["nz-button","","nzType","default","nzShape","circle"],["nz-button","","nzType","default"],["nz-button","","nzType","dashed","nzShape","circle"],["nz-button","","nzType","dashed"]],template:function(e,d){1&e&&(n.TgZ(0,"button",0),n._UZ(1,"span",1),n.qZA(),n.TgZ(2,"button",0),n._uU(3,"A"),n.qZA(),n.TgZ(4,"button",2),n._UZ(5,"span",1),n._uU(6," Search "),n.qZA(),n.TgZ(7,"button",3),n._UZ(8,"span",1),n.qZA(),n.TgZ(9,"button",4),n._UZ(10,"span",1),n._uU(11," Search "),n.qZA(),n._UZ(12,"br"),n.TgZ(13,"button",3),n._UZ(14,"span",1),n.qZA(),n.TgZ(15,"button",4),n._UZ(16,"span",1),n._uU(17," Search "),n.qZA(),n.TgZ(18,"button",5),n._UZ(19,"span",1),n.qZA(),n.TgZ(20,"button",6),n._UZ(21,"span",1),n._uU(22," Search "),n.qZA())},dependencies:[p.Ls,l.ix,g.w,Z.dQ],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}"]})}return t})(),o=(()=>{class t{constructor(){this.isLoadingOne=!1,this.isLoadingTwo=!1}loadOne(){this.isLoadingOne=!0,setTimeout(()=>{this.isLoadingOne=!1},5e3)}loadTwo(){this.isLoadingTwo=!0,setTimeout(()=>{this.isLoadingTwo=!1},5e3)}static#n=this.\u0275fac=function(e){return new(e||t)};static#t=this.\u0275cmp=n.Xpm({type:t,selectors:[["nz-demo-button-loading"]],decls:14,vars:2,consts:[["nz-button","","nzType","primary","nzLoading",""],["nz-icon","","nzType","poweroff"],["nz-button","","nzType","primary","nzSize","small","nzLoading",""],["nz-button","","nzType","primary",3,"nzLoading","click"],["nz-button","","nzLoading","","nzShape","circle"],["nz-button","","nzLoading","","nzType","primary","nzShape","circle"]],template:function(e,d){1&e&&(n.TgZ(0,"button",0),n._UZ(1,"span",1),n._uU(2," Loading "),n.qZA(),n.TgZ(3,"button",2),n._uU(4,"Loading"),n.qZA(),n._UZ(5,"br"),n.TgZ(6,"button",3),n.NdJ("
1click",function(){return d.loadOne()}),n._uU(7,"Click me!"),n.qZA(),n.TgZ(8,"button",3),n.NdJ("click",function(){return d.loadTwo()}),n._UZ(9,"span",1),n._uU(10," Click me! "),n.qZA(),n._UZ(11,"br")(12,"button",4)(13,"button",5)),2&e&&(n.xp6(6),n.Q6J("nzLoading",d.isLoadingOne),n.xp6(2),n.Q6J("nzLoading",d.isLoadingTwo))},dependencies:[p.Ls,l.ix,g.w,Z.dQ],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}"]})}return t})();var z=r(6869);let u=(()=>{class t{static#n=this.\u0275fac=function(e){return new(e||t)};static#t=this.\u0275cmp=n.Xpm({type:t,selectors:[["nz-demo-button-multiple"]],decls:19,vars:1,consts:[["nz-button","","nzType","primary"],["nz-button","","nzType","default"],["nz-button","","nz-dropdown","",3,"nzDropdownMenu"],["nz-icon","","nzType","down"],["menu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item",""]],template:function(e,d){if(1&e&&(n.TgZ(0,"button",0),n._uU(1,"primary"),n.qZA(),n.TgZ(2,"button",1),n._uU(3,"secondary"),n.qZA(),n.TgZ(4,"button",2),n._uU(5," Actions "),n._UZ(6,"span",3),n.qZA(),n.TgZ(7,"nz-dropdown-menu",null,4)(9,"ul",5)(10,"li",6)(11,"a"),n._uU(12,"1st item"),n.qZA()(),n.TgZ(13,"li",6)(14,"a"),n._uU(15,"2nd item"),n.qZA()(),n.TgZ(16,"li",6)(17,"a"),n._uU(18,"3rd item"),n.qZA()()()()),2&e){const c=n.MAs(8);n.xp6(4),n.Q6J("nzDropdownMenu",c)}},dependencies:[p.Ls,l.ix,g.w,Z.dQ,z.wO,z.u9,b.cm,b.RR,b.wA],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}"]})}return t})();var T=r(6223);let I=(()=>{class t{constructor(){this.size="large"}static#n=this.\u0275fac=function(e){return new(e||t)};static#t=this.\u0275cmp=n.Xpm({type:t,selectors:[["nz-demo-button-size"]],decls:38,vars:11,consts:[[3,"ngModel","ngModelChange"],["nz-radio-button","","nzValue","large"],["nz-radio-button","","nzValue","default"],["nz-radio-button","","nzValue","small"],["nz-button","","nzType","primary",3,"nzSize"],["nz-button","","nzType","default",3,"nzSize"],["nz-button","","nzType","dashed",3,"nzSize"],["nz-button","","nzType","link",3,"nzSize"],["nz-icon","","nzType","download"],["nz-button","","nzType","primary","nzShape","circle",3,"nzSize"],["nz-button","","nzType","primary","nzShape","round",3,"nzSize"],[3,"nzSize"],["nz-button","","nzType","primary"],["nz-icon","","nzType","left"],["nz-icon","","nzType","right"]],template:function(e,d){1&e&&(n.TgZ(0,"nz-radio-group",0),n.NdJ("ngModelChange",function(B){return d.size=B}),n.TgZ(1,"label",1),n._uU(2,"Large"),n.qZA(),n.TgZ(3,"label",2),n._uU(4,"Default"),n.qZA(),n.TgZ(5,"label",3),n._uU(6,"Small"),n.qZA()(),n._UZ(7,"br")(8,"br"),n.TgZ(9,"button",4),n._uU(10,"Primary"),n.qZA(),n.TgZ(11,"button",5),n._uU(12,"Default"),n.qZA(),n.TgZ(13,"button",6),n._uU(14,"Dashed"),n.qZA(),n.TgZ(15,"a",7),n._uU(16,"Link"),n.qZA(),n._UZ(17,"br"),n.TgZ(18,"button",4),n._UZ(19,"span",8),n.qZA(),n.TgZ(20,"button",9),n._UZ(21,"span",8),n.qZA(),n.TgZ(22,"button",10),n._UZ(23,"span",8),n.qZA(),n.TgZ(24,"button",10),n._UZ(25,"span",8),n._uU(26," Download "),n.qZA(),n.TgZ(27,"button",4),n._UZ(28,"span",8),n._uU(29," Download "),n.qZA(),n._UZ(30,"br"),n.TgZ(31,"nz-button-group",11)(32,"button",12),n._UZ(33,"span",13),n._uU(34," Backward "),n.qZA(),n.TgZ(35,"button",12),n._uU(36," Forward "),n._UZ(37,"span",14),n.qZA()()),2&e&&(n.Q6J("ngModel",d.size),n.xp6(9),n.Q6J("nzSize",d.size),n.xp6(2),n.Q6J("nzSize",d.size),n.xp6(2),n.Q6J("nzSize",d.size),n.xp6(2),n.Q6J("nzSize",d.size),n.xp6(3),n.Q6J("nzSize",d.size),n.xp6(2),n.Q6J("nzSize",d.size),n.xp6(2),n.Q6J("nzSize",d.size),n.xp6(2),n.Q6J("nzSize",d.size),n.xp6(3),n.Q6J("nzSize",d.size),n.xp6(4),n.Q6J("nzSize",d.size))},dependencies:[T.JJ,T.On,p.Ls,l.ix,l.fY,g.w,Z.dQ,A.Of,A.Bq,A.Dg],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}nz-button-group[_ngcontent-%COMP%]   [nz-button][_ngcontent-%COMP%]{margin-right:0}"]})}return t})(),S=(()=>{class t{constructor(){this.expanded=!1}goLink(a){window&&(window.location.hash=a)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(a=>{a.nzExpanded=this.expanded,a.expandCode(this.expanded),a.check()})}static#n=this.\u0275fac=function(e){return new(e||t)};static#t=this.\u0275cmp=n.Xpm({type:t,selectors:[["nz-demo-button"]],viewQuery:function(e,d){if(1&e&&n.Gf(_.G,5),2&e){let c;n.iGM(c=n.CRH())&&(d.codeBoxes=c)}},decls:401,vars:47,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzAffix","nzClick"],["nzHref","#components-button-demo-basic","nzTitle","\u6309\u94ae\u7c7b\u578b"],["nzHref","#components-button-demo-icon","nzTitle","\u56fe\u6807\u6309\u94ae"],["nzHref","#components-button-demo-size","nzTitle","\u6309\u94ae\u5c3a\u5bf8"],["nzHref","#components-button-demo-disabled","nzTitle","\u4e0d\u53ef\u7528\u72b6\u6001"],["nzHref","#components-button-demo-loading","nzTitle","\u52a0\u8f7d\u4e2d\u72b6\u6001"],["nzHref","#components-button-demo-multiple","nzTitle","\u591a\u4e2a\u6309\u94ae\u7ec4\u5408"],["nzHref","#components-button-demo-button-group","nzTitle","\u6309\u94ae\u7ec4\u5408"],["nzHref","#components-button-demo-ghost","nzTitle","\u5e7d\u7075\u6309\u94ae"],["nzHref","#components-button-demo-block","nzTitle","Block \u6309\u94ae"],["nzHref","#components-button-demo-danger","nzTitle","\u5371\u9669\u6309\u94ae"],["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/button/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","\u6309\u94ae\u7c7b\u578b","nzSelector","nz-demo-button-basic","nzGenerateCommand","ng g ng-zorro-antd:button-basic <name>","nzComponentName","NzDemoButtonBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","\u6309\u94ae\u5c3a\u5bf8","nzSelector","nz-demo-button-size","nzGenerateCommand","ng g ng-zorro-antd:button-size <name>","nzComponentName","NzDemoButtonSizeComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u52a0\u8f7d\u4e2d\u72b6\u6001","nzSelector","nz-demo-button-loading","nzGenerateCommand","ng g ng-zorro-antd:button-loading <name>","nzComponentName","NzDemoButtonLoadingComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u6309\u94ae\u7ec4\u5408","nzSelector","nz-demo-button-button-group","nzGenerateCommand","ng g ng-zorro-antd:button-button-group <name>","nzComponentName","NzDemoButtonButtonGroupComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Block \u6309\u94ae","nzSelector","nz-demo-button-block","nzGenerateCommand","ng g ng-zorro-antd:button-block <name>","nzComponentName","NzDemoButtonBlockComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u56fe\u6807\u6309\u94ae","nzSelector","nz-demo-button-icon","nzGenerateCommand","ng g ng-zorro-antd:button-icon <name>","nzComponentName","NzDemoButtonIconComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u4e0d\u53ef\u7528\u72b6\u6001","nzSelector","nz-demo-button-disabled","nzGenerateCommand","ng g ng-zorro-antd:button-disabled <name>","nzComponentName","NzDemoButtonDisabledComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u591a\u4e2a\u6309\u94ae\u7ec4\u5408","nzSelector","nz-demo-button-multiple","nzGenerateCommand","ng g ng-zorro-antd:button-multiple <name>","nzComponentName","NzDemoButtonMultipleComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u5e7d\u7075\u6309\u94ae","nzSelector","nz-demo-button-ghost","nzGenerateCommand","ng g ng-zorro-antd:button-ghost <name>","nzComponentName","NzDemoButtonGhostComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u5371\u9669\u6309\u94ae","nzSelector","nz-demo-button-danger","nzGenerateCommand","ng g ng-zorro-antd:button-danger <name>","nzComponentName","NzDemoButtonDangerComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","[nz-button]"],[1,"api-type-label","directive"],["onclick","window.location.hash = '[nz-button]'",1,"anchor"],["href","https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/button","target","_blank","rel","noopener"],["id","nz-button-group"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-button-group'",1,"anchor"]],template:function(e,d){1&e&&(n.TgZ(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),n.NdJ("nzClick",function(B){return d.goLink(B)}),n._UZ(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),n.qZA()(),n.TgZ(14,"section",13)(15,"h1"),n._uU(16,"Button"),n.TgZ(17,"span",14),n._uU(18,"\u6309\u94ae"),n.qZA(),n._UZ(19,"span",15),n.TgZ(20,"a",16),n._UZ(21,"span",17),n.qZA()(),n.TgZ(22,"section",13),n.IAx(),n.TgZ(23,"p"),n._uU(24,"\u6309\u94ae\u7528\u4e8e\u5f00\u59cb\u4e00\u4e2a\u5373\u65f6\u64cd\u4f5c\u3002"),n.qZA(),n.TgZ(25,"h2",18)(26,"span"),n._uU(27,"\u4f55\u65f6\u4f7f\u7528"),n.qZA(),n.TgZ(28,"a",19),n._uU(29,"#"),n.qZA()(),n.TgZ(30,"p"),n._uU(31,"\u6807\u8bb0\u4e86\u4e00\u4e2a\uff08\u6216\u5c01\u88c5\u4e00\u7ec4\uff09\u64cd\u4f5c\u547d\u4ee4\uff0c\u54cd\u5e94\u7528\u6237\u70b9\u51fb\u884c\u4e3a\uff0c\u89e6\u53d1\u76f8\u5e94\u7684\u4e1a\u52a1\u903b\u8f91\u3002"),n.qZA(),n.TgZ(32,"p"),n._uU(33,"\u5728 Ant Design \u4e2d\uff0c\u6211\u4eec\u6709\u56db\u79cd\u6309\u94ae\u3002"),n.qZA(),n.TgZ(34,"ul")(35,"li"),n._uU(36,"\u4e3b\u6309\u94ae\uff1a\u7528\u4e8e\u4e3b\u884c\u52a8\u70b9\uff0c\u4e00\u4e2a\u64cd\u4f5c\u533a\u57df\u53ea\u80fd\u6709\u4e00\u4e2a\u4e3b\u6309\u94ae\u3002"),n.qZA(),n.TgZ(37,"li"),n._uU(38,"\u9ed8\u8ba4\u6309\u94ae\uff1a\u7528\u4e8e\u6ca1\u6709\u4e3b\u6b21\u4e4b\u5206\u7684\u4e00\u7ec4\u884c\u52a8\u70b9\u3002"),n.qZA(),n.TgZ(39,"li"),n._uU(40,"\u865a\u7ebf\u6309\u94ae\uff1a\u5e38\u7528\u4e8e\u6dfb\u52a0\u64cd\u4f5c\u3002"),n.qZA(),n.TgZ(41,"li"),n._uU(42,"\u6587\u672c\u6309\u94ae\uff1a\u7528\u4e8e\u6700\u6b21\u7ea7\u7684\u884c\u52a8\u70b9\u3002"),n.qZA(),n.TgZ(43,"li"),n._uU(44,"\u94fe\u63a5\u6309\u94ae\uff1a\u7528\u4e8e\u6b21\u8981\u6216\u5916\u94fe\u7684\u884c\u52a8\u70b9\u3002"),n.qZA()(),n.TgZ(45,"p"),n._uU(46,"\u4ee5\u53ca\u56db\u79cd\u72b6\u6001\u5c5e\u6027\u4e0e\u4e0a\u9762\u914d\u5408\u4f7f\u7528\u3002"),n.qZA(),n.TgZ(47,"ul")(48,"li"),n._uU(49,"\u5371\u9669\uff1a\u5220\u9664/\u79fb\u52a8/\u4fee\u6539\u6743\u9650\u7b49\u5371\u9669\u64cd\u4f5c\uff0c\u4e00\u822c\u9700\u8981\u4e8c\u6b21\u786e\u8ba4\u3002"),n.qZA(),n.TgZ(50,"li"),n._uU(51,"\u5e7d\u7075\uff1a\u7528\u4e8e\u80cc\u666f\u8272\u6bd4\u8f83\u590d\u6742\u7684\u5730\u65b9\uff0c\u5e38\u7528\u5728\u9996\u9875/\u4ea7\u54c1\u9875\u7b49\u5c55\u793a\u573a\u666f\u3002"),n.qZA(),n.TgZ(52,"li"),n._uU(53,"\u7981\u7528\uff1a\u884c\u52a8\u70b9\u4e0d\u53ef\u7528\u7684\u65f6\u5019\uff0c\u4e00\u822c\u9700\u8981\u6587\u6848\u89e3\u91ca\u3002"),n.qZA(),n.TgZ(54,"li"),n._uU(55,"\u52a0\u8f7d\u4e2d\uff1a\u7528\u4e8e\u5f02\u6b65\u64cd\u4f5c\u7b49\u5f85\u53cd\u9988\u7684\u65f6\u5019\uff0c\u4e5f\u53ef\u4ee5\u907f\u514d\u591a\u6b21\u63d0\u4ea4\u3002"),n.qZA()(),n.TgZ(56,"pre",20)(57,"code")(58,"span",21),n._uU(59,"import"),n.qZA(),n._uU(60," "),n.TgZ(61,"span",22),n._uU(62,"{"),n.qZA(),n._uU(63," NzButtonModule "),n.TgZ(64,"span",22),n._uU(65,"}"),n.qZA(),n._uU(66," "),n.TgZ(67,"span",21),n._uU(68,"from"),n.qZA(),n._uU(69," "),n.TgZ(70,"span",23),n._uU(71,"'ng-zorro-antd/button'"),n.qZA(),n.TgZ(72,"span",22),n._uU(73,";"),n.qZA()()(),n.fQ9(),n.qZA(),n.TgZ(74,"h2")(75,"span"),n._uU(76,"\u4ee3\u7801\u6f14\u793a"),n.qZA(),n.TgZ(77,"span",24),n.NdJ("
1click",function(){return d.expandAllCode()}),n.qZA()()(),n.TgZ(78,"div",25)(79,"div",26)(80,"nz-code-box",27),n._UZ(81,"nz-demo-button-basic",28),n.TgZ(82,"div",29),n.IAx(),n.TgZ(83,"p"),n._uU(84,"\u6309\u94ae\u6709\u4e94\u79cd\u7c7b\u578b\uff1a\u4e3b\u6309\u94ae\u3001\u6b21\u6309\u94ae\u3001\u865a\u7ebf\u6309\u94ae\u3001\u6587\u672c\u6309\u94ae\u548c\u94fe\u63a5\u6309\u94ae\u3002\u4e3b\u6309\u94ae\u5728\u540c\u4e00\u4e2a\u64cd\u4f5c\u533a\u57df\u6700\u591a\u51fa\u73b0\u4e00\u6b21\u3002"),n.qZA(),n.fQ9(),n.qZA()(),n.TgZ(85,"nz-code-box",30),n._UZ(86,"nz-demo-button-size",28),n.TgZ(87,"div",29),n.IAx(),n.TgZ(88,"p"),n._uU(89,"\u6309\u94ae\u6709\u5927\u3001\u4e2d\u3001\u5c0f\u4e09\u79cd\u5c3a\u5bf8\u3002"),n.qZA(),n.TgZ(90,"p"),n._uU(91,"\u901a\u8fc7\u8bbe\u7f6e "),n.TgZ(92,"code"),n._uU(93,"nzSize"),n.qZA(),n._uU(94," \u4e3a "),n.TgZ(95,"code"),n._uU(96,"large"),n.qZA(),n.TgZ(97,"code"),n._uU(98,"small"),n.qZA(),n._uU(99," \u5206\u522b\u628a\u6309\u94ae\u8bbe\u4e3a\u5927\u3001\u5c0f\u5c3a\u5bf8\u3002\u82e5\u4e0d\u8bbe\u7f6e "),n.TgZ(100,"code"),n._uU(101,"nzSize"),n.qZA(),n._uU(102,"\uff0c\u5219\u5c3a\u5bf8\u4e3a\u4e2d\u3002"),n.qZA(),n.fQ9(),n.qZA()(),n.TgZ(103,"nz-code-box",31),n._UZ(104,"nz-demo-button-loading",28),n.TgZ(105,"div",29),n.IAx(),n.TgZ(106,"p"),n._uU(107,"\u6dfb\u52a0 "),n.TgZ(108,"code"),n._uU(109,"nzLoading"),n.qZA(),n._uU(110," \u5c5e\u6027\u5373\u53ef\u8ba9\u6309\u94ae\u5904\u4e8e\u52a0\u8f7d\u72b6\u6001\uff0c\u6700\u540e\u4e24\u4e2a\u6309\u94ae\u6f14\u793a\u70b9\u51fb\u540e\u8fdb\u5165\u52a0\u8f7d\u72b6\u6001\u3002"),n.qZA(),n.fQ9(),n.qZA()(),n.TgZ(111,"nz-code-box",32),n._UZ(112,"nz-demo-button-button-group",28),n.TgZ(113,"div",29),n.IAx(),n.TgZ(114,"p"),n._uU(115,"\u53ef\u4ee5\u5c06\u591a\u4e2a "),n.TgZ(116,"code"),n._uU(117,"nz-button"),n.qZA(),n._uU(118," \u653e\u5165 "),n.TgZ(119,"code"),n._uU(120,"nz-button-group"),n.qZA(),n._uU(121," \u7684\u5bb9\u5668\u4e2d\u3002"),n.qZA(),n.TgZ(122,"p"),n._uU(123,"\u901a\u8fc7\u8bbe\u7f6e "),n.TgZ(124,"code"),n._uU(125,"nzSize"),n.qZA(),n._uU(126," \u4e3a "),n.TgZ(127,"code"),n._uU(128,"large"),n.qZA(),n.TgZ(129,"code"),n._uU(130,"small"),n.qZA(),n._uU(131," \u5206\u522b\u628a\u6309\u94ae\u7ec4\u5408\u8bbe\u4e3a\u5927\u3001\u5c0f\u5c3a\u5bf8\u3002\u82e5\u4e0d\u8bbe\u7f6e "),n.TgZ(132,"code"),n._uU(133,"nzSize"),n.qZA(),n._uU(134,"\uff0c\u5219\u5c3a\u5bf8\u4e3a\u4e2d\u3002"),n.qZA(),n.fQ9(),n.qZA()(),n.TgZ(135,"nz-code-box",33),n._UZ(136,"nz-demo-button-block",28),n.TgZ(137,"div",29),n.IAx(),n.TgZ(138,"p")(139,"code"),n._uU(140,"nzBlock"),n.qZA(),n._uU(141," \u5c5e\u6027\u5c06\u4f7f\u6309\u94ae\u9002\u5408\u5176\u7236\u5bbd\u5ea6\u3002"),n.qZA(),n.fQ9(),n.qZA()()(),n.TgZ(142,"div",26)(143,"nz-code-box",34),n._UZ(144,"nz-demo-button-icon",28),n.TgZ(145,"div",29),n.IAx(),n.TgZ(146,"p"),n._uU(147,"\u5f53\u9700\u8981\u5728 "),n.TgZ(148,"code"),n._uU(149,"nz-button"),n.qZA(),n._uU(150," \u5185\u5d4c\u5165\u56fe\u6807\u65f6\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728 "),n.TgZ(151,"code"),n._uU(152,"nz-button"),n.qZA(),n._uU(153," \u5185\u5d4c\u5165\u5bf9\u5e94\u7684 "),n.TgZ(154,"code"),n._uU(155,"icon"),n.qZA(),n._uU(156,"\u3002"),n.qZA(),n.fQ9(),n.qZA()(),n.TgZ(157,"nz-code-box",35),n._UZ(158,"nz-demo-button-disabled",28),n.TgZ(159,"div",29),n.IAx(),n.TgZ(160,"p"),n._uU(161,"\u6dfb\u52a0 "),n.TgZ(162,"code"),n._uU(163,"disabled"),n.qZA(),n._uU(164," \u5c5e\u6027\u5373\u53ef\u8ba9\u6309\u94ae\u5904\u4e8e\u4e0d\u53ef\u7528\u72b6\u6001\uff0c\u540c\u65f6\u6309\u94ae\u6837\u5f0f\u4e5f\u4f1a\u6539\u53d8\u3002"),n.qZA(),n.fQ9(),n.qZA()(),n.TgZ(165,"nz-code-box",36),n._UZ(166,"nz-demo-button-multiple",28),n.TgZ(167,"div",29),n.IAx(),n.TgZ(168,"p"),n._uU(169,"\u6309\u94ae\u7ec4\u5408\u4f7f\u7528\u65f6\uff0c\u63a8\u8350\u4f7f\u75281\u4e2a\u4e3b\u64cd\u4f5c + n \u4e2a\u6b21\u64cd\u4f5c\uff0c3\u4e2a\u4ee5\u4e0a\u64cd\u4f5c\u65f6\u628a\u66f4\u591a\u64cd\u4f5c\u653e\u5230 "),n.TgZ(170,"code"),n._uU(171,"nz-dropdown"),n.qZA(),n._uU(172," \u4e2d\u7ec4\u5408\u4f7f\u7528\u3002"),n.qZA(),n.fQ9(),n.qZA()(),n.TgZ(173,"nz-code-box",37),n._UZ(174,"nz-demo-button-ghost",28),n.TgZ(175,"div",29),n.IAx(),n.TgZ(176,"p"),n._uU(177,"\u6dfb\u52a0 "),n.TgZ(178,"code"),n._uU(179,"nzGhost"),n.qZA(),n._uU(180," \u5c5e\u6027\u540e\uff0c\u5e7d\u7075\u6309\u94ae\u5c06\u5176\u4ed6\u6309\u94ae\u7684\u5185\u5bb9\u53cd\u8272\uff0c\u80cc\u666f\u53d8\u4e3a\u900f\u660e\uff0c\u5e38\u7528\u5728\u6709\u8272\u80cc\u666f\u4e0a\u3002"),n.qZA(),n.fQ9(),n.qZA()(),n.TgZ(181,"nz-code-box",38),n._UZ(182,"nz-demo-button-danger",28),n.TgZ(183,"div",29),n.IAx(),n.TgZ(184,"p"),n._uU(185,"\u4f7f\u7528 "),n.TgZ(186,"code"),n._uU(187,"nzDanger"),n.qZA(),n._uU(188," \u5c06\u6309\u94ae\u6807\u8bc6\u4e3a\u5371\u9669\u72b6\u6001\u3002"),n.qZA(),n.fQ9(),n.qZA()()()(),n.TgZ(189,"section",39),n.IAx(),n.TgZ(190,"h2",40)(191,"span"),n._uU(192,"API"),n.qZA(),n.TgZ(193,"a",41),n._uU(194,"#"),n.qZA()(),n.TgZ(195,"h3",42)(196,"span"),n._uU(197,"[nz-button]"),n.qZA(),n.TgZ(198,"label",43),n._uU(199,"directive"),n.qZA(),n.TgZ(200,"a",44),n._uU(201,"#"),n.qZA()(),n.TgZ(202,"blockquote")(203,"p"),n._uU(204,"\u6ce8\u610f\uff1anz-button \u662f\u4e00\u4e2a Directive\uff0c\u9664\u4ee5\u4e0b\u8868\u683c\u4e4b\u5916\u8fd8\u652f\u6301\u4f8b\u5982 disabled \u7b49\u539f\u751f button \u7684"),n.TgZ(205,"a",45),n._uU(206,"\u6240\u6709\u5c5e\u6027"),n.qZA(),n._uU(207,"\u3002"),n.qZA()(),n.TgZ(208,"p"),n._uU(209,"\u901a\u8fc7\u8bbe\u7f6e Button \u7684\u5c5e\u6027\u6765\u4ea7\u751f\u4e0d\u540c\u7684\u6309\u94ae\u6837\u5f0f\uff0c\u63a8\u8350\u987a\u5e8f\u4e3a\uff1a"),n.TgZ(210,"code"),n._uU(211,"nzType"),n.qZA(),n._uU(212," -> "),n.TgZ(213,"code"),n._uU(214,"nzShape"),n.qZA(),n._uU(215," -> "),n.TgZ(216,"code"),n._uU(217,"nzSize"),n.qZA(),n._uU(218," -> "),n.TgZ(219,"code"),n._uU(220,"nzLoading"),n.qZA(),n._uU(221," -> "),n.TgZ(222,"code"),n._uU(223,"disabled"),n.qZA()(),n.TgZ(224,"p"),n._uU(225,"\u6309\u94ae\u7684\u5c5e\u6027\u8bf4\u660e\u5982\u4e0b\uff1a"),n.qZA(),n.TgZ(226,"table")(227,"thead")(228,"tr")(229,"th"),n._uU(230,"\u5c5e\u6027"),n.qZA(),n.TgZ(231,"th"),n._uU(232,"\u8bf4\u660e"),n.qZA(),n.TgZ(233,"th"),n._uU(234,"\u7c7b\u578b"),n.qZA(),n.TgZ(235,"th"),n._uU(236,"\u9ed8\u8ba4\u503c"),n.qZA(),n.TgZ(237,"th"),n._uU(238,"\u652f\u6301\u5168\u5c40\u914d\u7f6e"),n.qZA()()(),n.TgZ(239,"tbody")(240,"tr")(241,"td")(242,"code"),n._uU(243,"[disabled]"),n.qZA()(),n.TgZ(244,"td"),n._uU(245,"\u7981\u6b62\u4e0ebutton\u4ea4\u4e92"),n.qZA(),n.TgZ(246,"td")(247,"code"),n._uU(248,"boolean"),n.qZA()(),n.TgZ(249,"td")(250,"code"),n._uU(251,"false"),n.qZA()(),n._UZ(252,"td"),n.qZA(),n.TgZ(253,"tr")(254,"td")(255,"code"),n._uU(256,"[nzGhost]"),n.qZA()(),n.TgZ(257,"td"),n._uU(258,"\u5e7d\u7075\u5c5e\u6027\uff0c\u4f7f\u6309\u94ae\u80cc\u666f\u900f\u660e"),n.qZA(),n.TgZ(259,"td")(260,"code"),n._uU(261,"boolean"),n.qZA()(),n.TgZ(262,"td")(263,"code"),n._uU(264,"fal
1se"),n.qZA()(),n._UZ(265,"td"),n.qZA(),n.TgZ(266,"tr")(267,"td")(268,"code"),n._uU(269,"[nzLoading]"),n.qZA()(),n.TgZ(270,"td"),n._uU(271,"\u8bbe\u7f6e\u6309\u94ae\u8f7d\u5165\u72b6\u6001"),n.qZA(),n.TgZ(272,"td")(273,"code"),n._uU(274,"boolean"),n.qZA()(),n.TgZ(275,"td")(276,"code"),n._uU(277,"false"),n.qZA()(),n._UZ(278,"td"),n.qZA(),n.TgZ(279,"tr")(280,"td")(281,"code"),n._uU(282,"[nzShape]"),n.qZA()(),n.TgZ(283,"td"),n._uU(284,"\u8bbe\u7f6e\u6309\u94ae\u5f62\u72b6\uff0c\u53ef\u9009\u503c\u4e3a "),n.TgZ(285,"code"),n._uU(286,"circle"),n.qZA(),n.TgZ(287,"code"),n._uU(288,"round"),n.qZA(),n._uU(289," \u6216\u8005\u4e0d\u8bbe"),n.qZA(),n.TgZ(290,"td")(291,"code"),n._uU(292,"'circle'|'round'"),n.qZA()(),n.TgZ(293,"td"),n._uU(294,"-"),n.qZA(),n._UZ(295,"td"),n.qZA(),n.TgZ(296,"tr")(297,"td")(298,"code"),n._uU(299,"[nzSize]"),n.qZA()(),n.TgZ(300,"td"),n._uU(301,"\u8bbe\u7f6e\u6309\u94ae\u5927\u5c0f\uff0c\u53ef\u9009\u503c\u4e3a "),n.TgZ(302,"code"),n._uU(303,"small"),n.qZA(),n.TgZ(304,"code"),n._uU(305,"large"),n.qZA(),n._uU(306," \u6216\u8005\u4e0d\u8bbe"),n.qZA(),n.TgZ(307,"td")(308,"code"),n._uU(309,"'large'|'small'|'default'"),n.qZA()(),n.TgZ(310,"td")(311,"code"),n._uU(312,"'default'"),n.qZA()(),n.TgZ(313,"td"),n._uU(314,"\u2705"),n.qZA()(),n.TgZ(315,"tr")(316,"td")(317,"code"),n._uU(318,"[nzType]"),n.qZA()(),n.TgZ(319,"td"),n._uU(320,"\u8bbe\u7f6e\u6309\u94ae\u7c7b\u578b\uff0c\u53ef\u9009\u503c\u4e3a "),n.TgZ(321,"code"),n._uU(322,"primary"),n.qZA(),n.TgZ(323,"code"),n._uU(324,"dashed"),n.qZA(),n.TgZ(325,"code"),n._uU(326,"text"),n.qZA(),n.TgZ(327,"code"),n._uU(328,"link"),n.qZA(),n._uU(329," \u6216\u8005\u4e0d\u8bbe"),n.qZA(),n.TgZ(330,"td")(331,"code"),n._uU(332,"'primary'|'dashed'|'link'|'text'"),n.qZA()(),n.TgZ(333,"td"),n._uU(334,"-"),n.qZA(),n._UZ(335,"td"),n.qZA(),n.TgZ(336,"tr")(337,"td")(338,"code"),n._uU(339,"[nzBlock]"),n.qZA()(),n.TgZ(340,"td"),n._uU(341,"\u5c06\u6309\u94ae\u5bbd\u5ea6\u8c03\u6574\u4e3a\u5176\u7236\u5bbd\u5ea6\u7684\u9009\u9879"),n.qZA(),n.TgZ(342,"td")(343,"code"),n._uU(344,"boolean"),n.qZA()(),n.TgZ(345,"td")(346,"code"),n._uU(347,"false"),n.qZA()(),n._UZ(348,"td"),n.qZA(),n.TgZ(349,"tr")(350,"td")(351,"code"),n._uU(352,"[nzDanger]"),n.qZA()(),n.TgZ(353,"td"),n._uU(354,"\u8bbe\u7f6e\u5371\u9669\u6309\u94ae"),n.qZA(),n.TgZ(355,"td"),n._uU(356,"boolean"),n.qZA(),n.TgZ(357,"td")(358,"code"),n._uU(359,"false"),n.qZA()(),n._UZ(360,"td"),n.qZA()()(),n.TgZ(361,"h3",46)(362,"span"),n._uU(363,"nz-button-group"),n.qZA(),n.TgZ(364,"label",47),n._uU(365,"component"),n.qZA(),n.TgZ(366,"a",48),n._uU(367,"#"),n.qZA()(),n.TgZ(368,"table")(369,"thead")(370,"tr")(371,"th"),n._uU(372,"\u5c5e\u6027"),n.qZA(),n.TgZ(373,"th"),n._uU(374,"\u8bf4\u660e"),n.qZA(),n.TgZ(375,"th"),n._uU(376,"\u7c7b\u578b"),n.qZA(),n.TgZ(377,"th"),n._uU(378,"\u9ed8\u8ba4\u503c"),n.qZA(),n.TgZ(379,"th"),n._uU(380,"\u652f\u6301\u5168\u5c40\u914d\u7f6e"),n.qZA()()(),n.TgZ(381,"tbody")(382,"tr")(383,"td")(384,"code"),n._uU(385,"[nzSize]"),n.qZA()(),n.TgZ(386,"td"),n._uU(387,"\u8bbe\u7f6e\u6309\u94ae\u5927\u5c0f\uff0c\u53ef\u9009\u503c\u4e3a "),n.TgZ(388,"code"),n._uU(389,"small"),n.qZA(),n.TgZ(390,"code"),n._uU(391,"large"),n.qZA(),n._uU(392," \u6216\u8005\u4e0d\u8bbe"),n.qZA(),n.TgZ(393,"td")(394,"code"),n._uU(395,"'large'|'small'|'default'"),n.qZA()(),n.TgZ(396,"td")(397,"code"),n._uU(398,"'default'"),n.qZA()(),n.TgZ(399,"td"),n._uU(400,"-"),n.qZA()()()(),n.fQ9(),n.qZA()()),2&e&&(n.xp6(1),n.Q6J("nzOffsetTop",16),n.xp6(1),n.Q6J("nzAffix",!1),n.xp6(76),n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzXl",12)("nzSpan",24),n.xp6(1),n.Q6J("nzId","components-button-demo-basic")("nzLink","components-button-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/button/demo/basic.md"),n.xp6(5),n.Q6J("nzId","components-button-demo-size")("nzLink","components-button-demo-size")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/button/demo/size.md"),n.xp6(18),n.Q6J("nzId","components-button-demo-loading")("nzLink","components-button-demo-loading")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/button/demo/loading.md"),n.xp6(8),n.Q6J("nzId","components-button-demo-button-group")("nzLink","components-button-demo-button-group")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/button/demo/button-group.md"),n.xp6(24),n.Q6J("nzId","components-button-demo-block")("nzLink","components-button-demo-block")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/button/demo/block.md"),n.xp6(7),n.Q6J("nzXl",12)("nzSpan",24),n.xp6(1),n.Q6J("nzId","components-button-demo-icon")("nzLink","components-button-demo-icon")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/button/demo/icon.md"),n.xp6(14),n.Q6J("nzId","components-button-demo-disabled")("nzLink","components-button-demo-disabled")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/button/demo/disabled.md"),n.xp6(8),n.Q6J("nzId","components-button-demo-multiple")("nzLink","components-button-demo-multiple")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/button/demo/multiple.md"),n.xp6(8),n.Q6J("nzId","components-button-demo-ghost")("nzLink","components-button-demo-ghost")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/button/demo/ghost.md"),n.xp6(8),n.Q6J("nzId","components-button-demo-danger")("nzLink","components-button-demo-danger")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/button/demo/danger.md"))},dependencies:[_.G,h.IT,h.Fp,D.$,U.t3,U.SK,E.SY,p.Ls,g.w,C,f,y,k,x,s,R,o,u,I],encapsulation:2})}return t})(),v=(()=>{class t{constructor(){this.expanded=!1}goLink(a){window&&(window.location.hash=a)}
1expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(a=>{a.nzExpanded=this.expanded,a.expandCode(this.expanded),a.check()})}static#n=this.\u0275fac=function(e){return new(e||t)};static#t=this.\u0275cmp=n.Xpm({type:t,selectors:[["nz-demo-button"]],viewQuery:function(e,d){if(1&e&&n.Gf(_.G,5),2&e){let c;n.iGM(c=n.CRH())&&(d.codeBoxes=c)}},decls:430,vars:47,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzAffix","nzClick"],["nzHref","#components-button-demo-basic","nzTitle","Type"],["nzHref","#components-button-demo-icon","nzTitle","Icon"],["nzHref","#components-button-demo-size","nzTitle","Size"],["nzHref","#components-button-demo-disabled","nzTitle","Disabled"],["nzHref","#components-button-demo-loading","nzTitle","Loading"],["nzHref","#components-button-demo-multiple","nzTitle","Multiple Buttons"],["nzHref","#components-button-demo-button-group","nzTitle","Button Group"],["nzHref","#components-button-demo-ghost","nzTitle","Ghost Button"],["nzHref","#components-button-demo-block","nzTitle","Block Button"],["nzHref","#components-button-demo-danger","nzTitle","Danger Buttons"],["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/button/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","Type","nzSelector","nz-demo-button-basic","nzGenerateCommand","ng g ng-zorro-antd:button-basic <name>","nzComponentName","NzDemoButtonBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","Size","nzSelector","nz-demo-button-size","nzGenerateCommand","ng g ng-zorro-antd:button-size <name>","nzComponentName","NzDemoButtonSizeComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Loading","nzSelector","nz-demo-button-loading","nzGenerateCommand","ng g ng-zorro-antd:button-loading <name>","nzComponentName","NzDemoButtonLoadingComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Button Group","nzSelector","nz-demo-button-button-group","nzGenerateCommand","ng g ng-zorro-antd:button-button-group <name>","nzComponentName","NzDemoButtonButtonGroupComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Block Button","nzSelector","nz-demo-button-block","nzGenerateCommand","ng g ng-zorro-antd:button-block <name>","nzComponentName","NzDemoButtonBlockComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Icon","nzSelector","nz-demo-button-icon","nzGenerateCommand","ng g ng-zorro-antd:button-icon <name>","nzComponentName","NzDemoButtonIconComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Disabled","nzSelector","nz-demo-button-disabled","nzGenerateCommand","ng g ng-zorro-antd:button-disabled <name>","nzComponentName","NzDemoButtonDisabledComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Multiple Buttons","nzSelector","nz-demo-button-multiple","nzGenerateCommand","ng g ng-zorro-antd:button-multiple <name>","nzComponentName","NzDemoButtonMultipleComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Ghost Button","nzSelector","nz-demo-button-ghost","nzGenerateCommand","ng g ng-zorro-antd:button-ghost <name>","nzComponentName","NzDemoButtonGhostComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Danger Buttons","nzSelector","nz-demo-button-danger","nzGenerateCommand","ng g ng-zorro-antd:button-danger <name>","nzComponentName","NzDemoButtonDangerComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","[nz-button]"],[1,"api-type-label","directive"],["onclick","window.location.hash = '[nz-button]'",1,"anchor"],["href","https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button","target","_blank","rel","noopener"],["id","nz-button-group"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-button-group'",1,"anchor"]],template:function(e,d){1&e&&(n.TgZ(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),n.NdJ("nzClick",function(B){return d.goLink(B)}),n._UZ(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),n.qZA()(),n.TgZ(14,"section",13)(15,"h1"),n._uU(16,"Button"),n._UZ(17,"span",14)(18,"span",15),n.TgZ(19,"a",16),n._UZ(20,"span",17),n.qZA()(),n.TgZ(21,"section",13),n.IAx(),n.TgZ(22,"p"),n._uU(23,"To trigger an operation."),n.qZA(),n.TgZ(24,"h2",18)(25,"span"),n._uU(26,"When To Use"),n.qZA(),n.TgZ(27,"a",19),n._uU(28,"#"),n.qZA()(),n.TgZ(29,"p"),n._uU(30,"A button means an operation (or a series of operations). Clicking a button will trigger corresponding business logic."),n.qZA(),n.TgZ(31,"p"),n._uU(32,"In Ant Design, we provide 4 types of buttons."),n.qZA(),n.TgZ(33,"ul")(34,"li"),n._uU(35,"Primary button: indicate the main action, one primary button at most in one section."),n.qZA(),n.TgZ(36,"li"),n._uU(37,"Default button: indicate a series of actions without priority."),n.qZA(),n.TgZ(38,"li"),n._uU(39,"Dashed button: used for adding action commonly."),n.qZA(),n.TgZ(40,"li"),n._uU(41,"Text button: used for the most secondary action."),n.qZA(),n.TgZ(42,"li"),n._uU(43,"Link button: used for external links."),n.qZA()(),n.TgZ(44,"p"),n._uU(45,"And 4 other properties additionally."),n.qZA(),n.TgZ(46,"ul")(47,"li")(48,"code"),n._uU(49,"danger"),n.qZA(),n._uU(50,": used for risk actions, like deletion or authorization."),n.qZA(),n.TgZ(51,"li")(52,"code"),n._uU(53,"ghost"),n.qZA(),n._uU(54,": usually used in situations with a complex background, home pages."),n.qZA(),n.TgZ(55,"li")(56,"code"),n._uU(57,"disabled"),n.qZA(),n._uU(58,": when actions are not available."),n.qZA(),n.TgZ(59,"li")(60,"code"),n._uU(61,"loading"),n.qZA(),n._uU(62,": add loading spinner in button, avoiding multiple submit."),n.qZA()(),n.TgZ(63,"pre",20)(64,"code")(65,"span",21),n._uU(66,"import"),n.qZA(),n._uU(67," "),n.TgZ(68,"span",22),n._uU(69,"{"),n.qZA(),n._uU(70," NzButtonModule "),n.TgZ(71,"span",22),n._uU(72,"}"),n.qZA(),n._uU(73," "),n.TgZ(74,"span",21),n._uU(75,"from"),n.qZA(),n._uU(76," "),n.TgZ(77,"span",23),n._uU(78,"'ng-zorro-antd/button'"),n.qZA(),n.TgZ(79,"span",22),n._uU(80,";"),n.qZA()()(),n.fQ9(),n.qZA(),n.TgZ(81,"h2")(82,"span"),n._uU(83,"Examples"),n.qZA(),n.TgZ(84,"span",24),n.NdJ("
1click",function(){return d.expandAllCode()}),n.qZA()()(),n.TgZ(85,"div",25)(86,"div",26)(87,"nz-code-box",27),n._UZ(88,"nz-demo-button-basic",28),n.TgZ(89,"div",29),n.IAx(),n.TgZ(90,"p"),n._uU(91,"There are "),n.TgZ(92,"code"),n._uU(93,"primary"),n.qZA(),n._uU(94," button, "),n.TgZ(95,"code"),n._uU(96,"default"),n.qZA(),n._uU(97," button, "),n.TgZ(98,"code"),n._uU(99,"dashed"),n.qZA(),n._uU(100," button, "),n.TgZ(101,"code"),n._uU(102,"text"),n.qZA(),n._uU(103," button and "),n.TgZ(104,"code"),n._uU(105,"link"),n.qZA(),n._uU(106," button in antd."),n.qZA(),n.fQ9(),n.qZA()(),n.TgZ(107,"nz-code-box",30),n._UZ(108,"nz-demo-button-size",28),n.TgZ(109,"div",29),n.IAx(),n.TgZ(110,"p"),n._uU(111,"Ant Design supports a default button size as well as a large and small size."),n.qZA(),n.TgZ(112,"p"),n._uU(113,"If a large or small button is desired, set the "),n.TgZ(114,"code"),n._uU(115,"nzSize"),n.qZA(),n._uU(116," property to either "),n.TgZ(117,"code"),n._uU(118,"large"),n.qZA(),n._uU(119," or "),n.TgZ(120,"code"),n._uU(121,"small"),n.qZA(),n._uU(122," respectively. Omit the "),n.TgZ(123,"code"),n._uU(124,"nzSize"),n.qZA(),n._uU(125," property for a button with the default size."),n.qZA(),n.fQ9(),n.qZA()(),n.TgZ(126,"nz-code-box",31),n._UZ(127,"nz-demo-button-loading",28),n.TgZ(128,"div",29),n.IAx(),n.TgZ(129,"p"),n._uU(130,"A loading indicator can be added to a button by setting the "),n.TgZ(131,"code"),n._uU(132,"nzLoading"),n.qZA(),n._uU(133," property on the "),n.TgZ(134,"code"),n._uU(135,"nz-button"),n.qZA(),n._uU(136,"."),n.qZA(),n.fQ9(),n.qZA()(),n.TgZ(137,"nz-code-box",32),n._UZ(138,"nz-demo-button-button-group",28),n.TgZ(139,"div",29),n.IAx(),n.TgZ(140,"p"),n._uU(141,"Buttons can be grouped by placing multiple "),n.TgZ(142,"code"),n._uU(143,"nz-button"),n.qZA(),n._uU(144," components into a "),n.TgZ(145,"code"),n._uU(146,"nz-button-group"),n.qZA(),n._uU(147,"."),n.qZA(),n.TgZ(148,"p"),n._uU(149,"The "),n.TgZ(150,"code"),n._uU(151,"nzSize"),n.qZA(),n._uU(152," can be set to "),n.TgZ(153,"code"),n._uU(154,"large"),n.qZA(),n._uU(155,", "),n.TgZ(156,"code"),n._uU(157,"small"),n.qZA(),n._uU(158," or left unset resulting in a default size."),n.qZA(),n.fQ9(),n.qZA()(),n.TgZ(159,"nz-code-box",33),n._UZ(160,"nz-demo-button-block",28),n.TgZ(161,"div",29),n.IAx(),n.TgZ(162,"p")(163,"code"),n._uU(164,"nzBlock"),n.qZA(),n._uU(165," property will make the button fit to its parent width."),n.qZA(),n.fQ9(),n.qZA()()(),n.TgZ(166,"div",26)(167,"nz-code-box",34),n._UZ(168,"nz-demo-button-icon",28),n.TgZ(169,"div",29),n.IAx(),n.TgZ(170,"p")(171,"code"),n._uU(172,"nz-button"),n.qZA(),n._uU(173," components can contain an "),n.TgZ(174,"code"),n._uU(175,"icon"),n.qZA(),n._uU(176,". Just placing an "),n.TgZ(177,"code"),n._uU(178,"icon"),n.qZA(),n._uU(179," within the "),n.TgZ(180,"code"),n._uU(181,"nz-button"),n.qZA()(),n.fQ9(),n.qZA()(),n.TgZ(182,"nz-code-box",35),n._UZ(183,"nz-demo-button-disabled",28),n.TgZ(184,"div",29),n.IAx(),n.TgZ(185,"p"),n._uU(186,"To mark a button as disabled, add the "),n.TgZ(187,"code"),n._uU(188,"disabled"),n.qZA(),n._uU(189," property to the "),n.TgZ(190,"code"),n._uU(191,"Button"),n.qZA(),n._uU(192,"."),n.qZA(),n.fQ9(),n.qZA()(),n.TgZ(193,"nz-code-box",36),n._UZ(194,"nz-demo-button-multiple",28),n.TgZ(195,"div",29),n.IAx(),n.TgZ(196,"p"),n._uU(197,"If you need several buttons, we recommend that you use 1 primary button + n secondary buttons, and if there are more than three operations, you can group some of them into "),n.TgZ(198,"code"),n._uU(199,"nz-dropdown"),n.qZA(),n._uU(200,"."),n.qZA(),n.fQ9(),n.qZA()(),n.TgZ(201,"nz-code-box",37),n._UZ(202,"nz-demo-button-ghost",28),n.TgZ(203,"div",29),n.IAx(),n.TgZ(204,"p")(205,"code"),n._uU(206,"nzGhost"),n.qZA(),n._uU(207," property will make button's background transparent, it is common used in colored background."),n.qZA(),n.fQ9(),n.qZA()(),n.TgZ(208,"nz-code-box",38),n._UZ(209,"nz-demo-button-danger",28),n.TgZ(210,"div",29),n.IAx(),n.TgZ(211,"p"),n._uU(212,"You can use "),n.TgZ(213,"code"),n._uU(214,"nzDanger"),n.qZA(),n._uU(215," to mark button as danger status."),n.qZA(),n.fQ9(),n.qZA()()()(),n.TgZ(216,"section",39),n.IAx(),n.TgZ(217,"h2",40)(218,"span"),n._uU(219,"API"),n.qZA(),n.TgZ(220,"a",41),n._uU(221,"#"),n.qZA()(),n.TgZ(222,"h3",42)(223,"span"),n._uU(224,"[nz-button]"),n.qZA(),n.TgZ(225,"label",43),n._uU(226,"directive"),n.qZA(),n.TgZ(227,"a",44),n._uU(228,"#"),n.qZA()(),n.TgZ(229,"blockquote")(230,"p"),n._uU(231,"Note\uff1anz-button is a Directive, it accepts all props which are supported by "),n.TgZ(232,"a",45),n._uU(233,"native button"),n.qZA(),n._uU(234,"."),n.qZA()(),n.TgZ(235,"p"),n._uU(236,"To get a customized button, just set "),n.TgZ(237,"code"),n._uU(238,"nzType"),n.qZA(),n._uU(239,"/"),n.TgZ(240,"code"),n._uU(241,"nzShape"),n.qZA(),n._uU(242,"/"),n.TgZ(243,"code"),n._uU(244,"nzSize"),n.qZA(),n._uU(245,"/"),n.TgZ(246,"code"),n._uU(247,"nzLoading"),n.qZA(),n._uU(248,"/"),n.TgZ(249,"code"),n._uU(250,"disabled"),n.qZA(),n._uU(251,"."),n.qZA(),n.TgZ(252,"table")(253,"thead")(254,"tr")(255,"th"),n._uU(256,"Property"),n.qZA(),n.TgZ(257,"th"),n._uU(258,"Description"),n.qZA(),n.TgZ(259,"th"),n._uU(260,"Type"),n.qZA(),n.TgZ(261,"th"),n._uU(262,"Default"),n.qZA(),n.TgZ(263,"th"),n._uU(264,"Global Config"),n.qZA()()(),n.TgZ(265,"tbody")(266,"tr")(267,"td")(268,"code"),n._uU(269,"[disabled]"),n.qZA()(),n.TgZ(270,"td"),n._uU(271,"prevents a user from interacting with the button"),n.qZA(),n.TgZ(272,"td")(273,"code"),n._uU(274,"boolean"),n.qZA()(),n.TgZ(275,"td")(276,"code"),n._uU(277,"false"),n.qZA()(),n._UZ(278,"td"),n.qZA(),n.TgZ(279,"tr")(280,"td")(281,"code"),n._uU(282,"[nzGhost]"),n.qZA()(),n.TgZ(283,"td"),n._uU(284,"make background transparent and invert text and border colors"),n.qZA(),n.TgZ(285,"td")(286,"code"),n._uU(287,"boolean"),n.qZA()(),n.TgZ(288,"td")(289,"code"),n._uU(290,"false"),n.qZA()(),n._UZ(291,"td"),n.qZA(),n.TgZ(292,"tr")(293,"td")(294,"code"),n._uU(295,"[nzLoading]"),n.qZA()(),n.TgZ(296,"td"),n._uU(297,"set the loading status of button"),n.qZA(),n.TgZ(298,"td")(299,"code"),n._uU(300,"boolean"),n.qZA()(),n.TgZ(301,"td")(302,"code"),n._uU(303,"false"),n.qZA()(),n._UZ(304,"td"),n.qZA(),n.TgZ(305,"tr")(306,"td")(307,"code"),n._uU(308,"[nzShape]"),n.qZA()(),n.TgZ(309,"td"),n._uU(310,"can be set to "),n.TgZ(311,"code"),n._uU(312,"circle"),n.qZA(),n.TgZ(313,"code"),n._uU(314,"round"),n.qZA(),n._uU(315," or omitted"),n.qZA(),n.TgZ(316,"td")(317,"code"),n._uU(318,"'circle'|'round'"),n.qZA()(),n.TgZ(319,"td"),n._uU(320,"-"),n.qZA(),n._UZ(321,"td"),n.qZA(),n.TgZ(322,"tr")(323,"td")(324,"code"),n._uU(325,"[nzSize]"),n.qZA()(),n.TgZ(326,"td"),n._uU(327,"can be set to "),n.TgZ(328,"code"),n._uU(329,"small"),n.qZA(),n.TgZ(330,"code"),n._uU(331,"large"),n.qZA(),n._uU(332," or omitted"),n.qZA(),n.TgZ(333,"td")(334,"code"),n._uU(335,"'large'|'small'|'default'"),n.qZA()(),n.TgZ(336,"td")(337,"code"),n._uU(338,"'default'"),n.qZA()(),n.TgZ(339,"td"),n._uU(340,"\u2705"),n.qZA()(),n.TgZ(341,"tr")(342,"td")(343,"code"),n._uU(344,"[nzType]"),n.qZA()(),n.TgZ(345,"td"),n._uU(346,"can be set to "),n.TgZ(347,"code"),n._uU(348,"primary"),n.qZA(),n.TgZ(349,"code"),n._uU(350,"dashed"),n.qZA(),n.TgZ(351,"code"),n._uU(352,"text"),n.qZA(),n.TgZ(353,"code"),n._uU(354,"link"),n.qZA(),n._uU(355," or omitted (meaning "),n.TgZ(356,"code"),n._uU(357,"default"),n.qZA(),n._uU(358,")"),n.qZA(),n.TgZ(359,"td")(360,"code"),n._uU(361,"'primary'|'dashed'|'link'|'text'"),n.qZA()(),n.TgZ(362,"td"),n._uU(363,"-"),n.qZA(),n._UZ(364,"td"),n.qZA(),n.TgZ(365,"tr")(366,"td")(367,"code"),n._uU(368,"[nzBlock]"),n.qZA()(),n.TgZ(369,"td"),n._uU(370,"option to fit button width to its parent width"),n.qZA(),n.TgZ(371,"td")(372,"code"),n._uU(373,"boolean"),n.qZA()(),n.TgZ(374,"td")(375,"code"),n._uU(376,"false"),n.qZA()(),n._UZ(377,"td"),n.qZA(),n.TgZ(378,"tr")(379,"td")(380,"code"),n._uU(381,"[nzDanger]"),n.qZA()(),n.TgZ(382,"td"),n._uU(383,"set the danger status of button"),n.qZA(),n.TgZ(384,"td"),n._uU(385,"boolean"),n.qZA(),n.TgZ(386,"td")(387,"code"),n._uU(388,"fal
1se"),n.qZA()(),n._UZ(389,"td"),n.qZA()()(),n.TgZ(390,"h3",46)(391,"span"),n._uU(392,"nz-button-group"),n.qZA(),n.TgZ(393,"label",47),n._uU(394,"component"),n.qZA(),n.TgZ(395,"a",48),n._uU(396,"#"),n.qZA()(),n.TgZ(397,"table")(398,"thead")(399,"tr")(400,"th"),n._uU(401,"Property"),n.qZA(),n.TgZ(402,"th"),n._uU(403,"Description"),n.qZA(),n.TgZ(404,"th"),n._uU(405,"Type"),n.qZA(),n.TgZ(406,"th"),n._uU(407,"Default"),n.qZA(),n.TgZ(408,"th"),n._uU(409,"Global Config"),n.qZA()()(),n.TgZ(410,"tbody")(411,"tr")(412,"td")(413,"code"),n._uU(414,"[nzSize]"),n.qZA()(),n.TgZ(415,"td"),n._uU(416,"can be set to "),n.TgZ(417,"code"),n._uU(418,"small"),n.qZA(),n.TgZ(419,"code"),n._uU(420,"large"),n.qZA(),n._uU(421," or omitted"),n.qZA(),n.TgZ(422,"td")(423,"code"),n._uU(424,"'large'|'small'|'default'"),n.qZA()(),n.TgZ(425,"td")(426,"code"),n._uU(427,"'default'"),n.qZA()(),n.TgZ(428,"td"),n._uU(429,"-"),n.qZA()()()(),n.fQ9(),n.qZA()()),2&e&&(n.xp6(1),n.Q6J("nzOffsetTop",16),n.xp6(1),n.Q6J("nzAffix",!1),n.xp6(83),n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzXl",12)("nzSpan",24),n.xp6(1),n.Q6J("nzId","components-button-demo-basic")("nzLink","components-button-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/button/demo/basic.md"),n.xp6(20),n.Q6J("nzId","components-button-demo-size")("nzLink","components-button-demo-size")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/button/demo/size.md"),n.xp6(19),n.Q6J("nzId","components-button-demo-loading")("nzLink","components-button-demo-loading")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/button/demo/loading.md"),n.xp6(11),n.Q6J("nzId","components-button-demo-button-group")("nzLink","components-button-demo-button-group")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/button/demo/button-group.md"),n.xp6(22),n.Q6J("nzId","components-button-demo-block")("nzLink","components-button-demo-block")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/button/demo/block.md"),n.xp6(7),n.Q6J("nzXl",12)("nzSpan",24),n.xp6(1),n.Q6J("nzId","components-button-demo-icon")("nzLink","components-button-demo-icon")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/button/demo/icon.md"),n.xp6(15),n.Q6J("nzId","components-button-demo-disabled")("nzLink","components-button-demo-disabled")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/button/demo/disabled.md"),n.xp6(11),n.Q6J("nzId","components-button-demo-multiple")("nzLink","components-button-demo-multiple")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/button/demo/multiple.md"),n.xp6(8),n.Q6J("nzId","components-button-demo-ghost")("nzLink","components-button-demo-ghost")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/button/demo/ghost.md"),n.xp6(7),n.Q6J("nzId","components-button-demo-danger")("nzLink","components-button-demo-danger")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/button/demo/danger.md"))},dependencies:[_.G,h.IT,h.Fp,D.$,U.t3,U.SK,E.SY,p.Ls,g.w,C,f,y,k,x,s,R,o,u,I],encapsulation:2})}return t})(),N=(()=>{class t{static#n=this.\u0275fac=function(e){return new(e||t)};static#t=this.\u0275mod=n.oAB({type:t});static#e=this.\u0275inj=n.cJS({imports:[q.G,m,i.Bz.forChild([{path:"en",component:v},{path:"zh",component:S}])]})}return t})()},7225:(L,F,r)=>{r.d(F,{Bq:()=>C,Dg:()=>y,Of:()=>k,aF:()=>x});var i=r(9212),q=r(7582),l=r(6223),b=r(7328),A=r(8645),p=r(2438),m=r(9773),_=r(6700),n=r(9388),h=r(4300),D=r(8188),U=r(6814);const E=["*"],g=["inputElement"],Z=["nz-radio",""];let C=(()=>{class s{static#n=this.\u0275fac=function(z){return new(z||s)};static#t=this.\u0275dir=i.lG2({type:s,selectors:[["","nz-radio-button",""]]})}return s})(),f=(()=>{class s{constructor(){this.selected$=new b.t(1),this.touched$=new A.x,this.disabled$=new b.t(1),this.name$=new b.t(1)}touch(){this.touched$.next()}select(o){this.selected$.next(o)}setDisabled(o){this.disabled$.next(o)}setName(o){this.name$.next(o)}static#n=this.\u0275fac=function(z){return new(z||s)};static#t=this.\u0275prov=i.Yz7({token:s,factory:s.\u0275fac})}return s})(),y=(()=>{class s{constructor(o,z,u){this.cdr=o,this.nzRadioService=z,this.directionality=u,this.value=null,this.destroy$=new A.x,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.nzDisabled=!1,this.nzButtonStyle="outline",this.nzSize="default",this.nzName=null,this.dir="ltr"}ngOnInit(){this.nzRadioService.selected$.pipe((0,m.R)(this.destroy$)).subscribe(o=>{this.value!==o&&(this.value=o,this.onChange(this.value))}),this.nzRadioService.touched$.pipe((0,m.R)(this.destroy$)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe((0,m.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(o){const{nzDisabled:z,nzName:u}=o;z&&this.nzRadioService.setDisabled(this.nzDisabled),u&&this.nzRadioService.setName(this.nzName)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}writeValue(o){this.value=o,this.nzRadioService.select(o),this.cdr.markForCheck()}registerOnChange(o){this.onChange=o}registerOnTouched(o){this.onTouched=o}setDisabledState(o){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||o,this.isNzDisableFirstChange=!1,this.nzRadioService.setDisabled(this.nzDisabled),this.cdr.markForCheck()}static#n=this.\u0275fac=function(z){return new(z||s)(i.Y36(i.sBO),i.Y36(f),i.Y36(n.Is,8))};static#t=this.\u0275cmp=i.Xpm({type:s,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(z,u){2&z&&i.ekj("ant-radio-group-large","large"===u.nzSize)("ant-radio-group-small","small"===u.nzSize)("ant-radio-group-solid","solid"===u.nzButtonStyle)("ant-radio-group-rtl","rtl"===u.dir)},inputs:{nzDisabled:"nzDisabled",nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],features:[i._Bn([f,{provide:l.JU,useExisting:(0,i.Gpc)(()=>s),multi:!0}]),i.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(z,u){1&z&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0})}return(0,q.gn)([(0,_.yF)()],s.prototype,"nzDisabled",void 0),s})(),k=(()=>{class s{focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(o,z,u,T,I,S,v,N){this.ngZone=o,this.elementRef=z,this.cdr=u,this.focusMonitor=T,this.directionality=I,this.nzRadioService=S,this.nzRadioButtonDirective=v,this.nzFormStatusService=N,this.isNgModel=!1,this.destroy$=new A.x,this.isNzDisableFirstChange=!0,this.isChecked=!1,this.name=null,this.isRadioButton=!!this.nzRadioButtonDirective,this.onChange=()=>{},this.onTouched=()=>{},this.nzValue=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.dir="ltr"}setDisabledState(o){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||o,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}writeValue(o){this.isChecked=o,this.cdr.markForCheck()}registerOnChange(o){this.isNgModel=!0,this.onChange=o}registerOnTouched(o){this.onTouched=o}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe((0,m.R)(this.destroy$)).subscribe(o=>{this.name=o,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe((0,m.R)(this.destroy$)).subscribe(o=>{this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||o,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe((0,m.R)(this.destroy$)).subscribe(o=>{const z=this.isChecked;this.isChecked=this.nzValue===o,this.isNgModel&&z!==this.isChecked&&!1===this.isChecked&&this.onChange(!1),this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,m.R)(this.destroy$)).subscribe(o=>{o||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe((0,m.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}setupClickListener(){this.ngZone.runOutsideAngular(()=>{(0,p.R)(this.elementRef.nativeElement,"click").pipe((0,m.R)(this.destroy$)).subscribe(o=>{o.stopPropagation(),o.preventDefault(),!this.nzDisabled&&!this.isChecked&&this.ngZone.run(()=>{this.focus(),this.nzRadioService?.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})})}static#n=this.\u0275fac=function(z){return new(z||s)(i.Y36(i.R0b),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(h.tE),i.Y36(n.Is,8),i.Y36(f,8),i.Y36(C,8),i.Y36(D.kH,8))};static#t=this.\u0275cmp=i.Xpm({type:s,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(z,u){if(1&z&&i.Gf(g,7),2&z){let T;i.iGM(T=i.CRH())&&(u.inputElement=T.first)}},hostVars:18,hostBindings:function(z,u){2&z&&i.ekj("ant-radio-wrapper-in-form-item",!!u.nzFormStatusService)("ant-radio-wrapper",!u.isRadioButton)("ant-radio-button-wrapper",u.isRadioButton)("ant-radio-wrapper-checked",u.isChecked&&!u.isRadioButton)("ant-radio-button-wrapper-checked",u.isChecked&&u.isRadioButton)("ant-radio-wrapper-disabled",u.nzDisabled&&!u.isRadioButton)("ant-radio-button-wrapper-disabled",u.nzDisabled&&u.isRadioButton)("ant-radio-wrapper-rtl",!u.isRadioButton&&"rtl"===u.dir)("ant-radio-button-wrapper-rtl",u.isRadioButton&&"rtl"===u.dir)},inputs:{nzValue:"nzValue",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus"},exportAs:["nzRadio"],features:[i._Bn([{provide:l.JU,useExisting:(0,i.Gpc)(()=>s),multi:!0}])],attrs:Z,ngContentSelectors:E,decls:6,vars:24,consts:[["type","radio",3,"disabled","checked"],["
1inputElement",""]],template:function(z,u){1&z&&(i.F$t(),i.TgZ(0,"span"),i._UZ(1,"input",0,1)(3,"span"),i.qZA(),i.TgZ(4,"span"),i.Hsn(5),i.qZA()),2&z&&(i.ekj("ant-radio",!u.isRadioButton)("ant-radio-checked",u.isChecked&&!u.isRadioButton)("ant-radio-disabled",u.nzDisabled&&!u.isRadioButton)("ant-radio-button",u.isRadioButton)("ant-radio-button-checked",u.isChecked&&u.isRadioButton)("ant-radio-button-disabled",u.nzDisabled&&u.isRadioButton),i.xp6(1),i.ekj("ant-radio-input",!u.isRadioButton)("ant-radio-button-input",u.isRadioButton),i.Q6J("disabled",u.nzDisabled)("checked",u.isChecked),i.uIk("autofocus",u.nzAutoFocus?"autofocus":null)("name",u.name),i.xp6(2),i.ekj("ant-radio-inner",!u.isRadioButton)("ant-radio-button-inner",u.isRadioButton))},encapsulation:2,changeDetection:0})}return(0,q.gn)([(0,_.yF)()],s.prototype,"nzDisabled",void 0),(0,q.gn)([(0,_.yF)()],s.prototype,"nzAutoFocus",void 0),s})(),x=(()=>{class s{static#n=this.\u0275fac=function(z){return new(z||s)};static#t=this.\u0275mod=i.oAB({type:s});static#e=this.\u0275inj=i.cJS({imports:[n.vT,U.ez,l.u5]})}return s})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.