-
Notifications
You must be signed in to change notification settings - Fork 11
/
chunk-HGWVOMWJ.js
1 lines (1 loc) · 47.2 KB
/
chunk-HGWVOMWJ.js
1
import{a as de,b as ze,c as pe}from"./chunk-IMNDRGH3.js";import{a as ue,c as ae,d as le,e as re}from"./chunk-YTVIFSN7.js";import{c as oe,e as me}from"./chunk-FFM3AGJ6.js";import"./chunk-QKKRINFW.js";import{a as E,b as x,c as P,d as S}from"./chunk-B4IH7RR4.js";import{a as b}from"./chunk-7HQXT7RK.js";import{a as A,g as L,h as M,j as R}from"./chunk-2RTS5GAO.js";import"./chunk-V2SRXRXL.js";import{Ea as f,Fc as ie,Ga as C,Ic as H,Kc as G,Lc as O,Wb as w,oc as te,sc as ne}from"./chunk-BYER7FCH.js";import{Ca as z,Da as p,Hb as a,Vb as t,Wb as n,Xb as o,cc as B,lc as v,mb as u,mc as N,nc as I,oc as K,pc as e,ra as s,uc as Y,vc as $,wc as ee,yc as c}from"./chunk-U274QCT3.js";import"./chunk-RKLIRILV.js";var _=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=s({type:i,selectors:[["nz-demo-button-basic"]],standalone:!0,features:[c],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:[S,x,E,b],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}"]});let l=i;return l})();var Z=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=s({type:i,selectors:[["nz-demo-button-block"]],standalone:!0,features:[c],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:[S,x,E,b],styles:["[nz-button][_ngcontent-%COMP%]{margin-bottom:12px}"]});let l=i;return l})();var W=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=s({type:i,selectors:[["nz-demo-button-button-group"]],standalone:!0,features:[c],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(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),o(27,"span",6),e(28," Go back "),n(),t(29,"button",1),e(30," Go forward "),o(31,"span",7),n()(),t(32,"nz-button-group")(33,"button",1),o(34,"span",8),n(),t(35,"button",1),o(36,"span",9),n()())},dependencies:[S,x,P,E,b,C,f],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}"]});let l=i;return l})();var Q=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=s({type:i,selectors:[["nz-demo-button-danger"]],standalone:!0,features:[c],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:[S,x,E,b],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}"]});let l=i;return l})();var X=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=s({type:i,selectors:[["nz-demo-button-disabled"]],standalone:!0,features:[c],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(),o(4,"br"),t(5,"button",2),e(6,"Default"),n(),t(7,"button",3),e(8,"Default(disabled)"),n(),o(9,"br"),t(10,"button",4),e(11,"Dashed"),n(),t(12,"button",5),e(13,"Dashed(disabled)"),n(),o(14,"br"),t(15,"a",6),e(16,"Text"),n(),t(17,"a",7),e(18,"Text(disabled)"),n(),o(19,"br"),t(20,"a",8),e(21,"Link"),n(),t(22,"a",9),e(23,"Link(disabled)"),n(),o(24,"br"),t(25,"a",10),e(26,"Danger Text"),n(),t(27,"a",11),e(28,"Danger Text(disabled)"),n(),o(29,"br"),t(30,"a",12),e(31,"Danger Link"),n(),t(32,"a",13),e(33,"Danger Link(disabled)"),n(),o(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:[S,x,E,b],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}"]});let l=i;return l})();var V=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=s({type:i,selectors:[["nz-demo-button-ghost"]],standalone:!0,features:[c],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:[S,x,E,b],styles:[".ghost-background[_ngcontent-%COMP%]{padding:8px;background:#bec8c8}[nz-button][_ngcontent-%COMP%]{margin-right:8px}"]});let l=i;return l})();var q=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=s({type:i,selectors:[["nz-demo-button-icon"]],standalone:!0,features:[c],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(m,r){m&1&&(t(0,"button",0),o(1,"span",1),n(),t(2,"button",0),e(3,"A"),n(),t(4,"button",2),o(5,"span",1),e(6," Search "),n(),t(7,"button",3),o(8,"span",1),n(),t(9,"button",4),o(10,"span",1),e(11," Search "),n(),o(12,"br"),t(13,"button",3),o(14,"span",1),n(),t(15,"button",4),o(16,"span",1),e(17," Search "),n(),t(18,"button",5),o(19,"span",1),n(),t(20,"button",6),o(21,"span",1),e(22," Search "),n())},dependencies:[S,x,E,b,C,f],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}"]});let l=i;return l})();var U=(()=>{let i=class i{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)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=s({type:i,selectors:[["nz-demo-button-loading"]],standalone:!0,features:[c],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,"click","nzLoading"],["nz-button","","nzLoading","","nzShape","circle"],["nz-button","","nzLoading","","nzType","primary","nzShape","circle"]],template:function(m,r){m&1&&(t(0,"button",0),o(1,"span",1),e(2," Loading "),n(),t(3,"button",2),e(4,"Loading"),n(),o(5,"br"),t(6,"button",3),B("click",function(){return r.loadOne()}),e(7,"Click me!"),n(),t(8,"button",3),B("click",function(){return r.loadTwo()}),o(9,"span",1),e(10," Click me! "),n(),o(11,"br")(12,"button",4)(13,"button",5)),m&2&&(u(6),a("nzLoading",r.isLoadingOne),u(2),a("nzLoading",r.isLoadingTwo))},dependencies:[S,x,E,b,C,f],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}"]});let l=i;return l})();var j=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=s({type:i,selectors:[["nz-demo-button-multiple"]],standalone:!0,features:[c],decls:19,vars:1,consts:[["menu","nzDropdownMenu"],["nz-button","","nzType","primary"],["nz-button","","nzType","default"],["nz-button","","nz-dropdown","",3,"nzDropdownMenu"],["nz-icon","","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 "),o(6,"span",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 g=K(8);u(4),a("nzDropdownMenu",g)}},dependencies:[S,x,E,b,re,me,oe,ue,le,ae,C,f],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}"]});let l=i;return l})();var J=(()=>{let i=class i{constructor(){this.size="large"}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=s({type:i,selectors:[["nz-demo-button-size"]],standalone:!0,features:[c],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"],["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(m,r){m&1&&(t(0,"nz-radio-group",0),ee("ngModelChange",function(k){return $(r.size,k)||(r.size=k),k}),t(1,"label",1),e(2,"Large"),n(),t(3,"label",2),e(4,"Default"),n(),t(5,"label",3),e(6,"Small"),n()(),o(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(),o(17,"br"),t(18,"button",4),o(19,"span",8),n(),t(20,"button",9),o(21,"span",8),n(),t(22,"button",10),o(23,"span",8),n(),t(24,"button",10),o(25,"span",8),e(26," Download "),n(),t(27,"button",4),o(28,"span",8),e(29," Download "),n(),o(30,"br"),t(31,"nz-button-group",11)(32,"button",12),o(33,"span",13),e(34," Backward "),n(),t(35,"button",12),e(36," Forward "),o(37,"span",14),n()()),m&2&&(Y("ngModel",r.size),u(9),a("nzSize",r.size),u(2),a("nzSize",r.size),u(2),a("nzSize",r.size),u(2),a("nzSize",r.size),u(3),a("nzSize",r.size),u(2),a("nzSize",r.size),u(2),a("nzSize",r.size),u(2),a("nzSize",r.size),u(3),a("nzSize",r.size),u(4),a("nzSize",r.size))},dependencies:[ie,te,ne,S,x,P,E,b,C,f,pe,ze,de],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:12px}nz-button-group[_ngcontent-%COMP%] [nz-button][_ngcontent-%COMP%]{margin-right:0}"]});let l=i;return l})();var se=(()=>{let i=class i{constructor(){this.expanded=!1}goLink(d){window&&(window.location.hash=d)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(d=>d.expandCode(this.expanded))}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=s({type:i,selectors:[["nz-demo-button"]],viewQuery:function(m,r){if(m&1&&v(A,5),m&2){let g;N(g=I())&&(r.codeBoxes=g)}},standalone:!0,features:[c],decls:405,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"],["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]:standalone"],[1,"api-type-label","directive"],[1,"api-type-label","standalone"],["onclick","window.location.hash = '[nz-button]:standalone'",1,"anchor"],["href","https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/button","target","_blank","rel","noopener"],["id","nz-button-group:standalone"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-button-group:standalone'",1,"anchor"]],template:function(m,r){m&1&&(t(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),B("nzClick",function(k){return r.goLink(k)}),o(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7)(9,"nz-link",8)(10,"nz-link",9)(11,"nz-link",10)(12,"nz-link",11)(13,"nz-link",12),n()(),t(14,"section",13)(15,"h1"),e(16,"Button"),t(17,"span",14),e(18,"\u6309\u94AE"),n(),o(19,"span",15),t(20,"a",16),o(21,"span",17),n()(),t(22,"section",13),p(),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()()(),z(),n(),t(74,"h2")(75,"span"),e(76,"\u4EE3\u7801\u6F14\u793A"),n(),t(77,"span",24),B("click",function(){return r.expandAllCode()}),n()()(),t(78,"div",25)(79,"div",26)(80,"nz-code-box",27),o(81,"nz-demo-button-basic",28),t(82,"div",29),p(),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(),z(),n()(),t(85,"nz-code-box",30),o(86,"nz-demo-button-size",28),t(87,"div",29),p(),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(),z(),n()(),t(103,"nz-code-box",31),o(104,"nz-demo-button-loading",28),t(105,"div",29),p(),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(),z(),n()(),t(111,"nz-code-box",32),o(112,"nz-demo-button-button-group",28),t(113,"div",29),p(),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(),z(),n()(),t(135,"nz-code-box",33),o(136,"nz-demo-button-block",28),t(137,"div",29),p(),t(138,"p")(139,"code"),e(140,"nzBlock"),n(),e(141," \u5C5E\u6027\u5C06\u4F7F\u6309\u94AE\u9002\u5408\u5176\u7236\u5BBD\u5EA6\u3002"),n(),z(),n()()(),t(142,"div",26)(143,"nz-code-box",34),o(144,"nz-demo-button-icon",28),t(145,"div",29),p(),t(146,"p"),e(147,"\u5F53\u9700\u8981\u5728 "),t(148,"code"),e(149,"nz-button"),n(),e(150," \u5185\u5D4C\u5165\u56FE\u6807\u65F6\uFF0C\u53EF\u4EE5\u76F4\u63A5\u5728 "),t(151,"code"),e(152,"nz-button"),n(),e(153," \u5185\u5D4C\u5165\u5BF9\u5E94\u7684 "),t(154,"code"),e(155,"icon"),n(),e(156,"\u3002"),n(),z(),n()(),t(157,"nz-code-box",35),o(158,"nz-demo-button-disabled",28),t(159,"div",29),p(),t(160,"p"),e(161,"\u6DFB\u52A0 "),t(162,"code"),e(163,"disabled"),n(),e(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(),z(),n()(),t(165,"nz-code-box",36),o(166,"nz-demo-button-multiple",28),t(167,"div",29),p(),t(168,"p"),e(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 "),t(170,"code"),e(171,"nz-dropdown"),n(),e(172," \u4E2D\u7EC4\u5408\u4F7F\u7528\u3002"),n(),z(),n()(),t(173,"nz-code-box",37),o(174,"nz-demo-button-ghost",28),t(175,"div",29),p(),t(176,"p"),e(177,"\u6DFB\u52A0 "),t(178,"code"),e(179,"nzGhost"),n(),e(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(),z(),n()(),t(181,"nz-code-box",38),o(182,"nz-demo-button-danger",28),t(183,"div",29),p(),t(184,"p"),e(185,"\u4F7F\u7528 "),t(186,"code"),e(187,"nzDanger"),n(),e(188," \u5C06\u6309\u94AE\u6807\u8BC6\u4E3A\u5371\u9669\u72B6\u6001\u3002"),n(),z(),n()()()(),t(189,"section",39),p(),t(190,"h2",40)(191,"span"),e(192,"API"),n(),t(193,"a",41),e(194,"#"),n()(),t(195,"h3",42)(196,"span"),e(197,"[nz-button]"),n(),t(198,"label",43),e(199,"directive"),n(),t(200,"label",44),e(201,"standalone"),n(),t(202,"a",45),e(203,"#"),n()(),t(204,"blockquote")(205,"p"),e(206,"\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(207,"a",46),e(208,"\u6240\u6709\u5C5E\u6027"),n(),e(209,"\u3002"),n()(),t(210,"p"),e(211,"\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(212,"code"),e(213,"nzType"),n(),e(214," -> "),t(215,"code"),e(216,"nzShape"),n(),e(217," -> "),t(218,"code"),e(219,"nzSize"),n(),e(220," -> "),t(221,"code"),e(222,"nzLoading"),n(),e(223," -> "),t(224,"code"),e(225,"disabled"),n()(),t(226,"p"),e(227,"\u6309\u94AE\u7684\u5C5E\u6027\u8BF4\u660E\u5982\u4E0B\uFF1A"),n(),t(228,"table")(229,"thead")(230,"tr")(231,"th"),e(232,"\u5C5E\u6027"),n(),t(233,"th"),e(234,"\u8BF4\u660E"),n(),t(235,"th"),e(236,"\u7C7B\u578B"),n(),t(237,"th"),e(238,"\u9ED8\u8BA4\u503C"),n(),t(239,"th"),e(240,"\u652F\u6301\u5168\u5C40\u914D\u7F6E"),n()()(),t(241,"tbody")(242,"tr")(243,"td")(244,"code"),e(245,"[disabled]"),n()(),t(246,"td"),e(247,"\u7981\u6B62\u4E0E button \u4EA4\u4E92"),n(),t(248,"td")(249,"code"),e(250,"boolean"),n()(),t(251,"td")(252,"code"),e(253,"false"),n()(),o(254,"td"),n(),t(255,"tr")(256,"td")(257,"code"),e(258,"[nzGhost]"),n()(),t(259,"td"),e(260,"\u5E7D\u7075\u5C5E\u6027\uFF0C\u4F7F\u6309\u94AE\u80CC\u666F\u900F\u660E"),n(),t(261,"td")(262,"code"),e(263,"boolean"),n()(),t(264,"td")(265,"code"),e(266,"false"),n()(),o(267,"td"),n(),t(268,"tr")(269,"td")(270,"code"),e(271,"[nzLoading]"),n()(),t(272,"td"),e(273,"\u8BBE\u7F6E\u6309\u94AE\u8F7D\u5165\u72B6\u6001"),n(),t(274,"td")(275,"code"),e(276,"boolean"),n()(),t(277,"td")(278,"code"),e(279,"false"),n()(),o(280,"td"),n(),t(281,"tr")(282,"td")(283,"code"),e(284,"[nzShape]"),n()(),t(285,"td"),e(286,"\u8BBE\u7F6E\u6309\u94AE\u5F62\u72B6\uFF0C\u53EF\u9009\u503C\u4E3A "),t(287,"code"),e(288,"circle"),n(),t(289,"code"),e(290,"round"),n(),e(291," \u6216\u8005\u4E0D\u8BBE"),n(),t(292,"td")(293,"code"),e(294,"'circle'|'round'"),n()(),t(295,"td"),e(296,"-"),n(),o(297,"td"),n(),t(298,"tr")(299,"td")(300,"code"),e(301,"[nzSize]"),n()(),t(302,"td"),e(303,"\u8BBE\u7F6E\u6309\u94AE\u5927\u5C0F\uFF0C\u53EF\u9009\u503C\u4E3A "),t(304,"code"),e(305,"small"),n(),t(306,"code"),e(307,"large"),n(),e(308," \u6216\u8005\u4E0D\u8BBE"),n(),t(309,"td")(310,"code"),e(311,"'large'|'small'|'default'"),n()(),t(312,"td")(313,"code"),e(314,"'default'"),n()(),t(315,"td"),e(316,"\u2705"),n()(),t(317,"tr")(318,"td")(319,"code"),e(320,"[nzType]"),n()(),t(321,"td"),e(322,"\u8BBE\u7F6E\u6309\u94AE\u7C7B\u578B\uFF0C\u53EF\u9009\u503C\u4E3A "),t(323,"code"),e(324,"primary"),n(),t(325,"code"),e(326,"dashed"),n(),t(327,"code"),e(328,"text"),n(),t(329,"code"),e(330,"link"),n(),e(331," \u6216\u8005\u4E0D\u8BBE"),n(),t(332,"td")(333,"code"),e(334,"'primary'|'dashed'|'link'|'text'"),n()(),t(335,"td"),e(336,"-"),n(),o(337,"td"),n(),t(338,"tr")(339,"td")(340,"code"),e(341,"[nzBlock]"),n()(),t(342,"td"),e(343,"\u5C06\u6309\u94AE\u5BBD\u5EA6\u8C03\u6574\u4E3A\u5176\u7236\u5BBD\u5EA6\u7684\u9009\u9879"),n(),t(344,"td")(345,"code"),e(346,"boolean"),n()(),t(347,"td")(348,"code"),e(349,"false"),n()(),o(350,"td"),n(),t(351,"tr")(352,"td")(353,"code"),e(354,"[nzDanger]"),n()(),t(355,"td"),e(356,"\u8BBE\u7F6E\u5371\u9669\u6309\u94AE"),n(),t(357,"td"),e(358,"boolean"),n(),t(359,"td")(360,"code"),e(361,"false"),n()(),o(362,"td"),n()()(),t(363,"h3",47)(364,"span"),e(365,"nz-button-group"),n(),t(366,"label",48),e(367,"component"),n(),t(368,"label",44),e(369,"standalone"),n(),t(370,"a",49),e(371,"#"),n()(),t(372,"table")(373,"thead")(374,"tr")(375,"th"),e(376,"\u5C5E\u6027"),n(),t(377,"th"),e(378,"\u8BF4\u660E"),n(),t(379,"th"),e(380,"\u7C7B\u578B"),n(),t(381,"th"),e(382,"\u9ED8\u8BA4\u503C"),n(),t(383,"th"),e(384,"\u652F\u6301\u5168\u5C40\u914D\u7F6E"),n()()(),t(385,"tbody")(386,"tr")(387,"td")(388,"code"),e(389,"[nzSize]"),n()(),t(390,"td"),e(391,"\u8BBE\u7F6E\u6309\u94AE\u5927\u5C0F\uFF0C\u53EF\u9009\u503C\u4E3A "),t(392,"code"),e(393,"small"),n(),t(394,"code"),e(395,"large"),n(),e(396," \u6216\u8005\u4E0D\u8BBE"),n(),t(397,"td")(398,"code"),e(399,"'large'|'small'|'default'"),n()(),t(400,"td")(401,"code"),e(402,"'default'"),n()(),t(403,"td"),e(404,"-"),n()()()(),z(),n()()),m&2&&(u(),a("nzOffsetTop",16),u(),a("nzAffix",!1),u(76),a("nzGutter",16),u(),a("nzXl",12)("nzSpan",24),u(),a("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),a("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),a("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),a("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(24),a("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),a("nzXl",12)("nzSpan",24),u(),a("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),a("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),a("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),a("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),a("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:[R,A,L,M,H,O,G,w,f,_,Z,W,Q,X,V,q,U,j,J],encapsulation:2});let l=i;return l})();var ce=(()=>{let i=class i{constructor(){this.expanded=!1}goLink(d){window&&(window.location.hash=d)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(d=>d.expandCode(this.expanded))}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=s({type:i,selectors:[["nz-demo-button"]],viewQuery:function(m,r){if(m&1&&v(A,5),m&2){let g;N(g=I())&&(r.codeBoxes=g)}},standalone:!0,features:[c],decls:434,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"],["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]:standalone"],[1,"api-type-label","directive"],[1,"api-type-label","standalone"],["onclick","window.location.hash = '[nz-button]:standalone'",1,"anchor"],["href","https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button","target","_blank","rel","noopener"],["id","nz-button-group:standalone"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-button-group:standalone'",1,"anchor"]],template:function(m,r){m&1&&(t(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),B("nzClick",function(k){return r.goLink(k)}),o(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7)(9,"nz-link",8)(10,"nz-link",9)(11,"nz-link",10)(12,"nz-link",11)(13,"nz-link",12),n()(),t(14,"section",13)(15,"h1"),e(16,"Button"),o(17,"span",14)(18,"span",15),t(19,"a",16),o(20,"span",17),n()(),t(21,"section",13),p(),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()()(),z(),n(),t(81,"h2")(82,"span"),e(83,"Examples"),n(),t(84,"span",24),B("click",function(){return r.expandAllCode()}),n()()(),t(85,"div",25)(86,"div",26)(87,"nz-code-box",27),o(88,"nz-demo-button-basic",28),t(89,"div",29),p(),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(),z(),n()(),t(107,"nz-code-box",30),o(108,"nz-demo-button-size",28),t(109,"div",29),p(),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(),z(),n()(),t(126,"nz-code-box",31),o(127,"nz-demo-button-loading",28),t(128,"div",29),p(),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(),z(),n()(),t(137,"nz-code-box",32),o(138,"nz-demo-button-button-group",28),t(139,"div",29),p(),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(),z(),n()(),t(159,"nz-code-box",33),o(160,"nz-demo-button-block",28),t(161,"div",29),p(),t(162,"p")(163,"code"),e(164,"nzBlock"),n(),e(165," property will make the button fit to its parent width."),n(),z(),n()()(),t(166,"div",26)(167,"nz-code-box",34),o(168,"nz-demo-button-icon",28),t(169,"div",29),p(),t(170,"p")(171,"code"),e(172,"nz-button"),n(),e(173," components can contain an "),t(174,"code"),e(175,"icon"),n(),e(176,". Just placing an "),t(177,"code"),e(178,"icon"),n(),e(179," within the "),t(180,"code"),e(181,"nz-button"),n()(),z(),n()(),t(182,"nz-code-box",35),o(183,"nz-demo-button-disabled",28),t(184,"div",29),p(),t(185,"p"),e(186,"To mark a button as disabled, add the "),t(187,"code"),e(188,"disabled"),n(),e(189," property to the "),t(190,"code"),e(191,"Button"),n(),e(192,"."),n(),z(),n()(),t(193,"nz-code-box",36),o(194,"nz-demo-button-multiple",28),t(195,"div",29),p(),t(196,"p"),e(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 "),t(198,"code"),e(199,"nz-dropdown"),n(),e(200,"."),n(),z(),n()(),t(201,"nz-code-box",37),o(202,"nz-demo-button-ghost",28),t(203,"div",29),p(),t(204,"p")(205,"code"),e(206,"nzGhost"),n(),e(207," property will make button's background transparent, it is common used in colored background."),n(),z(),n()(),t(208,"nz-code-box",38),o(209,"nz-demo-button-danger",28),t(210,"div",29),p(),t(211,"p"),e(212,"You can use "),t(213,"code"),e(214,"nzDanger"),n(),e(215," to mark button as danger status."),n(),z(),n()()()(),t(216,"section",39),p(),t(217,"h2",40)(218,"span"),e(219,"API"),n(),t(220,"a",41),e(221,"#"),n()(),t(222,"h3",42)(223,"span"),e(224,"[nz-button]"),n(),t(225,"label",43),e(226,"directive"),n(),t(227,"label",44),e(228,"standalone"),n(),t(229,"a",45),e(230,"#"),n()(),t(231,"blockquote")(232,"p"),e(233,"Note\uFF1Anz-button is a Directive, it accepts all props which are supported by "),t(234,"a",46),e(235,"native button"),n(),e(236,"."),n()(),t(237,"p"),e(238,"To get a customized button, just set "),t(239,"code"),e(240,"nzType"),n(),e(241,"/"),t(242,"code"),e(243,"nzShape"),n(),e(244,"/"),t(245,"code"),e(246,"nzSize"),n(),e(247,"/"),t(248,"code"),e(249,"nzLoading"),n(),e(250,"/"),t(251,"code"),e(252,"disabled"),n(),e(253,"."),n(),t(254,"table")(255,"thead")(256,"tr")(257,"th"),e(258,"Property"),n(),t(259,"th"),e(260,"Description"),n(),t(261,"th"),e(262,"Type"),n(),t(263,"th"),e(264,"Default"),n(),t(265,"th"),e(266,"Global Config"),n()()(),t(267,"tbody")(268,"tr")(269,"td")(270,"code"),e(271,"[disabled]"),n()(),t(272,"td"),e(273,"prevents a user from interacting with the button"),n(),t(274,"td")(275,"code"),e(276,"boolean"),n()(),t(277,"td")(278,"code"),e(279,"false"),n()(),o(280,"td"),n(),t(281,"tr")(282,"td")(283,"code"),e(284,"[nzGhost]"),n()(),t(285,"td"),e(286,"make background transparent and invert text and border colors"),n(),t(287,"td")(288,"code"),e(289,"boolean"),n()(),t(290,"td")(291,"code"),e(292,"false"),n()(),o(293,"td"),n(),t(294,"tr")(295,"td")(296,"code"),e(297,"[nzLoading]"),n()(),t(298,"td"),e(299,"set the loading status of button"),n(),t(300,"td")(301,"code"),e(302,"boolean"),n()(),t(303,"td")(304,"code"),e(305,"false"),n()(),o(306,"td"),n(),t(307,"tr")(308,"td")(309,"code"),e(310,"[nzShape]"),n()(),t(311,"td"),e(312,"can be set to "),t(313,"code"),e(314,"circle"),n(),t(315,"code"),e(316,"round"),n(),e(317," or omitted"),n(),t(318,"td")(319,"code"),e(320,"'circle'|'round'"),n()(),t(321,"td"),e(322,"-"),n(),o(323,"td"),n(),t(324,"tr")(325,"td")(326,"code"),e(327,"[nzSize]"),n()(),t(328,"td"),e(329,"can be set to "),t(330,"code"),e(331,"small"),n(),t(332,"code"),e(333,"large"),n(),e(334," or omitted"),n(),t(335,"td")(336,"code"),e(337,"'large'|'small'|'default'"),n()(),t(338,"td")(339,"code"),e(340,"'default'"),n()(),t(341,"td"),e(342,"\u2705"),n()(),t(343,"tr")(344,"td")(345,"code"),e(346,"[nzType]"),n()(),t(347,"td"),e(348,"can be set to "),t(349,"code"),e(350,"primary"),n(),t(351,"code"),e(352,"dashed"),n(),t(353,"code"),e(354,"text"),n(),t(355,"code"),e(356,"link"),n(),e(357," or omitted (meaning "),t(358,"code"),e(359,"default"),n(),e(360,")"),n(),t(361,"td")(362,"code"),e(363,"'primary'|'dashed'|'link'|'text'"),n()(),t(364,"td"),e(365,"-"),n(),o(366,"td"),n(),t(367,"tr")(368,"td")(369,"code"),e(370,"[nzBlock]"),n()(),t(371,"td"),e(372,"option to fit button width to its parent width"),n(),t(373,"td")(374,"code"),e(375,"boolean"),n()(),t(376,"td")(377,"code"),e(378,"false"),n()(),o(379,"td"),n(),t(380,"tr")(381,"td")(382,"code"),e(383,"[nzDanger]"),n()(),t(384,"td"),e(385,"set the danger status of button"),n(),t(386,"td"),e(387,"boolean"),n(),t(388,"td")(389,"code"),e(390,"false"),n()(),o(391,"td"),n()()(),t(392,"h3",47)(393,"span"),e(394,"nz-button-group"),n(),t(395,"label",48),e(396,"component"),n(),t(397,"label",44),e(398,"standalone"),n(),t(399,"a",49),e(400,"#"),n()(),t(401,"table")(402,"thead")(403,"tr")(404,"th"),e(405,"Property"),n(),t(406,"th"),e(407,"Description"),n(),t(408,"th"),e(409,"Type"),n(),t(410,"th"),e(411,"Default"),n(),t(412,"th"),e(413,"Global Config"),n()()(),t(414,"tbody")(415,"tr")(416,"td")(417,"code"),e(418,"[nzSize]"),n()(),t(419,"td"),e(420,"can be set to "),t(421,"code"),e(422,"small"),n(),t(423,"code"),e(424,"large"),n(),e(425," or omitted"),n(),t(426,"td")(427,"code"),e(428,"'large'|'small'|'default'"),n()(),t(429,"td")(430,"code"),e(431,"'default'"),n()(),t(432,"td"),e(433,"-"),n()()()(),z(),n()()),m&2&&(u(),a("nzOffsetTop",16),u(),a("nzAffix",!1),u(83),a("nzGutter",16),u(),a("nzXl",12)("nzSpan",24),u(),a("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),a("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),a("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),a("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(22),a("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),a("nzXl",12)("nzSpan",24),u(),a("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),a("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),a("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),a("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),a("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:[R,A,L,M,H,O,G,w,f,_,Z,W,Q,X,V,q,U,j,J],encapsulation:2});let l=i;return l})();var fe=[{path:"en",component:ce},{path:"zh",component:se}],At=fe;export{At as default};