1import{a as g,g as R,h as P,m as V,n as G}from"./chunk-2ZL4YWDH.js";import"./chunk-DIGTPZB7.js";import"./chunk-ZM4OV56V.js";import{Dd as O,Ed as M,Hd as L,Na as be,Oa as Ee,Pb as Se,Ua as ke,Va as xe,_a as T,ab as Ce,gc as Te,lc as A,p as ge,va as U,zc as H}from"./chunk-KK7CC6GQ.js";import{Aa as ae,Ac as k,Bc as x,Cc as C,Gc as S,Hc as n,Ja as re,Jb as z,Ka as me,Kb as le,L as ee,Ld as he,Pb as N,Sc as ue,Wb as l,Yb as ce,a as Y,aa as w,bd as I,dc as de,f as J,ia as te,ic as e,id as ze,jc as t,kc as r,l as K,m as q,na as ne,nd as $,oc as pe,rc as h,sb as d,tc as se,wa as ie,xa as s,xd as fe,ya as u,yb as f,za as oe}from"./chunk-PXCXDVYP.js";import"./chunk-EQDQRRRY.js";var Ne=["backTop"];function Fe(a,m){a&1&&(e(0,"div",5)(1,"div",6),r(2,"nz-icon",7),t()())}function _e(a,m){}function we(a,m){if(a&1&&(e(0,"div",3,0),N(2,Fe,3,0,"ng-template",null,1,I)(4,_e,0,0,"ng-template",4),t()),a&2){let i=S(3),p=se();ce("ant-back-top-rtl",p.dir==="rtl"),l("@fadeMotion",void 0),d(4),l("ngTemplateOutlet",p.nzTemplate||i)}}var Ie="backTop",Ae=xe({passive:!0}),E=(()=>{let a,m=[],i=[];return class X{static{let o=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;a=[Ee()],K(null,null,a,{kind:"field",name:"nzVisibilityHeight",static:!1,private:!1,access:{has:c=>"nzVisibilityHeight"in c,get:c=>c.nzVisibilityHeight,set:(c,b)=>{c.nzVisibilityHeight=b}},metadata:o},m,i),o&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:o})}nzConfigService;scrollSrv;platform;zone;cdr;destroy$;directionality;_nzModuleName=Ie;scrollListenerDestroy$=new J;target=null;visible=!1;dir="ltr";nzTemplate;nzVisibilityHeight=q(this,m,400);nzTarget=q(this,i);nzDuration=450;nzClick=new re;set backTop(o){o&&(this.backTopClickSubscription.unsubscribe(),this.backTopClickSubscription=U(o.nativeElement,"click").pipe(w(this.destroy$)).subscribe(()=>{this.scrollSrv.scrollTo(this.getTarget(),0,{duration:this.nzDuration}),this.nzClick.observers.length&&this.zone.run(()=>this.nzClick.emit(!0))}))}backTopClickSubscription=Y.EMPTY;doc=ne(fe);constructor(o,c,b,_,ve,ye,De){this.nzConfigService=o,this.scrollSrv=c,this.platform=b,this.zone=_,this.cdr=ve,this.destroy$=ye,this.directionality=De,this.dir=this.directionality.value}ngOnInit(){this.registerScrollEvent(),this.directionality.change?.pipe(w(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}getTarget(){return this.target||window}handleScroll(){this.visible!==this.scrollSrv.getScroll(this.getTarget())>this.nzVisibilityHeight&&(this.visible=!this.visible,this.cdr.detectChanges())}registerScrollEvent(){this.platform.isBrowser&&(this.scrollListenerDestroy$.next(!0),this.handleScroll(),U(this.getTarget(),"scroll",Ae).pipe(ee(50),w(this.scrollListenerDestroy$)).subscribe(()=>this.handleScroll()))}ngOnDestroy(){this.scrollListenerDestroy$.next(!0),this.scrollListenerDestroy$.complete()}ngOnChanges(o){let{nzTarget:c}=o;c&&(this.target=typeof this.nzTarget=="string"?this.doc.querySelector(this.nzTarget):this.nzTarget,this.registerScrollEvent())}static \u0275fac=function(c){return new(c||X)(f(be),f(Te),f(ke),f(me),f(ze),f(A),f(ge))};static \u0275cmp=z({type:X,selectors:[["nz-back-top"]],viewQuery:function(c,b){if(c&1&&k(Ne,5),c&2){let _;x(_=C())&&(b.backTop=_.first)}},inputs:{nzTemplate:"nzTemplate",nzVisibilityHeight:[2,"nzVisibilityHeight","nzVisibilityHeight",$],nzTarget:"nzTarget",nzDuration:[2,"nzDuration","nzDuration",$]},outputs:{nzClick:"nzClick"},exportAs:["nzBackTop"],features:[ue([A]),ie],decls:1,vars:1,consts:[["backTop",""],["defaultContent",""],[1,"ant-back-top",3,"ant-back-top-rtl"],[1,"ant-back-top"],[3,"ngTemplateOutlet"],[1,"ant-back-top-content"],[1,"ant-back-top-icon"],["nzType","vertical-align-top"]],template:function(c,b){c&1&&N(0,we,5,4,"div",2),c&2&&de(b.visible?0:-1)},dependencies:[he,Ce,T],encapsulation:2,data:{animation:[Se]},changeDetection:0})}})(),B=(()=>{class a{static \u0275fac=function(p){return new(p||a)};static \u0275mod=le({type:a});static \u0275inj=te({imports:[E]})}return a})();var v=class a{static \u0275fac=function(i){return new(i||a)};static \u0275cmp=z({type:a,selectors:[["nz-demo-back-top-basic"]],decls:5,vars:0,template:function(i,p){i&1&&(r(0,"nz-back-top"),n(1," Scroll down to see the bottom-right "),e(2,"strong"),n(3,"gray"),t(),n(4," button. "))},dependencies:[B,E],styles:["strong[_ngcontent-%COMP%]{color:#40404099}"]})};function He(a,m){a&1&&(e(0,"div",2),n(1,"UP"),t())}var y=class a{notify(){console.log("notify")}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=z({type:a,selectors:[["nz-demo-back-top-custom"]],decls:7,vars:2,consts:[["tpl",""],[3,"nzClick","nzTemplate","nzVisibilityHeight"],[1,"ant-back-top-inner"]],template:function(i,p){if(i&1){let o=pe();e(0,"nz-back-top",1),h("nzClick",function(){return oe(o),ae(p.notify())}),N(1,He,2,0,"ng-template",null,0,I),t(),n(3," Scroll down to see the bottom-right "),e(4,"strong"),n(5,"blue"),t(),n(6," button. ")}if(i&2){let o=S(2);l("nzTemplate",o)("nzVisibilityHeight",100)}},dependencies:[B,E],styles:["[_nghost-%COMP%] .ant-back-top{bottom:100px}[_nghost-%COMP%] .ant-back-top-inner{height:40px;width:40px;line-height:40px;border-radius:4px;background-color:#1088e9;color:#fff;text-align:center;font-size:20px}[_nghost-%COMP%] strong{color:#1088e9}"]})};var D=class a{static \u0275fac=function(i){return new(i||a)};static \u0275cmp=z({type:a,selectors:[["nz-demo-back-top-target"]],decls:8,vars:1,consts:[["divTarget",""],[1,"long-div"],[1,"long-div-inner"],[3,"nzTarget"]],template:function(i,p){if(i&1&&(n(0," Scroll down to see the bottom-right "),e(1,"strong"),n(2,"gray"),t(),n(3," button. "),e(4,"div",1,0),r(6,"div",2)(7,"nz-back-top",3),t()),i&2){let o=S(5);d(7),l("nzTarget",o)}},dependencies:[B,E],styles:["[_nghost-%COMP%] .long-div{height:300px;overflow-y:scroll;background-image:url(//zos.alipayobjects.com/rmsportal/RmjwQiJorKyobvI.jpg)}[_nghost-%COMP%] .long-div-inner{height:1500px}[_nghost-%COMP%] .long-div .ant-back-top{right:150px}[_nghost-%COMP%] .long-div .ant-back-top-rtl{right:unset;left:150px}[_nghost-%COMP%] strong{color:#40404099}"]})};var Q=class a{expanded=!1;codeBoxes;goLink(m){window&&(window.location.hash=m)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEac
1h(m=>m.expandCode(this.expanded))}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=z({type:a,selectors:[["nz-demo-back-top"]],viewQuery:function(i,p){if(i&1&&k(g,5),i&2){let o;x(o=C())&&(p.codeBoxes=o)}},decls:169,vars:22,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-back-top-demo-basic","nzTitle","\u57FA\u672C"],["nzHref","#components-back-top-demo-custom","nzTitle","\u81EA\u5B9A\u4E49\u6837\u5F0F"],["nzHref","#components-back-top-demo-target","nzTitle","\u6EDA\u52A8\u5BB9\u5668"],["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/back-top/doc/index.zh-CN.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nzType","edit"],["name","back-top","description","\u8FD4\u56DE\u9875\u9762\u9876\u90E8\u7684\u64CD\u4F5C\u6309\u94AE\u3002","language","zh"],["href","/components/float-button/zh"],["id","\u4F55\u65F6\u4F7F\u7528"],["onclick","window.location.hash = '\u4F55\u65F6\u4F7F\u7528'",1,"anchor"],["nzType","appstore","nz-tooltip","","nzTooltipTitle","\u5C55\u5F00\u5168\u90E8\u4EE3\u7801",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzXl","nzSpan"],["nzTitle","\u57FA\u672C","nzSelector","nz-demo-back-top-basic","nzGenerateCommand","ng g ng-zorro-antd:back-top-basic <name>","nzComponentName","NzDemoBackTopBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","\u6EDA\u52A8\u5BB9\u5668","nzSelector","nz-demo-back-top-target","nzGenerateCommand","ng g ng-zorro-antd:back-top-target <name>","nzComponentName","NzDemoBackTopTargetComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u81EA\u5B9A\u4E49\u6837\u5F0F","nzSelector","nz-demo-back-top-custom","nzGenerateCommand","ng g ng-zorro-antd:back-top-custom <name>","nzComponentName","NzDemoBackTopCustomComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-back-top"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-back-top'",1,"anchor"]],template:function(i,p){i&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),h("nzClick",function(c){return p.goLink(c)}),r(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5),t()(),e(7,"section",6)(8,"h1"),n(9,"BackTop"),e(10,"span",7),n(11,"\u56DE\u5230\u9876\u90E8"),t(),r(12,"span",8),e(13,"a",9),r(14,"nz-icon",10),t()(),r(15,"component-meta",11),e(16,"section",6),u(),e(17,"blockquote")(18,"p"),n(19,"\u26A0\uFE0F "),e(20,"strong"),n(21,"\u6CE8\u610F"),t(),n(22,"\uFF1A\u8BE5\u7EC4\u4EF6\u5C06\u5728\u540E\u7EED\u7248\u672C\u79FB\u9664\uFF0C\u8BF7\u4F7F\u7528 "),e(23,"a",12),n(24,"FloatButton"),t(),n(25," \u4E2D\u7684 "),e(26,"code"),n(27,"<nz-float-button-top>"),t(),n(28," \u7EC4\u4EF6\u66FF\u4EE3\u3002"),t()(),e(29,"h2",13)(30,"span"),n(31,"\u4F55\u65F6\u4F7F\u7528"),t(),e(32,"a",14),n(33,"#"),t()(),e(34,"ul")(35,"li"),n(36,"\u5F53\u9875\u9762\u5185\u5BB9\u533A\u57DF\u6BD4\u8F83\u957F\u65F6\uFF1B"),t(),e(37,"li"),n(38,"\u5F53\u7528\u6237\u9700\u8981\u9891\u7E41\u8FD4\u56DE\u9876\u90E8\u67E5\u770B\u76F8\u5173\u5185\u5BB9\u65F6\u3002"),t()(),s(),t(),e(39,"h2")(40,"span"),n(41,"\u4EE3\u7801\u6F14\u793A"),t(),e(42,"nz-icon",15),h("click",function(){return p.expandAllCode()}),t()()(),e(43,"div",16)(44,"div",17)(45,"nz-code-box",18),r(46,"nz-demo-back-top-basic",19),e(47,"div",20),u(),e(48,"p"),n(49,"\u6700\u7B80\u5355\u7684\u7528\u6CD5\u3002"),t(),s(),t()(),e(50,"nz-code-box",21),r(51,"nz-demo-back-top-target",19),e(52,"div",20),u(),e(53,"p"),n(54,"\u8BBE\u7F6E "),e(55,"code"),n(56,"nzTarget"),t(),n(57," \u53C2\u6570\uFF0C\u5141\u8BB8\u5BF9\u67D0\u4E2A\u5BB9\u5668\u8FD4\u56DE\u9876\u90E8\u3002"),t(),s(),t()()(),e(58,"div",17)(59,"nz-code-box",22),r(60,"nz-demo-back-top-custom",19),e(61,"div",20),u(
1),e(62,"p"),n(63,"\u53EF\u4EE5\u81EA\u5B9A\u4E49\u56DE\u5230\u9876\u90E8\u6309\u94AE\u7684\u6837\u5F0F\uFF0C\u9650\u5236\u5BBD\u9AD8\uFF1A"),e(64,"code"),n(65,"40px * 40px"),t(),n(66,"\u3002"),t(),s(),t()()()(),e(67,"section",23),u(),e(68,"h2",24)(69,"span"),n(70,"API"),t(),e(71,"a",25),n(72,"#"),t()(),e(73,"h3",26)(74,"span"),n(75,"nz-back-top"),t(),e(76,"label",27),n(77,"component"),t(),e(78,"a",28),n(79,"#"),t()(),e(80,"blockquote")(81,"p"),n(82,"\u6709\u9ED8\u8BA4\u6837\u5F0F\uFF0C\u8DDD\u79BB\u5E95\u90E8 "),e(83,"code"),n(84,"50px"),t(),n(85,`\uFF0C\u53EF\u8986\u76D6\u3002 2\u81EA\u5B9A\u4E49\u6837\u5F0F\u5BBD\u9AD8\u4E0D\u5927\u4E8E `),e(86,"code"),n(87,"40px * 40px"),t(),n(88,"\u3002"),t()(),e(89,"table")(90,"thead")(91,"tr")(92,"th"),n(93,"\u6210\u5458"),t(),e(94,"th"),n(95,"\u8BF4\u660E"),t(),e(96,"th"),n(97,"\u7C7B\u578B"),t(),e(98,"th"),n(99,"\u9ED8\u8BA4\u503C"),t(),e(100,"th"),n(101,"\u5168\u5C40\u914D\u7F6E"),t()()(),e(102,"tbody")(103,"tr")(104,"td")(105,"code"),n(106,"[nzTemplate]"),t()(),e(107,"td"),n(108,"\u81EA\u5B9A\u4E49\u5185\u5BB9\uFF0C\u89C1\u793A\u4F8B"),t(),e(109,"td")(110,"code"),n(111,"TemplateRef<void>"),t()(),e(112,"td"),n(113,"-"),t(),r(114,"td"),t(),e(115,"tr")(116,"td")(117,"code"),n(118,"[nzVisibilityHeight]"),t()(),e(119,"td"),n(120,"\u6EDA\u52A8\u9AD8\u5EA6\u8FBE\u5230\u6B64\u53C2\u6570\u503C\u624D\u51FA\u73B0 "),e(121,"code"),n(122,"nz-back-top"),t()(),e(123,"td")(124,"code"),n(125,"number"),t()(),e(126,"td")(127,"code"),n(128,"400"),t()(),e(129,"td"),n(130,"\u2705"),t()(),e(131,"tr")(132,"td")(133,"code"),n(134,"[nzTarget]"),t()(),e(135,"td"),n(136,"\u8BBE\u7F6E\u9700\u8981\u76D1\u542C\u5176\u6EDA\u52A8\u4E8B\u4EF6\u7684\u5143\u7D20\uFF0C\u503C\u4E3A\u4E00\u4E2A\u8FD4\u56DE\u5BF9\u5E94 DOM \u5143\u7D20\u7684\u51FD\u6570"),t(),e(137,"td")(138,"code"),n(139,"string | Element"),t()(),e(140,"td")(141,"code"),n(142,"window"),t()(),r(143,"td"),t(),e(144,"tr")(145,"td")(146,"code"),n(147,"[nzDuration]"),t()(),e(148,"td"),n(149,"\u56DE\u5230\u9876\u90E8\u6240\u9700\u65F6\u95F4\uFF08ms\uFF09"),t(),e(150,"td")(151,"code"),n(152,"number"),t()(),e(153,"td")(154,"code"),n(155,"450"),t()(),r(156,"td"),t(),e(157,"tr")(158,"td")(159,"code"),n(160,"(nzClick)"),t()(),e(161,"td"),n(162,"\u70B9\u51FB\u6309\u94AE\u7684\u56DE\u8C03\u51FD\u6570"),t(),e(163,"td")(164,"code"),n(165,"EventEmitter<boolean>"),t()(),e(166,"td"),n(167,"-"),t(),r(168,"td"),t()()(),s(),t()()),i&2&&(d(),l("nzOffsetTop",16),d(),l("nzAffix",!1),d(41),l("nzGutter",16),d(),l("nzXl",12)("nzSpan",24),d(),l("nzId","components-back-top-demo-basic")("nzLink","components-back-top-demo-basic")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/back-top/demo/basic.md"),d(5),l("nzId","components-back-top-demo-target")("nzLink","components-back-top-demo-target")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/back-top/demo/target.md"),d(8),l("nzXl",12)("nzSpan",24),d(),l("nzId","components-back-top-demo-custom")("nzLink","components-back-top-demo-custom")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/back-top/demo/custom.md"))},dependencies:[G,g,V,R,P,L,M,O,H,T,v,y,D],encapsulation:2})};var Z=class a{expanded=!1;codeBoxes;goLink(m){window&&(window.location.hash=m)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(m=>m.expandCode(this.expanded))}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=z({type:a,selectors:[["nz-demo-back-top"]],viewQuery:function(i,p){if(i&1&&k(g,5),i&2){let o;x(o=C())&&(p.codeBoxes=o)}},decls:170,vars:22,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-back-top-demo-basic","nzTitle","Basic"],["nzHref","#components-back-top-demo-custom","nzTitle","Custom style"],["nzHref","#components-back-top-demo-target","nzTitle","Using nzTarget"],["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/back-top/doc/index.en-US.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nzType","edit"],["name","back-top","description","Makes it easy to go back to the top of the page.","language","en"],["href","/components/float-button/en"],["id","when_to_use"],["onclick","window.location.hash = 'when_to_use'",1,"anchor"],["nzType","appstore","nz-tooltip","","nzTooltipTitle","Expand All Code",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzXl","nzSpan"],["nzTitle","Basic","nzSelector","nz-demo-back-top-basic","nzGenerateCommand","ng g ng-zorro-antd:back-top-basic <name>","nzComponentName","NzDemoBackTopBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","Using nzTarget","nzSelector","nz-demo-back-top-target","nzGenerateCommand","ng g ng-zorro-antd:back-top-target <name>","nzComponentName","NzDemoBackTopTargetComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Custom style","nzSelector","nz-demo-back-top-custom","nzGenerateCommand","ng g ng-zorro-antd:back-top-custom <name>","nzComponentName","NzDemoBackTopCustomComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-back-top"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-back-top'",1,"anchor"]],template:function(i,p){i&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),h("nzClick",function(c){return p.goLink(c)}),r(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5),t()(),e(7,"section",6)(8,"h1"),n(9,"BackTop"),r(10,"span",7)(11,"span",8),e(12,"a",9),r(13,"nz-icon",10),t()(),r(14,"component-meta",11),e(15,"section",6),u(),e(16,"blockquote")(17,"p"),n(18,"\u26A0\uFE0F "),e(19,"strong"),n(20,"Note"),t(),n(21,": This component will be removed later, please use "),e(22,"code"),n(23,"<nz-float-button-top>"),t(),n(24," in "),e(25,"a",12),n(26,"FloatButton"),t(),n(27," instead."),t()(),e(28,"p")(29,"code"),n(30,"nz-back-top"),t(),n(31," makes it easy to go back to the top of the page."),t(),e(32,"h2",13)(33,"span"),n(34,"When To Use"),t(),e(35,"a",14),n(36,"#"),t()(),e(37,"ul")(38,"li"),n(39,"When the page content is very long."),t(),e(40,"li"),n(41,"When you need to go back to the top very frequently in order to view the contents."),t()(),s(),t(),e(42,"h2")(43,"span"),n(44,"Examples"),t(),e(45,"nz-icon",15),h("click",function(){return p.exp
2andAllCode()}),t()()(),e(46,"div",16)(47,"div",17)(48,"nz-code-box",18),r(49,"nz-demo-back-top-basic",19),e(50,"div",20),u(),e(51,"p"),n(52,"The most basic usage."),t(),s(),t()(),e(53,"nz-code-box",21),r(54,"nz-demo-back-top-target",19),e(55,"div",20),u(),e(56,"p"),n(57,"specifies the scrollable area dom node."),t(),s(),t()()(),e(58,"div",17)(59,"nz-code-box",22),r(60,"nz-demo-back-top-custom",19),e(61,"div",20),u(),e(62,"p"),n(63,"You can customize the style of the button, just note the size limit: no more than "),e(64,"code"),n(65,"40px * 40px"),t(),n(66,"."),t(),s(),t()()()(),e(67,"section",23),u(),e(68,"h2",24)(69,"span"),n(70,"API"),t(),e(71,"a",25),n(72,"#"),t()(),e(73,"h3",26)(74,"span"),n(75,"nz-back-top"),t(),e(76,"label",27),n(77,"component"),t(),e(78,"a",28),n(79,"#"),t()(),e(80,"blockquote")(81,"p"),n(82,"The distance to the bottom is set to "),e(83,"code"),n(84,"50px"),t(),n(85,` by default, which is overridable. 3If you decide to use custom styles, please note the size limit: no more than `),e(86,"code"),n(87,"40px * 40px"),t(),n(88,"."),t()(),e(89,"table")(90,"thead")(91,"tr")(92,"th"),n(93,"Property"),t(),e(94,"th"),n(95,"Description"),t(),e(96,"th"),n(97,"Type"),t(),e(98,"th"),n(99,"Default"),t(),e(100,"th"),n(101,"Global Config"),t()()(),e(102,"tbody")(103,"tr")(104,"td")(105,"code"),n(106,"[nzTemplate]"),t()(),e(107,"td"),n(108,"custom content"),t(),e(109,"td")(110,"code"),n(111,"TemplateRef<void>"),t()(),e(112,"td"),n(113,"-"),t(),r(114,"td"),t(),e(115,"tr")(116,"td")(117,"code"),n(118,"[nzVisibilityHeight]"),t()(),e(119,"td"),n(120,"the "),e(121,"code"),n(122,"nz-back-top"),t(),n(123," button will not show until the scroll height reaches this value"),t(),e(124,"td")(125,"code"),n(126,"number"),t()(),e(127,"td")(128,"code"),n(129,"400"),t()(),e(130,"td"),n(131,"\u2705"),t()(),e(132,"tr")(133,"td")(134,"code"),n(135,"[nzTarget]"),t()(),e(136,"td"),n(137,"specifies the scrollable area dom node"),t(),e(138,"td")(139,"code"),n(140,"string | Element"),t()(),e(141,"td")(142,"code"),n(143,"window"),t()(),r(144,"td"),t(),e(145,"tr")(146,"td")(147,"code"),n(148,"[nzDuration]"),t()(),e(149,"td"),n(150,"Time to return to top (ms)"),t(),e(151,"td")(152,"code"),n(153,"number"),t()(),e(154,"td")(155,"code"),n(156,"450"),t()(),r(157,"td"),t(),e(158,"tr")(159,"td")(160,"code"),n(161,"(nzClick)"),t()(),e(162,"td"),n(163,"a callback function, which can be executed when you click the button"),t(),e(164,"td")(165,"code"),n(166,"EventEmitter<boolean>"),t()(),e(167,"td"),n(168,"-"),t(),r(169,"td"),t()()(),s(),t()()),i&2&&(d(),l("nzOffsetTop",16),d(),l("nzAffix",!1),d(44),l("nzGutter",16),d(),l("nzXl",12)("nzSpan",24),d(),l("nzId","components-back-top-demo-basic")("nzLink","components-back-top-demo-basic")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/back-top/demo/basic.md"),d(5),l("nzId","components-back-top-demo-target")("nzLink","components-back-top-demo-target")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/back-top/demo/target.md"),d(5),l("nzXl",12)("nzSpan",24),d(),l("nzId","components-back-top-demo-custom")("nzLink","components-back-top-demo-custom")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/back-top/demo/custom.md"))},dependencies:[G,g,V,R,P,L,M,O,H,T,v,y,D],encapsulation:2})};var Ge=[{path:"en",component:Z},{path:"zh",component:Q}],_t=Ge;export{_t as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.