-
Notifications
You must be signed in to change notification settings - Fork 11
/
chunk-L5PIIBRD.js
1 lines (1 loc) · 47 KB
/
chunk-L5PIIBRD.js
1
import{a as re,b as ae,c as de}from"./chunk-BUL6X4XY.js";import{a as te,c as ne,d as ie,e as oe}from"./chunk-FPTJTSUI.js";import{c as $,e as ee}from"./chunk-EXCAEERN.js";import"./chunk-MGFBB5Y4.js";import{a as c,b as E,c as I,d as b}from"./chunk-HVFPNQ3B.js";import{a as s}from"./chunk-6AJOFIIP.js";import"./chunk-3LAVY7RV.js";import{a as F,g as M,h as G,j as O}from"./chunk-Q4ISATUO.js";import"./chunk-JXWNPNAC.js";import{Ca as g,Ea as f,Fc as le,Hc as w,Ic as H,Lc as L,ec as T,oc as me,sc as ue}from"./chunk-YWVGY2C2.js";import{Aa as z,Ac as A,Bc as k,Cc as v,Gc as j,Hc as e,Ib as p,Mc as J,Nc as K,Oc as Y,Wb as l,ic as t,jc as n,kc as i,rb as u,rc as h,za as d}from"./chunk-GBKJFEQZ.js";import"./chunk-EQDQRRRY.js";var _=(()=>{class o{static{this.\u0275fac=function(m){return new(m||o)}}static{this.\u0275cmp=p({type:o,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(m,r){m&1&&(t(0,"button",0),e(1,"Primary Button"),n(),t(2,"button",1),e(3,"Default Button"),n(),t(4,"button",2),e(5,"Dashed Button"),n(),t(6,"button",3),e(7,"Text Button"),n(),t(8,"a",4),e(9,"Link Button"),n())},dependencies:[b,E,c,s],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}"]})}}return o})();var R=(()=>{class o{static{this.\u0275fac=function(m){return new(m||o)}}static{this.\u0275cmp=p({type:o,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(m,r){m&1&&(t(0,"button",0),e(1,"Primary"),n(),t(2,"button",1),e(3,"Default"),n(),t(4,"button",2),e(5,"Dashed"),n(),t(6,"button",3),e(7,"Text"),n(),t(8,"a",4),e(9,"Link"),n())},dependencies:[b,E,c,s],styles:["[nz-button][_ngcontent-%COMP%]{margin-bottom:12px}"]})}}return o})();var P=(()=>{class o{static{this.\u0275fac=function(m){return new(m||o)}}static{this.\u0275cmp=p({type:o,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",""],["nzType","left"],["nzType","right"],["nzType","cloud"],["nzType","cloud-download"]],template:function(m,r){m&1&&(t(0,"h4"),e(1,"Basic"),n(),t(2,"nz-button-group")(3,"button",0),e(4,"Cancel"),n(),t(5,"button",1),e(6,"OK"),n()(),t(7,"nz-button-group")(8,"button",2),e(9,"L"),n(),t(10,"button",2),e(11,"M"),n(),t(12,"button",2),e(13,"R"),n()(),t(14,"nz-button-group")(15,"button",3),e(16,"L"),n(),t(17,"button",2),e(18,"M"),n(),t(19,"button",4),e(20,"M"),n(),t(21,"button",5),e(22,"R"),n()(),t(23,"h4"),e(24,"With Icon"),n(),t(25,"nz-button-group")(26,"button",1),i(27,"nz-icon",6),e(28," Go back "),n(),t(29,"button",1),e(30," Go forward "),i(31,"nz-icon",7),n()(),t(32,"nz-button-group")(33,"button",1),i(34,"nz-icon",8),n(),t(35,"button",1),i(36,"nz-icon",9),n()())},dependencies:[b,E,I,c,s,f,g],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;vertical-align:bottom}"]})}}return o})();var Z=(()=>{class o{static{this.\u0275fac=function(m){return new(m||o)}}static{this.\u0275cmp=p({type:o,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(m,r){m&1&&(t(0,"button",0),e(1,"Primary"),n(),t(2,"button",1),e(3,"Default"),n(),t(4,"button",2),e(5,"Dashed"),n(),t(6,"button",3),e(7,"Text"),n(),t(8,"a",4),e(9,"Link"),n())},dependencies:[b,E,c,s],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}"]})}}return o})();var W=(()=>{class o{static{this.\u0275fac=function(m){return new(m||o)}}static{this.\u0275cmp=p({type:o,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",""],[1,"ghost-background"],["nz-button","","nzGhost",""],["nz-button","","nzGhost","","disabled",""]],template:function(m,r){m&1&&(t(0,"button",0),e(1,"Primary"),n(),t(2,"button",1),e(3,"Primary(disabled)"),n(),i(4,"br"),t(5,"button",2),e(6,"Default"),n(),t(7,"button",3),e(8,"Default(disabled)"),n(),i(9,"br"),t(10,"button",4),e(11,"Dashed"),n(),t(12,"button",5),e(13,"Dashed(disabled)"),n(),i(14,"br"),t(15,"a",6),e(16,"Text"),n(),t(17,"a",7),e(18,"Text(disabled)"),n(),i(19,"br"),t(20,"a",8),e(21,"Link"),n(),t(22,"a",9),e(23,"Link(disabled)"),n(),i(24,"br"),t(25,"a",10),e(26,"Danger Text"),n(),t(27,"a",11),e(28,"Danger Text(disabled)"),n(),i(29,"br"),t(30,"a",12),e(31,"Danger Link"),n(),t(32,"a",13),e(33,"Danger Link(disabled)"),n(),i(34,"br"),t(35,"button",14),e(36,"Danger Default"),n(),t(37,"button",15),e(38,"Danger Default(disabled)"),n(),t(39,"div",16)(40,"button",17),e(41,"Ghost"),n(),t(42,"button",18),e(43,"Ghost(disabled)"),n()())},dependencies:[b,E,c,s],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}.ghost-background[_ngcontent-%COMP%]{padding:8px;background:#bec8c8}.ghost-background[_ngcontent-%COMP%] [nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:0}"]})}}return o})();var Q=(()=>{class o{static{this.\u0275fac=function(m){return new(m||o)}}static{this.\u0275cmp=p({type:o,selectors:[["nz-demo-button-ghost"]],decls:9,vars:0,consts:[[1,"ghost-background"],["nz-button","","nzType","primary","nzGhost",""],["nz-button","","nzType","default","nzGhost",""],["nz-button","","nzType","dashed","nzGhost",""],["nz-button","","nzType","link","nzGhost",""]],template:function(m,r){m&1&&(t(0,"div",0)(1,"button",1),e(2,"Primary"),n(),t(3,"button",2),e(4,"Default"),n(),t(5,"button",3),e(6,"Dashed"),n(),t(7,"a",4),e(8,"Link"),n()())},dependencies:[b,E,c,s],styles:[".ghost-background[_ngcontent-%COMP%]{padding:8px;background:#bec8c8}[nz-button][_ngcontent-%COMP%]{margin-right:8px}"]})}}return o})();var X=(()=>{class o{static{this.\u0275fac=function(m){return new(m||o)}}static{this.\u0275cmp=p({type:o,selectors:[["nz-demo-button-icon"]],decls:23,vars:0,consts:[["nz-button","","nzType","primary","nzShape","circle"],["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(m,r){m&1&&(t(0,"button",0),i(1,"nz-icon",1),n(),t(2,"button",0),e(3,"A"),n(),t(4,"button",2),i(5,"nz-icon",1),e(6," Search "),n(),t(7,"button",3),i(8,"nz-icon",1),n(),t(9,"button",4),i(10,"nz-icon",1),e(11," Search "),n(),i(12,"br"),t(13,"button",3),i(14,"nz-icon",1),n(),t(15,"button",4),i(16,"nz-icon",1),e(17," Search "),n(),t(18,"button",5),i(19,"nz-icon",1),n(),t(20,"button",6),i(21,"nz-icon",1),e(22," Search "),n())},dependencies:[b,E,c,s,f,g],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}"]})}}return o})();var V=(()=>{class o{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{this.\u0275fac=function(m){return new(m||o)}}static{this.\u0275cmp=p({type:o,selectors:[["nz-demo-button-loading"]],decls:14,vars:2,consts:[["nz-button","","nzType","primary","nzLoading",""],["nzType","poweroff"],["nz-button","","nzType","primary","nzSize","small","nzLoading",""],["nz-button","","nzType","primary",3,"click","nzLoading"],["nz-button","","nzLoading","","nzShape","circle"],["nz-button","","nzLoading","","nzType","primary","nzShape","circle"]],template:function(m,r){m&1&&(t(0,"button",0),i(1,"nz-icon",1),e(2," Loading "),n(),t(3,"button",2),e(4,"Loading"),n(),i(5,"br"),t(6,"button",3),h("click",function(){return r.loadOne()}),e(7,"Click me!"),n(),t(8,"button",3),h("click",function(){return r.loadTwo()}),i(9,"nz-icon",1),e(10," Click me! "),n(),i(11,"br")(12,"button",4)(13,"button",5)),m&2&&(u(6),l("nzLoading",r.isLoadingOne),u(2),l("nzLoading",r.isLoadingTwo))},dependencies:[b,E,c,s,f,g],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}"]})}}return o})();var q=(()=>{class o{static{this.\u0275fac=function(m){return new(m||o)}}static{this.\u0275cmp=p({type:o,selectors:[["nz-demo-button-multiple"]],decls:19,vars:1,consts:[["menu","nzDropdownMenu"],["nz-button","","nzType","primary"],["nz-button","","nzType","default"],["nz-button","","nz-dropdown","",3,"nzDropdownMenu"],["nzType","down"],["nz-menu",""],["nz-menu-item",""]],template:function(m,r){if(m&1&&(t(0,"button",1),e(1,"primary"),n(),t(2,"button",2),e(3,"secondary"),n(),t(4,"button",3),e(5," Actions "),i(6,"nz-icon",4),n(),t(7,"nz-dropdown-menu",null,0)(9,"ul",5)(10,"li",6)(11,"a"),e(12,"1st item"),n()(),t(13,"li",6)(14,"a"),e(15,"2nd item"),n()(),t(16,"li",6)(17,"a"),e(18,"3rd item"),n()()()()),m&2){let x=j(8);u(4),l("nzDropdownMenu",x)}},dependencies:[b,E,c,s,oe,ee,$,te,ie,ne,f,g],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}"]})}}return o})();var U=(()=>{class o{constructor(){this.size="large"}static{this.\u0275fac=function(m){return new(m||o)}}static{this.\u0275cmp=p({type:o,selectors:[["nz-demo-button-size"]],decls:38,vars:11,consts:[[3,"ngModelChange","ngModel"],["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"],["nzType","download"],["nz-button","","nzType","primary","nzShape","circle",3,"nzSize"],["nz-button","","nzType","primary","nzShape","round",3,"nzSize"],[3,"nzSize"],["nz-button","","nzType","primary"],["nzType","left"],["nzType","right"]],template:function(m,r){m&1&&(t(0,"nz-radio-group",0),Y("ngModelChange",function(y){return K(r.size,y)||(r.size=y),y}),t(1,"label",1),e(2,"Large"),n(),t(3,"label",2),e(4,"Default"),n(),t(5,"label",3),e(6,"Small"),n()(),i(7,"br")(8,"br"),t(9,"button",4),e(10,"Primary"),n(),t(11,"button",5),e(12,"Default"),n(),t(13,"button",6),e(14,"Dashed"),n(),t(15,"a",7),e(16,"Link"),n(),i(17,"br"),t(18,"button",4),i(19,"nz-icon",8),n(),t(20,"button",9),i(21,"nz-icon",8),n(),t(22,"button",10),i(23,"nz-icon",8),n(),t(24,"button",10),i(25,"nz-icon",8),e(26," Download "),n(),t(27,"button",4),i(28,"nz-icon",8),e(29," Download "),n(),i(30,"br"),t(31,"nz-button-group",11)(32,"button",12),i(33,"nz-icon",13),e(34," Backward "),n(),t(35,"button",12),e(36," Forward "),i(37,"nz-icon",14),n()()),m&2&&(J("ngModel",r.size),u(9),l("nzSize",r.size),u(2),l("nzSize",r.size),u(2),l("nzSize",r.size),u(2),l("nzSize",r.size),u(3),l("nzSize",r.size),u(2),l("nzSize",r.size),u(2),l("nzSize",r.size),u(2),l("nzSize",r.size),u(3),l("nzSize",r.size),u(4),l("nzSize",r.size))},dependencies:[le,me,ue,b,E,I,c,s,f,g,de,ae,re],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}nz-button-group[_ngcontent-%COMP%] [nz-button][_ngcontent-%COMP%]{margin-right:0}"]})}}return o})();var ze=(()=>{class o{constructor(){this.expanded=!1}goLink(a){window&&(window.location.hash=a)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(a=>a.expandCode(this.expanded))}static{this.\u0275fac=function(m){return new(m||o)}}static{this.\u0275cmp=p({type:o,selectors:[["nz-demo-button"]],viewQuery:function(m,r){if(m&1&&A(F,5),m&2){let x;k(x=v())&&(r.codeBoxes=x)}},decls:412,vars:47,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["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"],["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(m,r){m&1&&(t(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),h("nzClick",function(y){return r.goLink(y)}),i(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()(),t(14,"section",13)(15,"h1"),e(16,"Button"),t(17,"span",14),e(18,"\u6309\u94AE"),n(),i(19,"span",15),t(20,"a",16),i(21,"nz-icon",17),n()(),t(22,"section",13),z(),t(23,"p"),e(24,"\u6309\u94AE\u7528\u4E8E\u5F00\u59CB\u4E00\u4E2A\u5373\u65F6\u64CD\u4F5C\u3002"),n(),t(25,"h2",18)(26,"span"),e(27,"\u4F55\u65F6\u4F7F\u7528"),n(),t(28,"a",19),e(29,"#"),n()(),t(30,"p"),e(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(),t(32,"p"),e(33,"\u5728 Ant Design \u4E2D\uFF0C\u6211\u4EEC\u6709\u56DB\u79CD\u6309\u94AE\u3002"),n(),t(34,"ul")(35,"li"),e(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(),t(37,"li"),e(38,"\u9ED8\u8BA4\u6309\u94AE\uFF1A\u7528\u4E8E\u6CA1\u6709\u4E3B\u6B21\u4E4B\u5206\u7684\u4E00\u7EC4\u884C\u52A8\u70B9\u3002"),n(),t(39,"li"),e(40,"\u865A\u7EBF\u6309\u94AE\uFF1A\u5E38\u7528\u4E8E\u6DFB\u52A0\u64CD\u4F5C\u3002"),n(),t(41,"li"),e(42,"\u6587\u672C\u6309\u94AE\uFF1A\u7528\u4E8E\u6700\u6B21\u7EA7\u7684\u884C\u52A8\u70B9\u3002"),n(),t(43,"li"),e(44,"\u94FE\u63A5\u6309\u94AE\uFF1A\u7528\u4E8E\u6B21\u8981\u6216\u5916\u94FE\u7684\u884C\u52A8\u70B9\u3002"),n()(),t(45,"p"),e(46,"\u4EE5\u53CA\u56DB\u79CD\u72B6\u6001\u5C5E\u6027\u4E0E\u4E0A\u9762\u914D\u5408\u4F7F\u7528\u3002"),n(),t(47,"ul")(48,"li"),e(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(),t(50,"li"),e(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(),t(52,"li"),e(53,"\u7981\u7528\uFF1A\u884C\u52A8\u70B9\u4E0D\u53EF\u7528\u7684\u65F6\u5019\uFF0C\u4E00\u822C\u9700\u8981\u6587\u6848\u89E3\u91CA\u3002"),n(),t(54,"li"),e(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()(),t(56,"pre",20)(57,"code")(58,"span",21),e(59,"import"),n(),e(60," "),t(61,"span",22),e(62,"{"),n(),e(63," NzButtonModule "),t(64,"span",22),e(65,"}"),n(),e(66," "),t(67,"span",21),e(68,"from"),n(),e(69," "),t(70,"span",23),e(71,"'ng-zorro-antd/button'"),n(),t(72,"span",22),e(73,";"),n()()(),d(),n(),t(74,"h2")(75,"span"),e(76,"\u4EE3\u7801\u6F14\u793A"),n(),t(77,"span",24),h("click",function(){return r.expandAllCode()}),n()()(),t(78,"div",25)(79,"div",26)(80,"nz-code-box",27),i(81,"nz-demo-button-basic",28),t(82,"div",29),z(),t(83,"p"),e(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(),d(),n()(),t(85,"nz-code-box",30),i(86,"nz-demo-button-size",28),t(87,"div",29),z(),t(88,"p"),e(89,"\u6309\u94AE\u6709\u5927\u3001\u4E2D\u3001\u5C0F\u4E09\u79CD\u5C3A\u5BF8\u3002"),n(),t(90,"p"),e(91,"\u901A\u8FC7\u8BBE\u7F6E "),t(92,"code"),e(93,"nzSize"),n(),e(94," \u4E3A "),t(95,"code"),e(96,"large"),n(),t(97,"code"),e(98,"small"),n(),e(99," \u5206\u522B\u628A\u6309\u94AE\u8BBE\u4E3A\u5927\u3001\u5C0F\u5C3A\u5BF8\u3002\u82E5\u4E0D\u8BBE\u7F6E "),t(100,"code"),e(101,"nzSize"),n(),e(102,"\uFF0C\u5219\u5C3A\u5BF8\u4E3A\u4E2D\u3002"),n(),d(),n()(),t(103,"nz-code-box",31),i(104,"nz-demo-button-loading",28),t(105,"div",29),z(),t(106,"p"),e(107,"\u6DFB\u52A0 "),t(108,"code"),e(109,"nzLoading"),n(),e(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(),d(),n()(),t(111,"nz-code-box",32),i(112,"nz-demo-button-button-group",28),t(113,"div",29),z(),t(114,"p"),e(115,"\u53EF\u4EE5\u5C06\u591A\u4E2A "),t(116,"code"),e(117,"nz-button"),n(),e(118," \u653E\u5165 "),t(119,"code"),e(120,"nz-button-group"),n(),e(121," \u7684\u5BB9\u5668\u4E2D\u3002"),n(),t(122,"p"),e(123,"\u901A\u8FC7\u8BBE\u7F6E "),t(124,"code"),e(125,"nzSize"),n(),e(126," \u4E3A "),t(127,"code"),e(128,"large"),n(),t(129,"code"),e(130,"small"),n(),e(131," \u5206\u522B\u628A\u6309\u94AE\u7EC4\u5408\u8BBE\u4E3A\u5927\u3001\u5C0F\u5C3A\u5BF8\u3002\u82E5\u4E0D\u8BBE\u7F6E "),t(132,"code"),e(133,"nzSize"),n(),e(134,"\uFF0C\u5219\u5C3A\u5BF8\u4E3A\u4E2D\u3002"),n(),t(135,"p"),e(136,"\u8B66\u544A\uFF1A"),t(137,"code"),e(138,"<nz-button-group>"),n(),e(139," \u5728 "),t(140,"code"),e(141,"v19"),n(),e(142," \u4E2D\u88AB\u5F03\u7528\uFF0C\u8BF7\u4F7F\u7528 "),t(143,"code"),e(144,"<nz-space-compact>"),n(),e(145," \u7EC4\u4EF6\u66FF\u4EE3\u3002"),n(),d(),n()(),t(146,"nz-code-box",33),i(147,"nz-demo-button-block",28),t(148,"div",29),z(),t(149,"p")(150,"code"),e(151,"nzBlock"),n(),e(152," \u5C5E\u6027\u5C06\u4F7F\u6309\u94AE\u9002\u5408\u5176\u7236\u5BBD\u5EA6\u3002"),n(),d(),n()()(),t(153,"div",26)(154,"nz-code-box",34),i(155,"nz-demo-button-icon",28),t(156,"div",29),z(),t(157,"p"),e(158,"\u5F53\u9700\u8981\u5728 "),t(159,"code"),e(160,"nz-button"),n(),e(161," \u5185\u5D4C\u5165\u56FE\u6807\u65F6\uFF0C\u53EF\u4EE5\u76F4\u63A5\u5728 "),t(162,"code"),e(163,"nz-button"),n(),e(164," \u5185\u5D4C\u5165\u5BF9\u5E94\u7684 "),t(165,"code"),e(166,"icon"),n(),e(167,"\u3002"),n(),d(),n()(),t(168,"nz-code-box",35),i(169,"nz-demo-button-disabled",28),t(170,"div",29),z(),t(171,"p"),e(172,"\u6DFB\u52A0 "),t(173,"code"),e(174,"disabled"),n(),e(175," \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(),d(),n()(),t(176,"nz-code-box",36),i(177,"nz-demo-button-multiple",28),t(178,"div",29),z(),t(179,"p"),e(180,"\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 "),t(181,"code"),e(182,"nz-dropdown"),n(),e(183," \u4E2D\u7EC4\u5408\u4F7F\u7528\u3002"),n(),d(),n()(),t(184,"nz-code-box",37),i(185,"nz-demo-button-ghost",28),t(186,"div",29),z(),t(187,"p"),e(188,"\u6DFB\u52A0 "),t(189,"code"),e(190,"nzGhost"),n(),e(191," \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(),d(),n()(),t(192,"nz-code-box",38),i(193,"nz-demo-button-danger",28),t(194,"div",29),z(),t(195,"p"),e(196,"\u4F7F\u7528 "),t(197,"code"),e(198,"nzDanger"),n(),e(199," \u5C06\u6309\u94AE\u6807\u8BC6\u4E3A\u5371\u9669\u72B6\u6001\u3002"),n(),d(),n()()()(),t(200,"section",39),z(),t(201,"h2",40)(202,"span"),e(203,"API"),n(),t(204,"a",41),e(205,"#"),n()(),t(206,"h3",42)(207,"span"),e(208,"[nz-button]"),n(),t(209,"label",43),e(210,"directive"),n(),t(211,"a",44),e(212,"#"),n()(),t(213,"blockquote")(214,"p"),e(215,"\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"),t(216,"a",45),e(217,"\u6240\u6709\u5C5E\u6027"),n(),e(218,"\u3002"),n()(),t(219,"p"),e(220,"\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"),t(221,"code"),e(222,"nzType"),n(),e(223," -> "),t(224,"code"),e(225,"nzShape"),n(),e(226," -> "),t(227,"code"),e(228,"nzSize"),n(),e(229," -> "),t(230,"code"),e(231,"nzLoading"),n(),e(232," -> "),t(233,"code"),e(234,"disabled"),n()(),t(235,"p"),e(236,"\u6309\u94AE\u7684\u5C5E\u6027\u8BF4\u660E\u5982\u4E0B\uFF1A"),n(),t(237,"table")(238,"thead")(239,"tr")(240,"th"),e(241,"\u5C5E\u6027"),n(),t(242,"th"),e(243,"\u8BF4\u660E"),n(),t(244,"th"),e(245,"\u7C7B\u578B"),n(),t(246,"th"),e(247,"\u9ED8\u8BA4\u503C"),n(),t(248,"th"),e(249,"\u652F\u6301\u5168\u5C40\u914D\u7F6E"),n()()(),t(250,"tbody")(251,"tr")(252,"td")(253,"code"),e(254,"[disabled]"),n()(),t(255,"td"),e(256,"\u7981\u6B62\u4E0E button \u4EA4\u4E92"),n(),t(257,"td")(258,"code"),e(259,"boolean"),n()(),t(260,"td")(261,"code"),e(262,"false"),n()(),i(263,"td"),n(),t(264,"tr")(265,"td")(266,"code"),e(267,"[nzGhost]"),n()(),t(268,"td"),e(269,"\u5E7D\u7075\u5C5E\u6027\uFF0C\u4F7F\u6309\u94AE\u80CC\u666F\u900F\u660E"),n(),t(270,"td")(271,"code"),e(272,"boolean"),n()(),t(273,"td")(274,"code"),e(275,"false"),n()(),i(276,"td"),n(),t(277,"tr")(278,"td")(279,"code"),e(280,"[nzLoading]"),n()(),t(281,"td"),e(282,"\u8BBE\u7F6E\u6309\u94AE\u8F7D\u5165\u72B6\u6001"),n(),t(283,"td")(284,"code"),e(285,"boolean"),n()(),t(286,"td")(287,"code"),e(288,"false"),n()(),i(289,"td"),n(),t(290,"tr")(291,"td")(292,"code"),e(293,"[nzShape]"),n()(),t(294,"td"),e(295,"\u8BBE\u7F6E\u6309\u94AE\u5F62\u72B6\uFF0C\u53EF\u9009\u503C\u4E3A "),t(296,"code"),e(297,"circle"),n(),t(298,"code"),e(299,"round"),n(),e(300," \u6216\u8005\u4E0D\u8BBE"),n(),t(301,"td")(302,"code"),e(303,"'circle'|'round'"),n()(),t(304,"td"),e(305,"-"),n(),i(306,"td"),n(),t(307,"tr")(308,"td")(309,"code"),e(310,"[nzSize]"),n()(),t(311,"td"),e(312,"\u8BBE\u7F6E\u6309\u94AE\u5927\u5C0F\uFF0C\u53EF\u9009\u503C\u4E3A "),t(313,"code"),e(314,"small"),n(),t(315,"code"),e(316,"large"),n(),e(317," \u6216\u8005\u4E0D\u8BBE"),n(),t(318,"td")(319,"code"),e(320,"'large'|'small'|'default'"),n()(),t(321,"td")(322,"code"),e(323,"'default'"),n()(),t(324,"td"),e(325,"\u2705"),n()(),t(326,"tr")(327,"td")(328,"code"),e(329,"[nzType]"),n()(),t(330,"td"),e(331,"\u8BBE\u7F6E\u6309\u94AE\u7C7B\u578B\uFF0C\u53EF\u9009\u503C\u4E3A "),t(332,"code"),e(333,"primary"),n(),t(334,"code"),e(335,"dashed"),n(),t(336,"code"),e(337,"text"),n(),t(338,"code"),e(339,"link"),n(),e(340," \u6216\u8005\u4E0D\u8BBE"),n(),t(341,"td")(342,"code"),e(343,"'primary'|'dashed'|'link'|'text'"),n()(),t(344,"td"),e(345,"-"),n(),i(346,"td"),n(),t(347,"tr")(348,"td")(349,"code"),e(350,"[nzBlock]"),n()(),t(351,"td"),e(352,"\u5C06\u6309\u94AE\u5BBD\u5EA6\u8C03\u6574\u4E3A\u5176\u7236\u5BBD\u5EA6\u7684\u9009\u9879"),n(),t(353,"td")(354,"code"),e(355,"boolean"),n()(),t(356,"td")(357,"code"),e(358,"false"),n()(),i(359,"td"),n(),t(360,"tr")(361,"td")(362,"code"),e(363,"[nzDanger]"),n()(),t(364,"td"),e(365,"\u8BBE\u7F6E\u5371\u9669\u6309\u94AE"),n(),t(366,"td"),e(367,"boolean"),n(),t(368,"td")(369,"code"),e(370,"false"),n()(),i(371,"td"),n()()(),t(372,"h3",46)(373,"span"),e(374,"nz-button-group"),n(),t(375,"label",47),e(376,"component"),n(),t(377,"a",48),e(378,"#"),n()(),t(379,"table")(380,"thead")(381,"tr")(382,"th"),e(383,"\u5C5E\u6027"),n(),t(384,"th"),e(385,"\u8BF4\u660E"),n(),t(386,"th"),e(387,"\u7C7B\u578B"),n(),t(388,"th"),e(389,"\u9ED8\u8BA4\u503C"),n(),t(390,"th"),e(391,"\u652F\u6301\u5168\u5C40\u914D\u7F6E"),n()()(),t(392,"tbody")(393,"tr")(394,"td")(395,"code"),e(396,"[nzSize]"),n()(),t(397,"td"),e(398,"\u8BBE\u7F6E\u6309\u94AE\u5927\u5C0F\uFF0C\u53EF\u9009\u503C\u4E3A "),t(399,"code"),e(400,"small"),n(),t(401,"code"),e(402,"large"),n(),e(403," \u6216\u8005\u4E0D\u8BBE"),n(),t(404,"td")(405,"code"),e(406,"'large'|'small'|'default'"),n()(),t(407,"td")(408,"code"),e(409,"'default'"),n()(),t(410,"td"),e(411,"-"),n()()()(),d(),n()()),m&2&&(u(),l("nzOffsetTop",16),u(),l("nzAffix",!1),u(76),l("nzGutter",16),u(),l("nzXl",12)("nzSpan",24),u(),l("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"),u(5),l("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"),u(18),l("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"),u(8),l("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"),u(35),l("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"),u(7),l("nzXl",12)("nzSpan",24),u(),l("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"),u(14),l("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"),u(8),l("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"),u(8),l("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"),u(8),l("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:[O,F,M,G,L,H,w,T,g,_,R,P,Z,W,Q,X,V,q,U],encapsulation:2})}}return o})();var pe=(()=>{class o{constructor(){this.expanded=!1}goLink(a){window&&(window.location.hash=a)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(a=>a.expandCode(this.expanded))}static{this.\u0275fac=function(m){return new(m||o)}}static{this.\u0275cmp=p({type:o,selectors:[["nz-demo-button"]],viewQuery:function(m,r){if(m&1&&A(F,5),m&2){let x;k(x=v())&&(r.codeBoxes=x)}},decls:441,vars:47,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["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"],["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(m,r){m&1&&(t(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),h("nzClick",function(y){return r.goLink(y)}),i(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()(),t(14,"section",13)(15,"h1"),e(16,"Button"),i(17,"span",14)(18,"span",15),t(19,"a",16),i(20,"nz-icon",17),n()(),t(21,"section",13),z(),t(22,"p"),e(23,"To trigger an operation."),n(),t(24,"h2",18)(25,"span"),e(26,"When To Use"),n(),t(27,"a",19),e(28,"#"),n()(),t(29,"p"),e(30,"A button means an operation (or a series of operations). Clicking a button will trigger corresponding business logic."),n(),t(31,"p"),e(32,"In Ant Design, we provide 4 types of buttons."),n(),t(33,"ul")(34,"li"),e(35,"Primary button: indicate the main action, one primary button at most in one section."),n(),t(36,"li"),e(37,"Default button: indicate a series of actions without priority."),n(),t(38,"li"),e(39,"Dashed button: used for adding action commonly."),n(),t(40,"li"),e(41,"Text button: used for the most secondary action."),n(),t(42,"li"),e(43,"Link button: used for external links."),n()(),t(44,"p"),e(45,"And 4 other properties additionally."),n(),t(46,"ul")(47,"li")(48,"code"),e(49,"danger"),n(),e(50,": used for risk actions, like deletion or authorization."),n(),t(51,"li")(52,"code"),e(53,"ghost"),n(),e(54,": usually used in situations with a complex background, home pages."),n(),t(55,"li")(56,"code"),e(57,"disabled"),n(),e(58,": when actions are not available."),n(),t(59,"li")(60,"code"),e(61,"loading"),n(),e(62,": add loading spinner in button, avoiding multiple submit."),n()(),t(63,"pre",20)(64,"code")(65,"span",21),e(66,"import"),n(),e(67," "),t(68,"span",22),e(69,"{"),n(),e(70," NzButtonModule "),t(71,"span",22),e(72,"}"),n(),e(73," "),t(74,"span",21),e(75,"from"),n(),e(76," "),t(77,"span",23),e(78,"'ng-zorro-antd/button'"),n(),t(79,"span",22),e(80,";"),n()()(),d(),n(),t(81,"h2")(82,"span"),e(83,"Examples"),n(),t(84,"span",24),h("click",function(){return r.expandAllCode()}),n()()(),t(85,"div",25)(86,"div",26)(87,"nz-code-box",27),i(88,"nz-demo-button-basic",28),t(89,"div",29),z(),t(90,"p"),e(91,"There are "),t(92,"code"),e(93,"primary"),n(),e(94," button, "),t(95,"code"),e(96,"default"),n(),e(97," button, "),t(98,"code"),e(99,"dashed"),n(),e(100," button, "),t(101,"code"),e(102,"text"),n(),e(103," button and "),t(104,"code"),e(105,"link"),n(),e(106," button in antd."),n(),d(),n()(),t(107,"nz-code-box",30),i(108,"nz-demo-button-size",28),t(109,"div",29),z(),t(110,"p"),e(111,"Ant Design supports a default button size as well as a large and small size."),n(),t(112,"p"),e(113,"If a large or small button is desired, set the "),t(114,"code"),e(115,"nzSize"),n(),e(116," property to either "),t(117,"code"),e(118,"large"),n(),e(119," or "),t(120,"code"),e(121,"small"),n(),e(122," respectively. Omit the "),t(123,"code"),e(124,"nzSize"),n(),e(125," property for a button with the default size."),n(),d(),n()(),t(126,"nz-code-box",31),i(127,"nz-demo-button-loading",28),t(128,"div",29),z(),t(129,"p"),e(130,"A loading indicator can be added to a button by setting the "),t(131,"code"),e(132,"nzLoading"),n(),e(133," property on the "),t(134,"code"),e(135,"nz-button"),n(),e(136,"."),n(),d(),n()(),t(137,"nz-code-box",32),i(138,"nz-demo-button-button-group",28),t(139,"div",29),z(),t(140,"p"),e(141,"Buttons can be grouped by placing multiple "),t(142,"code"),e(143,"nz-button"),n(),e(144," components into a "),t(145,"code"),e(146,"nz-button-group"),n(),e(147,"."),n(),t(148,"p"),e(149,"The "),t(150,"code"),e(151,"nzSize"),n(),e(152," can be set to "),t(153,"code"),e(154,"large"),n(),e(155,", "),t(156,"code"),e(157,"small"),n(),e(158," or left unset resulting in a default size."),n(),t(159,"p"),e(160,"Warning: "),t(161,"code"),e(162,"<nz-button-group>"),n(),e(163," is deprecated in "),t(164,"code"),e(165,"v19"),n(),e(166,", please use "),t(167,"code"),e(168,"<nz-space-compact>"),n(),e(169," instead."),n(),d(),n()(),t(170,"nz-code-box",33),i(171,"nz-demo-button-block",28),t(172,"div",29),z(),t(173,"p")(174,"code"),e(175,"nzBlock"),n(),e(176," property will make the button fit to its parent width."),n(),d(),n()()(),t(177,"div",26)(178,"nz-code-box",34),i(179,"nz-demo-button-icon",28),t(180,"div",29),z(),t(181,"p")(182,"code"),e(183,"nz-button"),n(),e(184," components can contain an "),t(185,"code"),e(186,"icon"),n(),e(187,". Just placing an "),t(188,"code"),e(189,"icon"),n(),e(190," within the "),t(191,"code"),e(192,"nz-button"),n()(),d(),n()(),t(193,"nz-code-box",35),i(194,"nz-demo-button-disabled",28),t(195,"div",29),z(),t(196,"p"),e(197,"To mark a button as disabled, add the "),t(198,"code"),e(199,"disabled"),n(),e(200," property to the "),t(201,"code"),e(202,"Button"),n(),e(203,"."),n(),d(),n()(),t(204,"nz-code-box",36),i(205,"nz-demo-button-multiple",28),t(206,"div",29),z(),t(207,"p"),e(208,"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 "),t(209,"code"),e(210,"nz-dropdown"),n(),e(211,"."),n(),d(),n()(),t(212,"nz-code-box",37),i(213,"nz-demo-button-ghost",28),t(214,"div",29),z(),t(215,"p")(216,"code"),e(217,"nzGhost"),n(),e(218," property will make button's background transparent, it is common used in colored background."),n(),d(),n()(),t(219,"nz-code-box",38),i(220,"nz-demo-button-danger",28),t(221,"div",29),z(),t(222,"p"),e(223,"You can use "),t(224,"code"),e(225,"nzDanger"),n(),e(226," to mark button as danger status."),n(),d(),n()()()(),t(227,"section",39),z(),t(228,"h2",40)(229,"span"),e(230,"API"),n(),t(231,"a",41),e(232,"#"),n()(),t(233,"h3",42)(234,"span"),e(235,"[nz-button]"),n(),t(236,"label",43),e(237,"directive"),n(),t(238,"a",44),e(239,"#"),n()(),t(240,"blockquote")(241,"p"),e(242,"Note\uFF1Anz-button is a Directive, it accepts all props which are supported by "),t(243,"a",45),e(244,"native button"),n(),e(245,"."),n()(),t(246,"p"),e(247,"To get a customized button, just set "),t(248,"code"),e(249,"nzType"),n(),e(250,"/"),t(251,"code"),e(252,"nzShape"),n(),e(253,"/"),t(254,"code"),e(255,"nzSize"),n(),e(256,"/"),t(257,"code"),e(258,"nzLoading"),n(),e(259,"/"),t(260,"code"),e(261,"disabled"),n(),e(262,"."),n(),t(263,"table")(264,"thead")(265,"tr")(266,"th"),e(267,"Property"),n(),t(268,"th"),e(269,"Description"),n(),t(270,"th"),e(271,"Type"),n(),t(272,"th"),e(273,"Default"),n(),t(274,"th"),e(275,"Global Config"),n()()(),t(276,"tbody")(277,"tr")(278,"td")(279,"code"),e(280,"[disabled]"),n()(),t(281,"td"),e(282,"prevents a user from interacting with the button"),n(),t(283,"td")(284,"code"),e(285,"boolean"),n()(),t(286,"td")(287,"code"),e(288,"false"),n()(),i(289,"td"),n(),t(290,"tr")(291,"td")(292,"code"),e(293,"[nzGhost]"),n()(),t(294,"td"),e(295,"make background transparent and invert text and border colors"),n(),t(296,"td")(297,"code"),e(298,"boolean"),n()(),t(299,"td")(300,"code"),e(301,"false"),n()(),i(302,"td"),n(),t(303,"tr")(304,"td")(305,"code"),e(306,"[nzLoading]"),n()(),t(307,"td"),e(308,"set the loading status of button"),n(),t(309,"td")(310,"code"),e(311,"boolean"),n()(),t(312,"td")(313,"code"),e(314,"false"),n()(),i(315,"td"),n(),t(316,"tr")(317,"td")(318,"code"),e(319,"[nzShape]"),n()(),t(320,"td"),e(321,"can be set to "),t(322,"code"),e(323,"circle"),n(),t(324,"code"),e(325,"round"),n(),e(326," or omitted"),n(),t(327,"td")(328,"code"),e(329,"'circle'|'round'"),n()(),t(330,"td"),e(331,"-"),n(),i(332,"td"),n(),t(333,"tr")(334,"td")(335,"code"),e(336,"[nzSize]"),n()(),t(337,"td"),e(338,"can be set to "),t(339,"code"),e(340,"small"),n(),t(341,"code"),e(342,"large"),n(),e(343," or omitted"),n(),t(344,"td")(345,"code"),e(346,"'large'|'small'|'default'"),n()(),t(347,"td")(348,"code"),e(349,"'default'"),n()(),t(350,"td"),e(351,"\u2705"),n()(),t(352,"tr")(353,"td")(354,"code"),e(355,"[nzType]"),n()(),t(356,"td"),e(357,"can be set to "),t(358,"code"),e(359,"primary"),n(),t(360,"code"),e(361,"dashed"),n(),t(362,"code"),e(363,"text"),n(),t(364,"code"),e(365,"link"),n(),e(366," or omitted (meaning "),t(367,"code"),e(368,"default"),n(),e(369,")"),n(),t(370,"td")(371,"code"),e(372,"'primary'|'dashed'|'link'|'text'"),n()(),t(373,"td"),e(374,"-"),n(),i(375,"td"),n(),t(376,"tr")(377,"td")(378,"code"),e(379,"[nzBlock]"),n()(),t(380,"td"),e(381,"option to fit button width to its parent width"),n(),t(382,"td")(383,"code"),e(384,"boolean"),n()(),t(385,"td")(386,"code"),e(387,"false"),n()(),i(388,"td"),n(),t(389,"tr")(390,"td")(391,"code"),e(392,"[nzDanger]"),n()(),t(393,"td"),e(394,"set the danger status of button"),n(),t(395,"td"),e(396,"boolean"),n(),t(397,"td")(398,"code"),e(399,"false"),n()(),i(400,"td"),n()()(),t(401,"h3",46)(402,"span"),e(403,"nz-button-group"),n(),t(404,"label",47),e(405,"component"),n(),t(406,"a",48),e(407,"#"),n()(),t(408,"table")(409,"thead")(410,"tr")(411,"th"),e(412,"Property"),n(),t(413,"th"),e(414,"Description"),n(),t(415,"th"),e(416,"Type"),n(),t(417,"th"),e(418,"Default"),n(),t(419,"th"),e(420,"Global Config"),n()()(),t(421,"tbody")(422,"tr")(423,"td")(424,"code"),e(425,"[nzSize]"),n()(),t(426,"td"),e(427,"can be set to "),t(428,"code"),e(429,"small"),n(),t(430,"code"),e(431,"large"),n(),e(432," or omitted"),n(),t(433,"td")(434,"code"),e(435,"'large'|'small'|'default'"),n()(),t(436,"td")(437,"code"),e(438,"'default'"),n()(),t(439,"td"),e(440,"-"),n()()()(),d(),n()()),m&2&&(u(),l("nzOffsetTop",16),u(),l("nzAffix",!1),u(83),l("nzGutter",16),u(),l("nzXl",12)("nzSpan",24),u(),l("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"),u(20),l("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"),u(19),l("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"),u(11),l("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"),u(33),l("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"),u(7),l("nzXl",12)("nzSpan",24),u(),l("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"),u(15),l("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"),u(11),l("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"),u(8),l("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"),u(7),l("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:[O,F,M,G,L,H,w,T,g,_,R,P,Z,W,Q,X,V,q,U],encapsulation:2})}}return o})();var ge=[{path:"en",component:pe},{path:"zh",component:ze}],Ft=ge;export{Ft as default};