1import{a as b,g as M,h as R,m as L,n as P}from"./chunk-4LWRTZ4J.js";import"./chunk-HECQD5M5.js";import"./chunk-WRS55NNU.js";import{D as be,Ja as U,Sd as A,Td as H,Wd as O,Xa as X,Xb as Te,bd as Be,d as he,db as Ee,fb as ke,hb as xe,ib as Ce,qb as T,sb as Se,vc as I}from"./chunk-FE3MHUBC.js";import{Cb as _,Eb as ce,Fb as de,Ja as me,K as ee,Qb as pe,Sb as se,Xb as l,Yb as e,Zb as t,Zc as w,_ as te,_b as a,a as Y,cc as ue,f as J,ha as ne,ic as h,kb as c,kc as ze,l as K,la as g,m as j,oc as k,pc as x,qa as u,qc as C,qd as ge,ra as z,sa as ie,ta as oe,uc as S,vd as q,wb as f,wc as fe,xa as ae,xb as le,ya as re,zc as n}from"./chunk-OQ4XWHPB.js";import{f as Z}from"./chunk-JNGVGNCT.js";var De=["backTop"];function ve(o,m){o&1&&(e(0,"div",5)(1,"div",6),a(2,"nz-icon",7),t()())}function Ne(o,m){}function Fe(o,m){if(o&1&&(e(0,"div",3,0),_(2,ve,3,0,"ng-template",null,1,w)(4,Ne,0,0,"ng-template",4),t()),o&2){let i=S(3),r=ze();fe("ant-back-top-rtl",r.dir==="rtl"),l("@fadeMotion",void 0),c(4),l("ngTemplateOutlet",r.nzTemplate||i)}}var _e="backTop",we=Ce({passive:!0}),E=(()=>{var r;let o,m=[],i=[];return r=class{nzConfigService=g(Ee);scrollSrv=g(Be);platform=g(xe);zone=g(de);cdr=g(ge);directionality=g(be);destroyRef=g(re);_nzModuleName=_e;scrollListenerDestroy$=new J;target=null;visible=!1;dir=this.directionality.value||"ltr";nzTemplate;nzVisibilityHeight=j(this,m,400);nzTarget=j(this,i);nzDuration=450;nzClick=new ce;set backTop(d){d&&(this.backTopClickSubscription.unsubscribe(),this.backTopClickSubscription=U(d.nativeElement,"click").pipe(X(this.destroyRef)).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=g(ae);constructor(){this.destroyRef.onDestroy(()=>{this.scrollListenerDestroy$.next(!0),this.scrollListenerDestroy$.complete()})}ngOnInit(){this.registerScrollEvent(),this.directionality.change?.pipe(X(this.destroyRef)).subscribe(d=>{this.dir=d,this.cdr.detectChanges()}),this.dir=this.directionality.value}getTarget(){return this.target||window}handleScroll(){let d=this.scrollSrv.getScroll(this.getTarget())>this.nzVisibilityHeight;this.visible!==d&&(this.visible=d,this.cdr.detectChanges())}registerScrollEvent(){this.platform.isBrowser&&(this.scrollListenerDestroy$.next(!0),this.handleScroll(),U(this.getTarget(),"scroll",we).pipe(ee(50),te(this.scrollListenerDestroy$)).subscribe(()=>this.handleScroll()))}ngOnChanges(d){let{nzTarget:s}=d;s&&(this.target=typeof this.nzTarget=="string"?this.doc.querySelector(this.nzTarget):this.nzTarget,this.registerScrollEvent())}},(()=>{let d=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;o=[ke()],K(null,null,o,{kind:"field",name:"nzVisibilityHeight",static:!1,private:!1,access:{has:s=>"nzVisibilityHeight"in s,get:s=>s.nzVisibilityHeight,set:(s,N)=>{s.nzVisibilityHeight=N}},metadata:d},m,i),d&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d})})(),Z(r,"\u0275fac",function(s){return new(s||r)}),Z(r,"\u0275cmp",f({type:r,selectors:[["nz-back-top"]],viewQuery:function(s,N){if(s&1&&k(De,5),s&2){let W;x(W=C())&&(N.backTop=W.first)}},inputs:{nzTemplate:"nzTemplate",nzVisibilityHeight:[2,"nzVisibilityHeight","nzVisibilityHeight",q],nzTarget:"nzTarget",nzDuration:[2,"nzDuration","nzDuration",q]},outputs:{nzClick:"nzClick"},exportAs:["nzBackTop"],features:[me],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(s,N){s&1&&pe(0,Fe,5,4,"div",2),s&2&&se(N.visible?0:-1)},dependencies:[he,Se,T],encapsulation:2,data:{animation:[Te]},changeDetection:0})),r})(),B=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=le({type:o});static \u0275inj=ne({imports:[E]})}return o})();var y=class o{static \u0275fac=function(i){return new(i||o)};static \u0275cmp=f({type:o,selectors:[["nz-demo-back-top-basic"]],decls:5,vars:0,template:function(i,r){i&1&&(a(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 Ie(o,m){o&1&&(e(0,"div",2),n(1,"UP"),t())}var D=class o{notify(){console.log("notify")}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=f({type:o,selectors:[["nz-demo-back-top-custom"]],decls:7,vars:2,consts:[["tpl",""],[3,"nzClick","nzTemplate","nzVisibilityHeight"],[1,"ant-back-top-inner"]],template:function(i,r){if(i&1){let p=ue();e(0,"nz-back-top",1),h("nzClick",function(){return ie(p),oe(r.notify())}),_(1,Ie,2,0,"ng-template",null,0,w),t(),n(3," Scroll down to see the bottom-right "),e(4,"strong"),n(5,"blue"),t(),n(6," button. ")}if(i&2){let p=S(2);l("nzTemplate",p)("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 v=class o{static \u0275fac=function(i){return new(i||o)};static \u0275cmp=f({type:o,selectors:[["nz-demo-back-top-target"]],decls:8,vars:1,consts:[["divTarget",""],[1,"long-div"],[1,"long-div-inner"],[3,"nzTarget"]],template:function(i,r){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),a(6,"div",2)(7,"nz-back-top",3),t()),i&2){let p=S(5);c(7),l("nzTarget",p)}},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 G=class o{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||o)};static \u0275cmp=f({type:o,selectors:[["nz-demo-back-top"]],viewQuery:function(i,r){if(i&1&&k(b,5),i&2){let p;x(p=C())&&(r.codeBoxes=p)}},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,r){i&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),h("nzClick",function(d){return r.goLink(d)}),a(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(),a(12,"span",8),e(13,"a",9),a(14,"nz-icon",10),t()(),a(15,"component-meta",11),e(16,"section",6),z(),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 v21 \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()(),u(),t(),e(39,"h2")(40,"span"),n(41,"\u4EE3\u7801\u6F14\u793A"),t(),e(42,"nz-icon",15),h("click",function(){return r.expandAllCode()}),t()()(),e(43,"div",16)(44,"div",17)(45,"nz-code-box",18),a(46,"nz-demo-back-top-basic",19),e(47,"div",20),z(),e(48,"p"),n(49,"\u6700\u7B80\u5355\u7684\u7528\u6CD5\u3002"),t(),u(),t()(),e(50,"nz-code-box",21),a(51,"nz-demo-back-top-target",19),e(52,"div",20),z(),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(),u(),t()()(),e(58,"div",17)(59,"nz-code-box",22),a(60,"nz-demo-back-top-custom",19),e(61,"div",20),z(),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(),u(),t()()()(),e(67,"section",23),z(),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(),a(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()(),a(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()(),a(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(),a(168,"td"),t()()(),u(),t()()),i&2&&(c(),l("nzOff
2setTop",16),c(),l("nzAffix",!1),c(41),l("nzGutter",16),c(),l("nzXl",12)("nzSpan",24),c(),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"),c(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"),c(8),l("nzXl",12)("nzSpan",24),c(),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:[P,b,L,M,R,O,H,A,I,T,y,D,v],encapsulation:2})};var Q=class o{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||o)};static \u0275cmp=f({type:o,selectors:[["nz-demo-back-top"]],viewQuery:function(i,r){if(i&1&&k(b,5),i&2){let p;x(p=C())&&(r.codeBoxes=p)}},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,r){i&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),h("nzClick",function(d){return r.goLink(d)}),a(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"),a(10,"span",7)(11,"span",8),e(12,"a",9),a(13,"nz-icon",10),t()(),a(14,"component-meta",11),e(15,"section",6),z(),e(16,"blockquote")(17,"p"),n(18,"\u26A0\uFE0F "),e(19,"strong"),n(20,"Note"),t(),n(21,": This component will be removed in v21, 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()(),u(),t(),e(42,"h2")(43,"span"),n(44,"Examples"),t(),e(45,"nz-icon",15),h("click",function(){return r.expandAllCode()}),t()()(),e(46,"div",16)(47,"div",17)(48,"nz-code-box",18),a(49,"nz-demo-back-top-basic",19),e(50,"div",20),z(),e(51,"p"),n(52,"The most basic usage."),t(),u(),t()(),e(53,"nz-code-box",21),a(54,"nz-demo-back-top-target",19),e(55,"div",20),z(),e(56,"p"),n(57,"specifies the scrollable area dom node."),t(),u(),t()()(),e(58,"div",17)(59,"nz-code-box",22),a(60,"nz-demo-back-top-custom",19),e(61,"div",20),z(),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(),u(),t()()()(),e(67,"section",23),z(),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(),a(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()(),a(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()(),a(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(),a(169,"td"),t()()(),u(),t()()),i&2&&(c(),l("nzOff
3setTop",16),c(),l("nzAffix",!1),c(44),l("nzGutter",16),c(),l("nzXl",12)("nzSpan",24),c(),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"),c(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"),c(5),l("nzXl",12)("nzSpan",24),c(),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:[P,b,L,M,R,O,H,A,I,T,y,D,v],encapsulation:2})};var Pe=[{path:"en",component:Q},{path:"zh",component:G}],vt=Pe;export{vt 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.