-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathchunk-4MTLWWN4.js
3 lines (3 loc) · 28.9 KB
/
chunk-4MTLWWN4.js
1
2
3
import{a as E,g as h,h as p,i as u,j as R}from"./chunk-N7GBLZI4.js";import"./chunk-M3GNLX5T.js";import"./chunk-TSUNBK3M.js";import{Ha as y,Jc as w,Kc as L,Nc as _,gc as O}from"./chunk-O3IWK6WU.js";import{Ac as F,Bc as v,Gc as t,Ib as s,Vb as r,hc as e,ic as n,jc as i,qc as g,rb as l,xa as c,ya as d,zc as T}from"./chunk-NACBYLXS.js";import"./chunk-EQDQRRRY.js";var k=class a{static \u0275fac=function(o){return new(o||a)};static \u0275cmp=s({type:a,selectors:[["nz-demo-anchor-basic"]],decls:6,vars:0,consts:[["nzHref","#components-anchor-demo-basic","nzTitle","Basic demo"],["nzHref","#components-anchor-demo-static","nzTitle","Static demo"],["nzHref","#api","nzTitle","API"],["nzHref","#nz-anchor","nzTitle","nz-anchor"],["nzHref","#nz-link","nzTitle","nz-link"]],template:function(o,z){o&1&&(e(0,"nz-anchor"),i(1,"nz-link",0)(2,"nz-link",1),e(3,"nz-link",2),i(4,"nz-link",3)(5,"nz-link",4),n()())},dependencies:[u,h,p],encapsulation:2})};var N=class a{static \u0275fac=function(o){return new(o||a)};static \u0275cmp=s({type:a,selectors:[["nz-demo-anchor-customize-highlight"]],decls:6,vars:0,consts:[["nzCurrentAnchor","#components-anchor-demo-static"],["nzHref","#components-anchor-demo-basic","nzTitle","Basic demo"],["nzHref","#components-anchor-demo-static","nzTitle","Static demo"],["nzHref","#api","nzTitle","API"],["nzHref","#nz-anchor","nzTitle","nz-anchor"],["nzHref","#nz-link","nzTitle","nz-link"]],template:function(o,z){o&1&&(e(0,"nz-anchor",0),i(1,"nz-link",1)(2,"nz-link",2),e(3,"nz-link",3),i(4,"nz-link",4)(5,"nz-link",5),n()())},dependencies:[u,h,p],encapsulation:2})};var D=class a{static \u0275fac=function(o){return new(o||a)};static \u0275cmp=s({type:a,selectors:[["nz-demo-anchor-horizontal-anchor"]],decls:6,vars:1,consts:[[3,"nzDirection"],["nzHref","#components-anchor-demo-basic","nzTitle","Basic demo"],["nzHref","#components-anchor-demo-static","nzTitle","Static demo"],["nzHref","#api","nzTitle","API"],["nzHref","#nz-anchor","nzTitle","nz-anchor"],["nzHref","#nz-link","nzTitle","nz-link"]],template:function(o,z){o&1&&(e(0,"nz-anchor",0),i(1,"nz-link",1)(2,"nz-link",2),e(3,"nz-link",3),i(4,"nz-link",4)(5,"nz-link",5),n()()),o&2&&r("nzDirection","horizontal")},dependencies:[u,h,p],encapsulation:2})};var b=class a{handleChange(m){console.log("Anchor:OnChange",m)}static \u0275fac=function(o){return new(o||a)};static \u0275cmp=s({type:a,selectors:[["nz-demo-anchor-on-change"]],decls:6,vars:0,consts:[[3,"nzChange"],["nzHref","#components-anchor-demo-basic","nzTitle","Basic demo"],["nzHref","#components-anchor-demo-static","nzTitle","Static demo"],["nzHref","#api","nzTitle","API"],["nzHref","#nz-anchor","nzTitle","nz-anchor"],["nzHref","#nz-link","nzTitle","nz-link"]],template:function(o,z){o&1&&(e(0,"nz-anchor",0),g("nzChange",function(A){return z.handleChange(A)}),i(1,"nz-link",1)(2,"nz-link",2),e(3,"nz-link",3),i(4,"nz-link",4)(5,"nz-link",5),n()())},dependencies:[u,h,p],encapsulation:2})};var B=class a{handleClick(m){console.log(m)}static \u0275fac=function(o){return new(o||a)};static \u0275cmp=s({type:a,selectors:[["nz-demo-anchor-on-click"]],decls:6,vars:0,consts:[[3,"nzClick"],["nzHref","#components-anchor-demo-basic","nzTitle","Basic demo"],["nzHref","#components-anchor-demo-static","nzTitle","Static demo"],["nzHref","#api","nzTitle","API"],["nzHref","#nz-anchor","nzTitle","nz-anchor"],["nzHref","#nz-link","nzTitle","nz-link"]],template:function(o,z){o&1&&(e(0,"nz-anchor",0),g("nzClick",function(A){return z.handleClick(A)}),i(1,"nz-link",1)(2,"nz-link",2),e(3,"nz-link",3),i(4,"nz-link",4)(5,"nz-link",5),n()())},dependencies:[u,h,p],encapsulation:2})};var I=class a{static \u0275fac=function(o){return new(o||a)};static \u0275cmp=s({type:a,selectors:[["nz-demo-anchor-static"]],decls:6,vars:1,consts:[[3,"nzAffix"],["nzHref","#components-anchor-demo-basic","nzTitle","Basic demo"],["nzHref","#components-anchor-demo-static","nzTitle","Static demo"],["nzHref","#api","nzTitle","API"],["nzHref","#nz-anchor","nzTitle","nz-anchor"],["nzHref","#nz-link","nzTitle","nz-link"]],template:function(o,z){o&1&&(e(0,"nz-anchor",0),i(1,"nz-link",1)(2,"nz-link",2),e(3,"nz-link",3),i(4,"nz-link",4)(5,"nz-link",5),n()()),o&2&&r("nzAffix",!1)},dependencies:[u,h,p],encapsulation:2})};var H=class a{targetOffset;ngOnInit(){this.targetOffset=window.innerHeight/2}static \u0275fac=function(o){return new(o||a)};static \u0275cmp=s({type:a,selectors:[["nz-demo-anchor-target-offset"]],decls:6,vars:1,consts:[[3,"nzTargetOffset"],["nzHref","#components-anchor-demo-basic","nzTitle","Basic demo"],["nzHref","#components-anchor-demo-static","nzTitle","Static demo"],["nzHref","#api","nzTitle","API"],["nzHref","#nz-anchor","nzTitle","nz-anchor"],["nzHref","#nz-link","nzTitle","nz-link"]],template:function(o,z){o&1&&(e(0,"nz-anchor",0),i(1,"nz-link",1)(2,"nz-link",2),e(3,"nz-link",3),i(4,"nz-link",4)(5,"nz-link",5),n()()),o&2&&r("nzTargetOffset",z.targetOffset)},dependencies:[u,h,p],encapsulation:2})};var G=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(o){return new(o||a)};static \u0275cmp=s({type:a,selectors:[["nz-demo-anchor"]],viewQuery:function(o,z){if(o&1&&T(E,5),o&2){let f;F(f=v())&&(z.codeBoxes=f)}},decls:301,vars:42,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-anchor-demo-basic","nzTitle","\u57FA\u672C"],["nzHref","#components-anchor-demo-static","nzTitle","\u9759\u6001\u4F4D\u7F6E"],["nzHref","#components-anchor-demo-on-click","nzTitle","\u81EA\u5B9A\u4E49 onClick \u4E8B\u4EF6"],["nzHref","#components-anchor-demo-customize-highlight","nzTitle","\u81EA\u5B9A\u4E49\u951A\u70B9\u9AD8\u4EAE"],["nzHref","#components-anchor-demo-target-offset","nzTitle","\u8BBE\u7F6E\u951A\u70B9\u6EDA\u52A8\u504F\u79FB\u91CF"],["nzHref","#components-anchor-demo-on-change","nzTitle","\u76D1\u542C\u951A\u70B9\u94FE\u63A5\u6539\u53D8"],["nzHref","#components-anchor-demo-horizontal-anchor","nzTitle","\u6A2A\u5411 Anchor"],["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/anchor/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"],["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-anchor-basic","nzGenerateCommand","ng g ng-zorro-antd:anchor-basic <name>","nzComponentName","NzDemoAnchorBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","\u81EA\u5B9A\u4E49 onClick \u4E8B\u4EF6","nzSelector","nz-demo-anchor-on-click","nzGenerateCommand","ng g ng-zorro-antd:anchor-on-click <name>","nzComponentName","NzDemoAnchorOnClickComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u8BBE\u7F6E\u951A\u70B9\u6EDA\u52A8\u504F\u79FB\u91CF","nzSelector","nz-demo-anchor-target-offset","nzGenerateCommand","ng g ng-zorro-antd:anchor-target-offset <name>","nzComponentName","NzDemoAnchorTargetOffsetComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u6A2A\u5411 Anchor","nzSelector","nz-demo-anchor-horizontal-anchor","nzGenerateCommand","ng g ng-zorro-antd:anchor-horizontal-anchor <name>","nzComponentName","NzDemoAnchorHorizontalAnchorComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u9759\u6001\u4F4D\u7F6E","nzSelector","nz-demo-anchor-static","nzGenerateCommand","ng g ng-zorro-antd:anchor-static <name>","nzComponentName","NzDemoAnchorStaticComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u81EA\u5B9A\u4E49\u951A\u70B9\u9AD8\u4EAE","nzSelector","nz-demo-anchor-customize-highlight","nzGenerateCommand","ng g ng-zorro-antd:anchor-customize-highlight <name>","nzComponentName","NzDemoAnchorCustomizeHighlightComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u76D1\u542C\u951A\u70B9\u94FE\u63A5\u6539\u53D8","nzSelector","nz-demo-anchor-on-change","nzGenerateCommand","ng g ng-zorro-antd:anchor-on-change <name>","nzComponentName","NzDemoAnchorOnChangeComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-anchor"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-anchor'",1,"anchor"],["href","#components-anchor-demo-targetOffset"],["id","nz-link"],["onclick","window.location.hash = 'nz-link'",1,"anchor"]],template:function(o,z){o&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),g("nzClick",function(A){return z.goLink(A)}),i(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7)(9,"nz-link",8)(10,"nz-link",9),n()(),e(11,"section",10)(12,"h1"),t(13,"Anchor"),e(14,"span",11),t(15,"\u951A\u70B9"),n(),i(16,"span",12),e(17,"a",13),i(18,"nz-icon",14),n()(),e(19,"section",10),d(),e(20,"p"),t(21,"\u7528\u4E8E\u8DF3\u8F6C\u5230\u9875\u9762\u6307\u5B9A\u4F4D\u7F6E\u3002"),n(),e(22,"h2",15)(23,"span"),t(24,"\u4F55\u65F6\u4F7F\u7528"),n(),e(25,"a",16),t(26,"#"),n()(),e(27,"p"),t(28,"\u9700\u8981\u5C55\u73B0\u5F53\u524D\u9875\u9762\u4E0A\u53EF\u4F9B\u8DF3\u8F6C\u7684\u951A\u70B9\u94FE\u63A5\uFF0C\u4EE5\u53CA\u5FEB\u901F\u5728\u951A\u70B9\u4E4B\u95F4\u8DF3\u8F6C\u3002"),n(),e(29,"pre")(30,"code",17)(31,"span",18),t(32,"import"),n(),t(33," "),e(34,"span",19),t(35,"{"),n(),t(36," NzAnchorModule "),e(37,"span",19),t(38,"}"),n(),t(39," "),e(40,"span",18),t(41,"from"),n(),t(42," "),e(43,"span",20),t(44,"'ng-zorro-antd/anchor'"),n(),e(45,"span",19),t(46,";"),n(),t(47,`
`),n()(),c(),n(),e(48,"h2")(49,"span"),t(50,"\u4EE3\u7801\u6F14\u793A"),n(),e(51,"nz-icon",21),g("click",function(){return z.expandAllCode()}),n()()(),e(52,"div",22)(53,"div",23)(54,"nz-code-box",24),i(55,"nz-demo-anchor-basic",25),e(56,"div",26),d(),e(57,"p"),t(58,"\u6700\u7B80\u5355\u7684\u7528\u6CD5\u3002"),n(),c(),n()(),e(59,"nz-code-box",27),i(60,"nz-demo-anchor-on-click",25),e(61,"div",26),d(),e(62,"p"),t(63,"\u70B9\u51FB\u951A\u70B9\u4E0D\u8BB0\u5F55\u5386\u53F2\u3002"),n(),c(),n()(),e(64,"nz-code-box",28),i(65,"nz-demo-anchor-target-offset",25),e(66,"div",26),d(),e(67,"p"),t(68,"\u951A\u70B9\u76EE\u6807\u6EDA\u52A8\u5230\u5C4F\u5E55\u6B63\u4E2D\u95F4\u3002"),n(),c(),n()(),e(69,"nz-code-box",29),i(70,"nz-demo-anchor-horizontal-anchor",25),e(71,"div",26),d(),e(72,"p"),t(73,"\u6A2A\u5411 Anchor\u3002"),n(),c(),n()()(),e(74,"div",23)(75,"nz-code-box",30),i(76,"nz-demo-anchor-static",25),e(77,"div",26),d(),e(78,"p"),t(79,"\u4E0D\u6D6E\u52A8\uFF0C\u72B6\u6001\u4E0D\u968F\u9875\u9762\u6EDA\u52A8\u53D8\u5316\u3002"),n(),c(),n()(),e(80,"nz-code-box",31),i(81,"nz-demo-anchor-customize-highlight",25),e(82,"div",26),d(),e(83,"p"),t(84,"\u81EA\u5B9A\u4E49\u951A\u70B9\u9AD8\u4EAE\u3002"),n(),c(),n()(),e(85,"nz-code-box",32),i(86,"nz-demo-anchor-on-change",25),e(87,"div",26),d(),e(88,"p"),t(89,"\u76D1\u542C\u951A\u70B9\u94FE\u63A5\u6539\u53D8"),n(),c(),n()()()(),e(90,"section",33),d(),e(91,"h2",34)(92,"span"),t(93,"API"),n(),e(94,"a",35),t(95,"#"),n()(),e(96,"h3",36)(97,"span"),t(98,"nz-anchor"),n(),e(99,"label",37),t(100,"component"),n(),e(101,"a",38),t(102,"#"),n()(),e(103,"table")(104,"thead")(105,"tr")(106,"th"),t(107,"\u6210\u5458"),n(),e(108,"th"),t(109,"\u8BF4\u660E"),n(),e(110,"th"),t(111,"\u7C7B\u578B"),n(),e(112,"th"),t(113,"\u9ED8\u8BA4\u503C"),n(),e(114,"th"),t(115,"\u5168\u5C40\u914D\u7F6E"),n()()(),e(116,"tbody")(117,"tr")(118,"td")(119,"code"),t(120,"[nzAffix]"),n()(),e(121,"td"),t(122,"\u56FA\u5B9A\u6A21\u5F0F"),n(),e(123,"td")(124,"code"),t(125,"boolean"),n()(),e(126,"td")(127,"code"),t(128,"true"),n()(),i(129,"td"),n(),e(130,"tr")(131,"td")(132,"code"),t(133,"[nzBounds]"),n()(),e(134,"td"),t(135,"\u951A\u70B9\u533A\u57DF\u8FB9\u754C\uFF0C\u5355\u4F4D\uFF1Apx"),n(),e(136,"td")(137,"code"),t(138,"number"),n()(),e(139,"td")(140,"code"),t(141,"5"),n()(),e(142,"td"),t(143,"\u2705"),n()(),e(144,"tr")(145,"td")(146,"code"),t(147,"[nzOffsetTop]"),n()(),e(148,"td"),t(149,"\u8DDD\u79BB\u7A97\u53E3\u9876\u90E8\u8FBE\u5230\u6307\u5B9A\u504F\u79FB\u91CF\u540E\u89E6\u53D1"),n(),e(150,"td")(151,"code"),t(152,"number"),n()(),e(153,"td"),t(154,"-"),n(),e(155,"td"),t(156,"\u2705"),n()(),e(157,"tr")(158,"td")(159,"code"),t(160,"[nzShowInkInFixed]"),n()(),e(161,"td"),t(162,"\u56FA\u5B9A\u6A21\u5F0F\u662F\u5426\u663E\u793A\u5C0F\u5706\u70B9"),n(),e(163,"td")(164,"code"),t(165,"boolean"),n()(),e(166,"td")(167,"code"),t(168,"false"),n()(),e(169,"td"),t(170,"\u2705"),n()(),e(171,"tr")(172,"td")(173,"code"),t(174,"[nzTargetOffset]"),n()(),e(175,"td"),t(176,"\u951A\u70B9\u6EDA\u52A8\u504F\u79FB\u91CF\uFF0C\u9ED8\u8BA4\u4E0E offsetTop \u76F8\u540C\uFF0C"),e(177,"a",39),t(178,"\u4F8B\u5B50"),n()(),e(179,"td"),t(180,"number"),n(),e(181,"td"),t(182,"-"),n(),i(183,"td"),n(),e(184,"tr")(185,"td")(186,"code"),t(187,"[nzContainer]"),n()(),e(188,"td"),t(189,"\u6307\u5B9A\u6EDA\u52A8\u7684\u5BB9\u5668"),n(),e(190,"td")(191,"code"),t(192,"string | HTMLElement"),n()(),e(193,"td")(194,"code"),t(195,"window"),n()(),i(196,"td"),n(),e(197,"tr")(198,"td")(199,"code"),t(200,"[nzCurrentAnchor]"),n()(),e(201,"td"),t(202,"\u81EA\u5B9A\u4E49\u9AD8\u4EAE\u7684\u951A\u70B9"),n(),e(203,"td"),t(204,"string"),n(),e(205,"td"),t(206,"-"),n(),i(207,"td"),n(),e(208,"tr")(209,"td")(210,"code"),t(211,"[nzDirection]"),n()(),e(212,"td"),t(213,"\u8BBE\u7F6E\u5BFC\u822A\u65B9\u5411"),n(),e(214,"td")(215,"code"),t(216,"'vertical' | 'horizontal'"),n()(),e(217,"td")(218,"code"),t(219,"'vertical'"),n()(),i(220,"td"),n(),e(221,"tr")(222,"td")(223,"code"),t(224,"(nzClick)"),n()(),e(225,"td"),t(226,"\u70B9\u51FB\u9879\u89E6\u53D1"),n(),e(227,"td")(228,"code"),t(229,"EventEmitter<string>"),n()(),e(230,"td"),t(231,"-"),n(),i(232,"td"),n(),e(233,"tr")(234,"td")(235,"code"),t(236,"(nzChange)"),n()(),e(237,"td"),t(238,"\u76D1\u542C\u951A\u70B9\u94FE\u63A5\u6539\u53D8"),n(),e(239,"td")(240,"code"),t(241,"EventEmitter<string>"),n()(),e(242,"td"),t(243,"-"),n(),i(244,"td"),n(),e(245,"tr")(246,"td")(247,"code"),t(248,"(nzScroll)"),n()(),e(249,"td"),t(250,"\u6EDA\u52A8\u81F3\u67D0\u951A\u70B9\u65F6\u89E6\u53D1"),n(),e(251,"td")(252,"code"),t(253,"EventEmitter<NzAnchorLinkComponent>"),n()(),e(254,"td"),t(255,"-"),n(),i(256,"td"),n()()(),e(257,"h3",40)(258,"span"),t(259,"nz-link"),n(),e(260,"label",37),t(261,"component"),n(),e(262,"a",41),t(263,"#"),n()(),e(264,"table")(265,"thead")(266,"tr")(267,"th"),t(268,"\u6210\u5458"),n(),e(269,"th"),t(270,"\u8BF4\u660E"),n(),e(271,"th"),t(272,"\u7C7B\u578B"),n()()(),e(273,"tbody")(274,"tr")(275,"td")(276,"code"),t(277,"[nzHref]"),n()(),e(278,"td"),t(279,"\u951A\u70B9\u94FE\u63A5"),n(),e(280,"td")(281,"code"),t(282,"string"),n()()(),e(283,"tr")(284,"td")(285,"code"),t(286,"[nzTarget]"),n()(),e(287,"td"),t(288,"\u8BE5\u5C5E\u6027\u6307\u5B9A\u5728\u4F55\u5904\u663E\u793A\u94FE\u63A5\u7684\u8D44\u6E90\u3002"),n(),e(289,"td")(290,"code"),t(291,"string"),n()()(),e(292,"tr")(293,"td")(294,"code"),t(295,"[nzTitle]"),n()(),e(296,"td"),t(297,"\u6587\u5B57\u5185\u5BB9"),n(),e(298,"td")(299,"code"),t(300,"string | TemplateRef<void>"),n()()()()(),c(),n()()),o&2&&(l(),r("nzOffsetTop",16),l(),r("nzAffix",!1),l(50),r("nzGutter",16),l(),r("nzXl",12)("nzSpan",24),l(),r("nzId","components-anchor-demo-basic")("nzLink","components-anchor-demo-basic")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/anchor/demo/basic.md"),l(5),r("nzId","components-anchor-demo-on-click")("nzLink","components-anchor-demo-on-click")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/anchor/demo/on-click.md"),l(5),r("nzId","components-anchor-demo-target-offset")("nzLink","components-anchor-demo-target-offset")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/anchor/demo/target-offset.md"),l(5),r("nzId","components-anchor-demo-horizontal-anchor")("nzLink","components-anchor-demo-horizontal-anchor")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/anchor/demo/horizontal-anchor.md"),l(5),r("nzXl",12)("nzSpan",24),l(),r("nzId","components-anchor-demo-static")("nzLink","components-anchor-demo-static")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/anchor/demo/static.md"),l(5),r("nzId","components-anchor-demo-customize-highlight")("nzLink","components-anchor-demo-customize-highlight")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/anchor/demo/customize-highlight.md"),l(5),r("nzId","components-anchor-demo-on-change")("nzLink","components-anchor-demo-on-change")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/anchor/demo/on-change.md"))},dependencies:[R,E,h,p,_,L,w,O,y,k,N,D,b,B,I,H],encapsulation:2})};var M=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(o){return new(o||a)};static \u0275cmp=s({type:a,selectors:[["nz-demo-anchor"]],viewQuery:function(o,z){if(o&1&&T(E,5),o&2){let f;F(f=v())&&(z.codeBoxes=f)}},decls:306,vars:42,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-anchor-demo-basic","nzTitle","Basic"],["nzHref","#components-anchor-demo-static","nzTitle","Static Anchor"],["nzHref","#components-anchor-demo-on-click","nzTitle","Customize the onClick event"],["nzHref","#components-anchor-demo-customize-highlight","nzTitle","Customize the anchor highlight"],["nzHref","#components-anchor-demo-target-offset","nzTitle","Set Anchor scroll offset"],["nzHref","#components-anchor-demo-on-change","nzTitle","Listening for anchor link change"],["nzHref","#components-anchor-demo-horizontal-anchor","nzTitle","Horizontal Anchor"],["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/anchor/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"],["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-anchor-basic","nzGenerateCommand","ng g ng-zorro-antd:anchor-basic <name>","nzComponentName","NzDemoAnchorBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","Customize the onClick event","nzSelector","nz-demo-anchor-on-click","nzGenerateCommand","ng g ng-zorro-antd:anchor-on-click <name>","nzComponentName","NzDemoAnchorOnClickComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Set Anchor scroll offset","nzSelector","nz-demo-anchor-target-offset","nzGenerateCommand","ng g ng-zorro-antd:anchor-target-offset <name>","nzComponentName","NzDemoAnchorTargetOffsetComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Horizontal Anchor","nzSelector","nz-demo-anchor-horizontal-anchor","nzGenerateCommand","ng g ng-zorro-antd:anchor-horizontal-anchor <name>","nzComponentName","NzDemoAnchorHorizontalAnchorComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Static Anchor","nzSelector","nz-demo-anchor-static","nzGenerateCommand","ng g ng-zorro-antd:anchor-static <name>","nzComponentName","NzDemoAnchorStaticComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Customize the anchor highlight","nzSelector","nz-demo-anchor-customize-highlight","nzGenerateCommand","ng g ng-zorro-antd:anchor-customize-highlight <name>","nzComponentName","NzDemoAnchorCustomizeHighlightComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Listening for anchor link change","nzSelector","nz-demo-anchor-on-change","nzGenerateCommand","ng g ng-zorro-antd:anchor-on-change <name>","nzComponentName","NzDemoAnchorOnChangeComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-anchor"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-anchor'",1,"anchor"],["href","#components-anchor-demo-targetOffset"],["id","nz-link"],["onclick","window.location.hash = 'nz-link'",1,"anchor"]],template:function(o,z){o&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),g("nzClick",function(A){return z.goLink(A)}),i(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7)(9,"nz-link",8)(10,"nz-link",9),n()(),e(11,"section",10)(12,"h1"),t(13,"Anchor"),i(14,"span",11)(15,"span",12),e(16,"a",13),i(17,"nz-icon",14),n()(),e(18,"section",10),d(),e(19,"p"),t(20,"Hyperlinks to scroll on one page."),n(),e(21,"h2",15)(22,"span"),t(23,"When To Use"),n(),e(24,"a",16),t(25,"#"),n()(),e(26,"p"),t(27,"For displaying anchor hyperlinks on page and jumping between them."),n(),e(28,"pre")(29,"code",17)(30,"span",18),t(31,"import"),n(),t(32," "),e(33,"span",19),t(34,"{"),n(),t(35," NzAnchorModule "),e(36,"span",19),t(37,"}"),n(),t(38," "),e(39,"span",18),t(40,"from"),n(),t(41," "),e(42,"span",20),t(43,"'ng-zorro-antd/anchor'"),n(),e(44,"span",19),t(45,";"),n(),t(46,`
`),n()(),c(),n(),e(47,"h2")(48,"span"),t(49,"Examples"),n(),e(50,"nz-icon",21),g("click",function(){return z.expandAllCode()}),n()()(),e(51,"div",22)(52,"div",23)(53,"nz-code-box",24),i(54,"nz-demo-anchor-basic",25),e(55,"div",26),d(),e(56,"p"),t(57,"The simplest usage."),n(),c(),n()(),e(58,"nz-code-box",27),i(59,"nz-demo-anchor-on-click",25),e(60,"div",26),d(),e(61,"p"),t(62,"Clicking on an anchor does not record history."),n(),c(),n()(),e(63,"nz-code-box",28),i(64,"nz-demo-anchor-target-offset",25),e(65,"div",26),d(),e(66,"p"),t(67,"Anchor target scroll to screen center."),n(),c(),n()(),e(68,"nz-code-box",29),i(69,"nz-demo-anchor-horizontal-anchor",25),e(70,"div",26),d(),e(71,"p"),t(72,"Horizontally aligned anchors"),n(),c(),n()()(),e(73,"div",23)(74,"nz-code-box",30),i(75,"nz-demo-anchor-static",25),e(76,"div",26),d(),e(77,"p"),t(78,"Do not change state when page is scrolling."),n(),c(),n()(),e(79,"nz-code-box",31),i(80,"nz-demo-anchor-customize-highlight",25),e(81,"div",26),d(),e(82,"p"),t(83,"Customize the anchor highlight."),n(),c(),n()(),e(84,"nz-code-box",32),i(85,"nz-demo-anchor-on-change",25),e(86,"div",26),d(),e(87,"p"),t(88,"Listening for anchor link change."),n(),c(),n()()()(),e(89,"section",33),d(),e(90,"h2",34)(91,"span"),t(92,"API"),n(),e(93,"a",35),t(94,"#"),n()(),e(95,"h3",36)(96,"span"),t(97,"nz-anchor"),n(),e(98,"label",37),t(99,"component"),n(),e(100,"a",38),t(101,"#"),n()(),e(102,"table")(103,"thead")(104,"tr")(105,"th"),t(106,"Property"),n(),e(107,"th"),t(108,"Description"),n(),e(109,"th"),t(110,"Type"),n(),e(111,"th"),t(112,"Default"),n(),e(113,"th"),t(114,"Global Config"),n()()(),e(115,"tbody")(116,"tr")(117,"td")(118,"code"),t(119,"[nzAffix]"),n()(),e(120,"td"),t(121,"Fixed mode of Anchor"),n(),e(122,"td")(123,"code"),t(124,"boolean"),n()(),e(125,"td")(126,"code"),t(127,"true"),n()(),i(128,"td"),n(),e(129,"tr")(130,"td")(131,"code"),t(132,"[nzBounds]"),n()(),e(133,"td"),t(134,"Bounding distance of anchor area, unit: px"),n(),e(135,"td")(136,"code"),t(137,"number"),n()(),e(138,"td")(139,"code"),t(140,"5"),n()(),e(141,"td"),t(142,"\u2705"),n()(),e(143,"tr")(144,"td")(145,"code"),t(146,"[nzOffsetTop]"),n()(),e(147,"td"),t(148,"Pixels to offset from top when calculating position of scroll"),n(),e(149,"td")(150,"code"),t(151,"number"),n()(),e(152,"td")(153,"code"),t(154,"0"),n()(),e(155,"td"),t(156,"\u2705"),n()(),e(157,"tr")(158,"td")(159,"code"),t(160,"[nzShowInkInFixed]"),n()(),e(161,"td"),t(162,"Whether show ink-balls in Fixed mode"),n(),e(163,"td")(164,"code"),t(165,"boolean"),n()(),e(166,"td")(167,"code"),t(168,"false"),n()(),e(169,"td"),t(170,"\u2705"),n()(),e(171,"tr")(172,"td")(173,"code"),t(174,"[nzTargetOffset]"),n()(),e(175,"td"),t(176,"Anchor scroll offset, default as "),e(177,"code"),t(178,"offsetTop"),n(),t(179,", "),e(180,"a",39),t(181,"example"),n()(),e(182,"td")(183,"code"),t(184,"number"),n()(),e(185,"td"),t(186,"-"),n(),i(187,"td"),n(),e(188,"tr")(189,"td")(190,"code"),t(191,"[nzContainer]"),n()(),e(192,"td"),t(193,"Scrolling container"),n(),e(194,"td")(195,"code"),t(196,"string | HTMLElement"),n()(),e(197,"td")(198,"code"),t(199,"window"),n()(),i(200,"td"),n(),e(201,"tr")(202,"td")(203,"code"),t(204,"[nzCurrentAnchor]"),n()(),e(205,"td"),t(206,"Customize the anchor highlight"),n(),e(207,"td")(208,"code"),t(209,"string"),n()(),e(210,"td"),t(211,"-"),n(),i(212,"td"),n(),e(213,"tr")(214,"td")(215,"code"),t(216,"[nzDirection]"),n()(),e(217,"td"),t(218,"Set Anchor direction"),n(),e(219,"td")(220,"code"),t(221,"'vertical' | 'horizontal'"),n()(),e(222,"td")(223,"code"),t(224,"'vertical'"),n()(),i(225,"td"),n(),e(226,"tr")(227,"td")(228,"code"),t(229,"(nzClick)"),n()(),e(230,"td"),t(231,"Click of Anchor item"),n(),e(232,"td")(233,"code"),t(234,"EventEmitter<string>"),n()(),e(235,"td"),t(236,"-"),n(),i(237,"td"),n(),e(238,"tr")(239,"td")(240,"code"),t(241,"(nzChange)"),n()(),e(242,"td"),t(243,"Listening for anchor link change"),n(),e(244,"td")(245,"code"),t(246,"EventEmitter<string>"),n()(),e(247,"td"),t(248,"-"),n(),i(249,"td"),n(),e(250,"tr")(251,"td")(252,"code"),t(253,"(nzScroll)"),n()(),e(254,"td"),t(255,"The scroll function that is triggered when scrolling to an anchor."),n(),e(256,"td")(257,"code"),t(258,"EventEmitter<NzAnchorLinkComponent>"),n()(),e(259,"td"),t(260,"-"),n(),i(261,"td"),n()()(),e(262,"h3",40)(263,"span"),t(264,"nz-link"),n(),e(265,"label",37),t(266,"component"),n(),e(267,"a",41),t(268,"#"),n()(),e(269,"table")(270,"thead")(271,"tr")(272,"th"),t(273,"Property"),n(),e(274,"th"),t(275,"Description"),n(),e(276,"th"),t(277,"Type"),n()()(),e(278,"tbody")(279,"tr")(280,"td")(281,"code"),t(282,"[nzHref]"),n()(),e(283,"td"),t(284,"target of hyperlink"),n(),e(285,"td")(286,"code"),t(287,"string"),n()()(),e(288,"tr")(289,"td")(290,"code"),t(291,"[nzTarget]"),n()(),e(292,"td"),t(293,"Specifies where to display the linked URL"),n(),e(294,"td")(295,"code"),t(296,"string"),n()()(),e(297,"tr")(298,"td")(299,"code"),t(300,"[nzTitle]"),n()(),e(301,"td"),t(302,"content of hyperlink"),n(),e(303,"td")(304,"code"),t(305,"string | TemplateRef<void>"),n()()()()(),c(),n()()),o&2&&(l(),r("nzOffsetTop",16),l(),r("nzAffix",!1),l(49),r("nzGutter",16),l(),r("nzXl",12)("nzSpan",24),l(),r("nzId","components-anchor-demo-basic")("nzLink","components-anchor-demo-basic")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/anchor/demo/basic.md"),l(5),r("nzId","components-anchor-demo-on-click")("nzLink","components-anchor-demo-on-click")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/anchor/demo/on-click.md"),l(5),r("nzId","components-anchor-demo-target-offset")("nzLink","components-anchor-demo-target-offset")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/anchor/demo/target-offset.md"),l(5),r("nzId","components-anchor-demo-horizontal-anchor")("nzLink","components-anchor-demo-horizontal-anchor")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/anchor/demo/horizontal-anchor.md"),l(5),r("nzXl",12)("nzSpan",24),l(),r("nzId","components-anchor-demo-static")("nzLink","components-anchor-demo-static")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/anchor/demo/static.md"),l(5),r("nzId","components-anchor-demo-customize-highlight")("nzLink","components-anchor-demo-customize-highlight")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/anchor/demo/customize-highlight.md"),l(5),r("nzId","components-anchor-demo-on-change")("nzLink","components-anchor-demo-on-change")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/anchor/demo/on-change.md"))},dependencies:[R,E,h,p,_,L,w,O,y,k,N,D,b,B,I,H],encapsulation:2})};var V=[{path:"en",component:M},{path:"zh",component:G}],He=V;export{He as default};