-
Notifications
You must be signed in to change notification settings - Fork 11
/
chunk-A3XAG5QC.js
3 lines (3 loc) · 20.6 KB
/
chunk-A3XAG5QC.js
1
2
3
import{a as g,g as O,h as M,j as R}from"./chunk-Q4ISATUO.js";import"./chunk-JXWNPNAC.js";import{Ca as T,Ea as Ee,Fa as be,Hc as A,Ic as I,Lc as H,Nb as ke,Sb as _,ec as w,ia as Z,ja as ze,la as he,ua as fe,ub as xe,va as ge}from"./chunk-YWVGY2C2.js";import{Aa as u,Ac as x,Ba as ee,Bc as k,Ca as te,Cc as S,Gc as C,Hc as n,Hd as ue,Ib as z,Jb as oe,L as W,La as ne,Ma as ie,Ob as ae,Pb as v,Pc as de,Wb as c,Yb as re,_c as N,a as $,ba as F,dc as me,ed as pe,f as q,ic as e,ja as Y,jc as t,jd as j,kc as m,l as X,m as P,oa as J,oc as le,rb as d,rc as f,sb as h,tc as ce,td as se,ya as K,za as s}from"./chunk-GBKJFEQZ.js";import"./chunk-EQDQRRRY.js";var De=["backTop"];function Fe(i,b){i&1&&(e(0,"div",5)(1,"div",6),m(2,"nz-icon",7),t()())}function Ne(i,b){}function _e(i,b){if(i&1&&(e(0,"div",3,0),v(2,Fe,3,0,"ng-template",null,1,N)(4,Ne,0,0,"ng-template",4),t()),i&2){let l=C(3),o=ce();re("ant-back-top-rtl",o.dir==="rtl"),c("@fadeMotion",void 0),d(4),c("ngTemplateOutlet",o.nzTemplate||l)}}var we="backTop",Ae=he({passive:!0}),E=(()=>{let i,b=[],l=[];return class Q{static{let r=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;i=[ge()],X(null,null,i,{kind:"field",name:"nzVisibilityHeight",static:!1,private:!1,access:{has:a=>"nzVisibilityHeight"in a,get:a=>a.nzVisibilityHeight,set:(a,p)=>{a.nzVisibilityHeight=p}},metadata:r},b,l),r&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r})}set backTop(r){r&&(this.backTopClickSubscription.unsubscribe(),this.backTopClickSubscription=Z(r.nativeElement,"click").pipe(F(this.destroy$)).subscribe(()=>{this.scrollSrv.scrollTo(this.getTarget(),0,{duration:this.nzDuration}),this.nzClick.observers.length&&this.zone.run(()=>this.nzClick.emit(!0))}))}constructor(r,a,p,D,Be,ve,ye){this.nzConfigService=r,this.scrollSrv=a,this.platform=p,this.zone=D,this.cdr=Be,this.destroy$=ve,this.directionality=ye,this._nzModuleName=we,this.scrollListenerDestroy$=new q,this.target=null,this.visible=!1,this.dir="ltr",this.nzVisibilityHeight=P(this,b,400),this.nzTarget=P(this,l),this.nzDuration=450,this.nzClick=new ne,this.backTopClickSubscription=$.EMPTY,this.doc=J(se),this.dir=this.directionality.value}ngOnInit(){this.registerScrollEvent(),this.directionality.change?.pipe(F(this.destroy$)).subscribe(r=>{this.dir=r,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(),Z(this.getTarget(),"scroll",Ae).pipe(W(50),F(this.scrollListenerDestroy$)).subscribe(()=>this.handleScroll()))}ngOnDestroy(){this.scrollListenerDestroy$.next(!0),this.scrollListenerDestroy$.complete()}ngOnChanges(r){let{nzTarget:a}=r;a&&(this.target=typeof this.nzTarget=="string"?this.doc.querySelector(this.nzTarget):this.nzTarget,this.registerScrollEvent())}static{this.\u0275fac=function(a){return new(a||Q)(h(fe),h(ke),h(ze),h(ie),h(pe),h(_),h(be))}}static{this.\u0275cmp=z({type:Q,selectors:[["nz-back-top"]],viewQuery:function(a,p){if(a&1&&x(De,5),a&2){let D;k(D=S())&&(p.backTop=D.first)}},inputs:{nzTemplate:"nzTemplate",nzVisibilityHeight:[2,"nzVisibilityHeight","nzVisibilityHeight",j],nzTarget:"nzTarget",nzDuration:[2,"nzDuration","nzDuration",j]},outputs:{nzClick:"nzClick"},exportAs:["nzBackTop"],features:[de([_]),ae,K],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(a,p){a&1&&v(0,_e,5,4,"div",2),a&2&&me(p.visible?0:-1)},dependencies:[ue,Ee,T],encapsulation:2,data:{animation:[xe]},changeDetection:0})}}})(),B=(()=>{class i{static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275mod=oe({type:i})}static{this.\u0275inj=Y({imports:[E]})}}return i})();var L=(()=>{class i{static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=z({type:i,selectors:[["nz-demo-back-top-basic"]],decls:5,vars:0,template:function(o,r){o&1&&(m(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}"]})}}return i})();function Ie(i,b){i&1&&(e(0,"div",2),n(1,"UP"),t())}var V=(()=>{class i{notify(){console.log("notify")}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=z({type:i,selectors:[["nz-demo-back-top-custom"]],decls:7,vars:2,consts:[["tpl",""],[3,"nzClick","nzTemplate","nzVisibilityHeight"],[1,"ant-back-top-inner"]],template:function(o,r){if(o&1){let a=le();e(0,"nz-back-top",1),f("nzClick",function(){return ee(a),te(r.notify())}),v(1,Ie,2,0,"ng-template",null,0,N),t(),n(3," Scroll down to see the bottom-right "),e(4,"strong"),n(5,"blue"),t(),n(6," button. ")}if(o&2){let a=C(2);c("nzTemplate",a)("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}"]})}}return i})();var G=(()=>{class i{static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=z({type:i,selectors:[["nz-demo-back-top-target"]],decls:8,vars:1,consts:[["divTarget",""],[1,"long-div"],[1,"long-div-inner"],[3,"nzTarget"]],template:function(o,r){if(o&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),m(6,"div",2)(7,"nz-back-top",3),t()),o&2){let a=C(5);d(7),c("nzTarget",a)}},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}"]})}}return i})();var Ce=(()=>{class i{constructor(){this.expanded=!1}goLink(l){window&&(window.location.hash=l)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(l=>l.expandCode(this.expanded))}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=z({type:i,selectors:[["nz-demo-back-top"]],viewQuery:function(o,r){if(o&1&&x(g,5),o&2){let a;k(a=S())&&(r.codeBoxes=a)}},decls:181,vars:19,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"],["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","\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","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","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","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(o,r){o&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),f("nzClick",function(p){return r.goLink(p)}),m(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(),m(12,"span",8),e(13,"a",9),m(14,"nz-icon",10),t()(),e(15,"section",6),u(),e(16,"ul")(17,"li"),n(18,"\u6CE8\u610F\uFF1A\u8BE5\u7EC4\u4EF6\u5C06\u5728\u540E\u7EED\u79FB\u9664\uFF0C\u8BF7\u524D\u5F80 FloatButton \u7EC4\u4EF6\u4E2D\u4F7F\u7528 "),e(19,"code"),n(20,"<nz-float-button-top></nz-float-button-top>"),t()()(),e(21,"p"),n(22,"\u8FD4\u56DE\u9875\u9762\u9876\u90E8\u7684\u64CD\u4F5C\u6309\u94AE\u3002"),t(),e(23,"h2",11)(24,"span"),n(25,"\u4F55\u65F6\u4F7F\u7528"),t(),e(26,"a",12),n(27,"#"),t()(),e(28,"ul")(29,"li"),n(30,"\u5F53\u9875\u9762\u5185\u5BB9\u533A\u57DF\u6BD4\u8F83\u957F\u65F6\uFF1B"),t(),e(31,"li"),n(32,"\u5F53\u7528\u6237\u9700\u8981\u9891\u7E41\u8FD4\u56DE\u9876\u90E8\u67E5\u770B\u76F8\u5173\u5185\u5BB9\u65F6\u3002"),t()(),e(33,"pre",13)(34,"code")(35,"span",14),n(36,"import"),t(),n(37," "),e(38,"span",15),n(39,"{"),t(),n(40," NzBackTopModule "),e(41,"span",15),n(42,"}"),t(),n(43," "),e(44,"span",14),n(45,"from"),t(),n(46," "),e(47,"span",16),n(48,"'ng-zorro-antd/back-top'"),t(),e(49,"span",15),n(50,";"),t()()(),s(),t(),e(51,"h2")(52,"span"),n(53,"\u4EE3\u7801\u6F14\u793A"),t(),e(54,"span",17),f("click",function(){return r.expandAllCode()}),t()()(),e(55,"div",18)(56,"div",19)(57,"nz-code-box",20),m(58,"nz-demo-back-top-basic",21),e(59,"div",22),u(),e(60,"p"),n(61,"\u6700\u7B80\u5355\u7684\u7528\u6CD5\u3002"),t(),s(),t()(),e(62,"nz-code-box",23),m(63,"nz-demo-back-top-target",21),e(64,"div",22),u(),e(65,"p"),n(66,"\u8BBE\u7F6E "),e(67,"code"),n(68,"nzTarget"),t(),n(69," \u53C2\u6570\uFF0C\u5141\u8BB8\u5BF9\u67D0\u4E2A\u5BB9\u5668\u8FD4\u56DE\u9876\u90E8\u3002"),t(),s(),t()()(),e(70,"div",19)(71,"nz-code-box",24),m(72,"nz-demo-back-top-custom",21),e(73,"div",22),u(),e(74,"p"),n(75,"\u53EF\u4EE5\u81EA\u5B9A\u4E49\u56DE\u5230\u9876\u90E8\u6309\u94AE\u7684\u6837\u5F0F\uFF0C\u9650\u5236\u5BBD\u9AD8\uFF1A"),e(76,"code"),n(77,"40px * 40px"),t(),n(78,"\u3002"),t(),s(),t()()()(),e(79,"section",25),u(),e(80,"h2",26)(81,"span"),n(82,"API"),t(),e(83,"a",27),n(84,"#"),t()(),e(85,"h3",28)(86,"span"),n(87,"nz-back-top"),t(),e(88,"label",29),n(89,"component"),t(),e(90,"a",30),n(91,"#"),t()(),e(92,"blockquote")(93,"p"),n(94,"\u6709\u9ED8\u8BA4\u6837\u5F0F\uFF0C\u8DDD\u79BB\u5E95\u90E8 "),e(95,"code"),n(96,"50px"),t(),n(97,`\uFF0C\u53EF\u8986\u76D6\u3002
\u81EA\u5B9A\u4E49\u6837\u5F0F\u5BBD\u9AD8\u4E0D\u5927\u4E8E `),e(98,"code"),n(99,"40px * 40px"),t(),n(100,"\u3002"),t()(),e(101,"table")(102,"thead")(103,"tr")(104,"th"),n(105,"\u6210\u5458"),t(),e(106,"th"),n(107,"\u8BF4\u660E"),t(),e(108,"th"),n(109,"\u7C7B\u578B"),t(),e(110,"th"),n(111,"\u9ED8\u8BA4\u503C"),t(),e(112,"th"),n(113,"\u5168\u5C40\u914D\u7F6E"),t()()(),e(114,"tbody")(115,"tr")(116,"td")(117,"code"),n(118,"[nzTemplate]"),t()(),e(119,"td"),n(120,"\u81EA\u5B9A\u4E49\u5185\u5BB9\uFF0C\u89C1\u793A\u4F8B"),t(),e(121,"td")(122,"code"),n(123,"TemplateRef<void>"),t()(),e(124,"td"),n(125,"-"),t(),m(126,"td"),t(),e(127,"tr")(128,"td")(129,"code"),n(130,"[nzVisibilityHeight]"),t()(),e(131,"td"),n(132,"\u6EDA\u52A8\u9AD8\u5EA6\u8FBE\u5230\u6B64\u53C2\u6570\u503C\u624D\u51FA\u73B0 "),e(133,"code"),n(134,"nz-back-top"),t()(),e(135,"td")(136,"code"),n(137,"number"),t()(),e(138,"td")(139,"code"),n(140,"400"),t()(),e(141,"td"),n(142,"\u2705"),t()(),e(143,"tr")(144,"td")(145,"code"),n(146,"[nzTarget]"),t()(),e(147,"td"),n(148,"\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(149,"td")(150,"code"),n(151,"string | Element"),t()(),e(152,"td")(153,"code"),n(154,"window"),t()(),m(155,"td"),t(),e(156,"tr")(157,"td")(158,"code"),n(159,"[nzDuration]"),t()(),e(160,"td"),n(161,"\u56DE\u5230\u9876\u90E8\u6240\u9700\u65F6\u95F4\uFF08ms\uFF09"),t(),e(162,"td")(163,"code"),n(164,"number"),t()(),e(165,"td")(166,"code"),n(167,"450"),t()(),m(168,"td"),t(),e(169,"tr")(170,"td")(171,"code"),n(172,"(nzClick)"),t()(),e(173,"td"),n(174,"\u70B9\u51FB\u6309\u94AE\u7684\u56DE\u8C03\u51FD\u6570"),t(),e(175,"td")(176,"code"),n(177,"EventEmitter<boolean>"),t()(),e(178,"td"),n(179,"-"),t(),m(180,"td"),t()()(),s(),t()()),o&2&&(d(),c("nzOffsetTop",16),d(),c("nzAffix",!1),d(53),c("nzGutter",16),d(),c("nzXl",12)("nzSpan",24),d(),c("nzId","components-back-top-demo-basic")("nzLink","components-back-top-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/back-top/demo/basic.md"),d(5),c("nzId","components-back-top-demo-target")("nzLink","components-back-top-demo-target")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/back-top/demo/target.md"),d(8),c("nzXl",12)("nzSpan",24),d(),c("nzId","components-back-top-demo-custom")("nzLink","components-back-top-demo-custom")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/back-top/demo/custom.md"))},dependencies:[R,g,O,M,H,I,A,w,T,L,V,G],encapsulation:2})}}return i})();var Te=(()=>{class i{constructor(){this.expanded=!1}goLink(l){window&&(window.location.hash=l)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(l=>l.expandCode(this.expanded))}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=z({type:i,selectors:[["nz-demo-back-top"]],viewQuery:function(o,r){if(o&1&&x(g,5),o&2){let a;k(a=S())&&(r.codeBoxes=a)}},decls:181,vars:19,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"],["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","Basic","nzSelector","nz-demo-back-top-basic","nzGenerateCommand","ng g ng-zorro-antd:back-top-basic <name>","nzComponentName","NzDemoBackTopBasicComponent","nzIframeSource","null",3,"nzId","nzLink","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","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","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(o,r){o&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),f("nzClick",function(p){return r.goLink(p)}),m(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"),m(10,"span",7)(11,"span",8),e(12,"a",9),m(13,"nz-icon",10),t()(),e(14,"section",6),u(),e(15,"ul")(16,"li"),n(17,"Note: This component will be removed later. Please use "),e(18,"code"),n(19,"<nz-float-button-top></nz-float-button-top>"),t(),n(20," in the FloatButton component."),t()(),e(21,"p")(22,"code"),n(23,"nz-back-top"),t(),n(24," makes it easy to go back to the top of the page."),t(),e(25,"h2",11)(26,"span"),n(27,"When To Use"),t(),e(28,"a",12),n(29,"#"),t()(),e(30,"ul")(31,"li"),n(32,"When the page content is very long."),t(),e(33,"li"),n(34,"When you need to go back to the top very frequently in order to view the contents."),t()(),e(35,"pre",13)(36,"code")(37,"span",14),n(38,"import"),t(),n(39," "),e(40,"span",15),n(41,"{"),t(),n(42," NzBackTopModule "),e(43,"span",15),n(44,"}"),t(),n(45," "),e(46,"span",14),n(47,"from"),t(),n(48," "),e(49,"span",16),n(50,"'ng-zorro-antd/back-top'"),t(),e(51,"span",15),n(52,";"),t()()(),s(),t(),e(53,"h2")(54,"span"),n(55,"Examples"),t(),e(56,"span",17),f("click",function(){return r.expandAllCode()}),t()()(),e(57,"div",18)(58,"div",19)(59,"nz-code-box",20),m(60,"nz-demo-back-top-basic",21),e(61,"div",22),u(),e(62,"p"),n(63,"The most basic usage."),t(),s(),t()(),e(64,"nz-code-box",23),m(65,"nz-demo-back-top-target",21),e(66,"div",22),u(),e(67,"p"),n(68,"specifies the scrollable area dom node."),t(),s(),t()()(),e(69,"div",19)(70,"nz-code-box",24),m(71,"nz-demo-back-top-custom",21),e(72,"div",22),u(),e(73,"p"),n(74,"You can customize the style of the button, just note the size limit: no more than "),e(75,"code"),n(76,"40px * 40px"),t(),n(77,"."),t(),s(),t()()()(),e(78,"section",25),u(),e(79,"h2",26)(80,"span"),n(81,"API"),t(),e(82,"a",27),n(83,"#"),t()(),e(84,"h3",28)(85,"span"),n(86,"nz-back-top"),t(),e(87,"label",29),n(88,"component"),t(),e(89,"a",30),n(90,"#"),t()(),e(91,"blockquote")(92,"p"),n(93,"The distance to the bottom is set to "),e(94,"code"),n(95,"50px"),t(),n(96,` by default, which is overridable.
If you decide to use custom styles, please note the size limit: no more than `),e(97,"code"),n(98,"40px * 40px"),t(),n(99,"."),t()(),e(100,"table")(101,"thead")(102,"tr")(103,"th"),n(104,"Property"),t(),e(105,"th"),n(106,"Description"),t(),e(107,"th"),n(108,"Type"),t(),e(109,"th"),n(110,"Default"),t(),e(111,"th"),n(112,"Global Config"),t()()(),e(113,"tbody")(114,"tr")(115,"td")(116,"code"),n(117,"[nzTemplate]"),t()(),e(118,"td"),n(119,"custom content"),t(),e(120,"td")(121,"code"),n(122,"TemplateRef<void>"),t()(),e(123,"td"),n(124,"-"),t(),m(125,"td"),t(),e(126,"tr")(127,"td")(128,"code"),n(129,"[nzVisibilityHeight]"),t()(),e(130,"td"),n(131,"the "),e(132,"code"),n(133,"nz-back-top"),t(),n(134," button will not show until the scroll height reaches this value"),t(),e(135,"td")(136,"code"),n(137,"number"),t()(),e(138,"td")(139,"code"),n(140,"400"),t()(),e(141,"td"),n(142,"\u2705"),t()(),e(143,"tr")(144,"td")(145,"code"),n(146,"[nzTarget]"),t()(),e(147,"td"),n(148,"specifies the scrollable area dom node"),t(),e(149,"td")(150,"code"),n(151,"string | Element"),t()(),e(152,"td")(153,"code"),n(154,"window"),t()(),m(155,"td"),t(),e(156,"tr")(157,"td")(158,"code"),n(159,"[nzDuration]"),t()(),e(160,"td"),n(161,"Time to return to top (ms)"),t(),e(162,"td")(163,"code"),n(164,"number"),t()(),e(165,"td")(166,"code"),n(167,"450"),t()(),m(168,"td"),t(),e(169,"tr")(170,"td")(171,"code"),n(172,"(nzClick)"),t()(),e(173,"td"),n(174,"a callback function, which can be executed when you click the button"),t(),e(175,"td")(176,"code"),n(177,"EventEmitter<boolean>"),t()(),e(178,"td"),n(179,"-"),t(),m(180,"td"),t()()(),s(),t()()),o&2&&(d(),c("nzOffsetTop",16),d(),c("nzAffix",!1),d(55),c("nzGutter",16),d(),c("nzXl",12)("nzSpan",24),d(),c("nzId","components-back-top-demo-basic")("nzLink","components-back-top-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/back-top/demo/basic.md"),d(5),c("nzId","components-back-top-demo-target")("nzLink","components-back-top-demo-target")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/back-top/demo/target.md"),d(5),c("nzXl",12)("nzSpan",24),d(),c("nzId","components-back-top-demo-custom")("nzLink","components-back-top-demo-custom")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/back-top/demo/custom.md"))},dependencies:[R,g,O,M,H,I,A,w,T,L,V,G],encapsulation:2})}}return i})();var Ve=[{path:"en",component:Te},{path:"zh",component:Ce}],Ft=Ve;export{Ft as default};