PageSourceSearch

https://preview-9270-ng-zorro-antd.surge.sh/chunk-KCLWMS2P.js

js preview-9270-ng-zorro-antd.surge.sh collected 2026-10-03 14:57:34 UTC 28,767 bytes, 1 lines download raw bytes

1import{a as E,g as h,h as u,i as p,m as R,n as G}from"./chunk-4LWRTZ4J.js";import"./chunk-HECQD5M5.js";import"./chunk-WRS55NNU.js";import{Sd as w,Td as L,Wd as _,qb as y,vc as O}from"./chunk-FE3MHUBC.js";import{Xb as r,Yb as e,Zb as n,_b as i,ic as g,kb as l,oc as T,pc as F,qa as c,qc as v,ra as d,wb as s,zc as t}from"./chunk-OQ4XWHPB.js";import"./chunk-JNGVGNCT.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:[p,h,u],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:[p,h,u],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:[p,h,u],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:[p,h,u],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:[p,h,u],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:[p,h,u],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:[p,h,u],encapsulation:2})};var M=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(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:282,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"],["name","anchor","description","\u7528\u4E8E\u8DF3\u8F6C\u5230\u9875\u9762\u6307\u5B9A\u4F4D\u7F6E\u3002","language","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-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"],["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()(),i(19,"component-meta",15),e(20,"section",10),d(),e(21,"h2",16)(22,"span"),t(23,"\u4F55\u65F6\u4F7F\u7528"),n(),e(24,"a",17),t(25,"#"),n()(),e(26,"p"),t(27,"\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(),c(),n(),e(28,"h2")(29,"span"),t(30,"\u4EE3\u7801\u6F14\u793A"),n(),e(31,"nz-icon",18),g("click",function(){return z.expandAllCode()}),n()()(),e(32,"div",19)(33,"div",20)(34,"nz-code-box",21),i(35,"nz-demo-anchor-basic",22),e(36,"div",23),d(),e(37,"p"),t(38,"\u
16700\u7B80\u5355\u7684\u7528\u6CD5\u3002"),n(),c(),n()(),e(39,"nz-code-box",24),i(40,"nz-demo-anchor-on-click",22),e(41,"div",23),d(),e(42,"p"),t(43,"\u70B9\u51FB\u951A\u70B9\u4E0D\u8BB0\u5F55\u5386\u53F2\u3002"),n(),c(),n()(),e(44,"nz-code-box",25),i(45,"nz-demo-anchor-target-offset",22),e(46,"div",23),d(),e(47,"p"),t(48,"\u951A\u70B9\u76EE\u6807\u6EDA\u52A8\u5230\u5C4F\u5E55\u6B63\u4E2D\u95F4\u3002"),n(),c(),n()(),e(49,"nz-code-box",26),i(50,"nz-demo-anchor-horizontal-anchor",22),e(51,"div",23),d(),e(52,"p"),t(53,"\u6A2A\u5411 Anchor\u3002"),n(),c(),n()()(),e(54,"div",20)(55,"nz-code-box",27),i(56,"nz-demo-anchor-static",22),e(57,"div",23),d(),e(58,"p"),t(59,"\u4E0D\u6D6E\u52A8\uFF0C\u72B6\u6001\u4E0D\u968F\u9875\u9762\u6EDA\u52A8\u53D8\u5316\u3002"),n(),c(),n()(),e(60,"nz-code-box",28),i(61,"nz-demo-anchor-customize-highlight",22),e(62,"div",23),d(),e(63,"p"),t(64,"\u81EA\u5B9A\u4E49\u951A\u70B9\u9AD8\u4EAE\u3002"),n(),c(),n()(),e(65,"nz-code-box",29),i(66,"nz-demo-anchor-on-change",22),e(67,"div",23),d(),e(68,"p"),t(69,"\u76D1\u542C\u951A\u70B9\u94FE\u63A5\u6539\u53D8"),n(),c(),n()()()(),e(70,"section",30),d(),e(71,"h2",31)(72,"span"),t(73,"API"),n(),e(74,"a",32),t(75,"#"),n()(),e(76,"h3",33)(77,"span"),t(78,"nz-anchor"),n(),e(79,"label",34),t(80,"component"),n(),e(81,"a",35),t(82,"#"),n()(),e(83,"table")(84,"thead")(85,"tr")(86,"th"),t(87,"\u6210\u5458"),n(),e(88,"th"),t(89,"\u8BF4\u660E"),n(),e(90,"th"),t(91,"\u7C7B\u578B"),n(),e(92,"th"),t(93,"\u9ED8\u8BA4\u503C"),n(),e(94,"th"),t(95,"\u5168\u5C40\u914D\u7F6E"),n()()(),e(96,"tbody")(97,"tr")(98,"td")(99,"code"),t(100,"[nzAffix]"),n()(),e(101,"td"),t(102,"\u56FA\u5B9A\u6A21\u5F0F"),n(),e(103,"td")(104,"code"),t(105,"boolean"),n()(),e(106,"td")(107,"code"),t(108,"true"),n()(),i(109,"td"),n(),e(110,"tr")(111,"td")(112,"code"),t(113,"[nzBounds]"),n()(),e(114,"td"),t(115,"\u951A\u70B9\u533A\u57DF\u8FB9\u754C\uFF0C\u5355\u4F4D\uFF1Apx"),n(),e(116,"td")(117,"code"),t(118,"number"),n()(),e(119,"td")(120,"code"),t(121,"5"),n()(),e(122,"td"),t(123,"\u2705"),n()(),e(124,"tr")(125,"td")(126,"code"),t(127,"[nzOffsetTop]"),n()(),e(128,"td"),t(129,"\u8DDD\u79BB\u7A97\u53E3\u9876\u90E8\u8FBE\u5230\u6307\u5B9A\u504F\u79FB\u91CF\u540E\u89E6\u53D1"),n(),e(130,"td")(131,"code"),t(132,"number"),n()(),e(133,"td"),t(134,"-"),n(),e(135,"td"),t(136,"\u2705"),n()(),e(137,"tr")(138,"td")(139,"code"),t(140,"[nzShowInkInFixed]"),n()(),e(141,"td"),t(142,"\u56FA\u5B9A\u6A21\u5F0F\u662F\u5426\u663E\u793A\u5C0F\u5706\u70B9"),n(),e(143,"td")(144,"code"),t(145,"boolean"),n()(),e(146,"td")(147,"code"),t(148,"false"),n()(),e(149,"td"),t(150,"\u2705"),n()(),e(151,"tr")(152,"td")(153,"code"),t(154,"[nzTargetOffset]"),n()(),e(155,"td"),t(156,"\u951A\u70B9\u6EDA\u52A8\u504F\u79FB\u91CF\uFF0C\u9ED8\u8BA4\u4E0E "),e(157,"code"),t(158,"offsetTop"),n(),t(159," \u76F8\u540C"),n(),e(160,"td"),t(161,"number"),n(),e(162,"td"),t(163,"-"),n(),i(164,"td"),n(),e(165,"tr")(166,"td")(167,"code"),t(168,"[nzContainer]"),n()(),e(169,"td"),t(170,"\u6307\u5B9A\u6EDA\u52A8\u7684\u5BB9\u5668"),n(),e(171,"td")(172,"code"),t(173,"string | HTMLElement"),n()(),e(174,"td")(175,"code"),t(176,"window"),n()(),i(177,"td"),n(),e(178,"tr")(179,"td")(180,"code"),t(181,"[nzCurrentAnchor]"),n()(),e(182,"td"),t(183,"\u81EA\u5B9A\u4E49\u9AD8\u4EAE\u7684\u951A\u70B9"),n(),e(184,"td"),t(185,"string"),n(),e(186,"td"),t(187,"-"),n(),i(188,"td"),n(),e(189,"tr")(190,"td")(191,"code"),t(192,"[nzDirection]"),n()(),e(193,"td"),t(194,"\u8BBE\u7F6E\u5BFC\u822A\u65B9\u5411"),n(),e(195,"td")(196,"code"),t(197,"'vertical' | 'horizontal'"),n()(),e(198,"td")(199,"code"),t(200,"'vertical'"),n()(),i(201,"td"),n(),e(202,"tr")(203,"td")(204,"code"),t(205,"(nzClick)"),n()(),e(206,"td"),t(207,"\u70B9\u51FB\u9879\u89E6\u53D1"),n(),e(208,"td")(209,"code"),t(210,"EventEmitter<string>"),n()(),e(211,"td"),t(212,"-"),n(),i(213,"td"),n(),e(214,"tr")(215,"td")(216,"code"),t(217,"(nzChange)"),n()(),e(218,"td"),t(219,"\u76D1\u542C\u951A\u70B9\u94FE\u63A5\u6539\u53D8"),n(),e(220,"td")(221,"code"),t(222,"EventEmitter<string>"),n()(),e(223,"td"),t(224,"-"),n(),i(225,"td"),n(),e(226,"tr")(227,"td")(228,"code"),t(229,"(nzScroll)"),n()(),e(230,"td"),t(231,"\u6EDA\u52A8\u81F3\u67D0\u951A\u70B9\u65F6\u89E6\u53D1"),n(),e(232,"td")(233,"code"),t(234,"EventEmitter<NzAnchorLinkComponent>"),n()(),e(235,"td"),t(236,"-"),n(),i(237,"td"),n()()(),e(238,"h3",36)(239,"span"),t(240,"nz-link"),n(),e(241,"label",34),t(242,"component"),n(),e(243,"a",37),t(244,"#"),n()(),e(245,"table")(246,"thead")(247,"tr")(248,"th"),t(249,"\u6210\u5458"),n(),e(250,"th"),t(251,"\u8BF4\u660E"),n(),e(252,"th"),t(253,"\u7C7B\u578B"),n()()(),e(254,"tbody")(255,"tr")(256,"td")(257,"code"),t(258,"[nzHref]"),n()(),e(259,"td"),t(260,"\u951A\u70B9\u94FE\u63A5"),n(),e(261,"td")(262,"code"),t(263,"string"),n()()(),e(264,"tr")(265,"td")(266,"code"),t(267,"[nzTarget]"),n()(),e(268,"td"),t(269,"\u8BE5\u5C5E\u6027\u6307\u5B9A\u5728\u4F55\u5904\u663E\u793A\u94FE\u63A5\u7684\u8D44\u6E90"),n(),e(270,"td")(271,"code"),t(272,"string"),n()()(),e(273,"tr")(274,"td")(275,"code"),t(276,"[
1nzTitle]"),n()(),e(277,"td"),t(278,"\u6587\u5B57\u5185\u5BB9"),n(),e(279,"td")(280,"code"),t(281,"string | TemplateRef<void>"),n()()()()(),c(),n()()),o&2&&(l(),r("nzOffsetTop",16),l(),r("nzAffix",!1),l(30),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:[G,E,R,h,u,_,L,w,O,y,k,N,D,b,B,I,H],encapsulation:2})};var P=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:283,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"],["name","anchor","description","Hyperlinks to scroll on one page.","language","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-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>
1","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"],["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()(),i(18,"component-meta",15),e(19,"section",10),d(),e(20,"h2",16)(21,"span"),t(22,"When To Use"),n(),e(23,"a",17),t(24,"#"),n()(),e(25,"p"),t(26,"For displaying anchor hyperlinks on page and jumping between them."),n(),c(),n(),e(27,"h2")(28,"span"),t(29,"Examples"),n(),e(30,"nz-icon",18),g("click",function(){return z.expandAllCode()}),n()()(),e(31,"div",19)(32,"div",20)(33,"nz-code-box",21),i(34,"nz-demo-anchor-basic",22),e(35,"div",23),d(),e(36,"p"),t(37,"The simplest usage."),n(),c(),n()(),e(38,"nz-code-box",24),i(39,"nz-demo-anchor-on-click",22),e(40,"div",23),d(),e(41,"p"),t(42,"Clicking on an anchor does not record history."),n(),c(),n()(),e(43,"nz-code-box",25),i(44,"nz-demo-anchor-target-offset",22),e(45,"div",23),d(),e(46,"p"),t(47,"Anchor target scroll to screen center."),n(),c(),n()(),e(48,"nz-code-box",26),i(49,"nz-demo-anchor-horizontal-anchor",22),e(50,"div",23),d(),e(51,"p"),t(52,"Horizontally aligned anchors"),n(),c(),n()()(),e(53,"div",20)(54,"nz-code-box",27),i(55,"nz-demo-anchor-static",22),e(56,"div",23),d(),e(57,"p"),t(58,"Do not change state when page is scrolling."),n(),c(),n()(),e(59,"nz-code-box",28),i(60,"nz-demo-anchor-customize-highlight",22),e(61,"div",23),d(),e(62,"p"),t(63,"Customize the anchor highlight."),n(),c(),n()(),e(64,"nz-code-box",29),i(65,"nz-demo-anchor-on-change",22),e(66,"div",23),d(),e(67,"p"),t(68,"Listening for anchor link change."),n(),c(),n()()()(),e(69,"section",30),d(),e(70,"h2",31)(71,"span"),t(72,"API"),n(),e(73,"a",32),t(74,"#"),n()(),e(75,"h3",33)(76,"span"),t(77,"nz-anchor"),n(),e(78,"label",34),t(79,"component"),n(),e(80,"a",35),t(81,"#"),n()(),e(82,"table")(83,"thead")(84,"tr")(85,"th"),t(86,"Property"),n(),e(87,"th"),t(88,"Description"),n(),e(89,"th"),t(90,"Type"),n(),e(91,"th"),t(92,"Default"),n(),e(93,"th"),t(94,"Global Config"),n()()(),e(95,"tbody")(96,"tr")(97,"td")(98,"code"),t(99,"[nzAffix]"),n()(),e(100,"td"),t(101,"Fixed mode of Anchor"),n(),e(102,"td")(103,"code"),t(104,"boolean"),n()(),e(105,"td")(106,"code"),t(107,"true"),n()(),i(108,"td"),n(),e(109,"tr")(110,"td")(111,"code"),t(112,"[nzBounds]"),n()(),e(113,"td"),t(114,"Bounding distance of anchor area, unit: px"),n(),e(115,"td")(116,"code"),t(117,"number"),n()(),e(118,"td")(119,"code"),t(120,"5"),n()(),e(121,"td"),t(122,"\u2705"),n()(),e(123,"tr")(124,"td")(125,"code"),t(126,"[nzOffsetTop]"),n()(),e(127,"td"),t(128,"Pixels to offset from top when calculating position of scroll"),n(),e(129,"td")(130,"code"),t(131,"number"),n()(),e(132,"td")(133,"code"),t(134,"0"),n()(),e(135,"td"),t(136,"\u2705"),n()(),e(137,"tr")(138,"td")(139,"code"),t(140,"[nzShowInkInFixed]"),n()(),e(141,"td"),t(142,"Whether show ink-balls in fixed mode"),n(),e(143,"td")(144,"code"),t(145,"boolean"),n()(),e(146,"td")(147,"code"),t(148,"fal
1se"),n()(),e(149,"td"),t(150,"\u2705"),n()(),e(151,"tr")(152,"td")(153,"code"),t(154,"[nzTargetOffset]"),n()(),e(155,"td"),t(156,"Anchor scroll offset, default as "),e(157,"code"),t(158,"offsetTop"),n()(),e(159,"td")(160,"code"),t(161,"number"),n()(),e(162,"td"),t(163,"-"),n(),i(164,"td"),n(),e(165,"tr")(166,"td")(167,"code"),t(168,"[nzContainer]"),n()(),e(169,"td"),t(170,"Scrolling container"),n(),e(171,"td")(172,"code"),t(173,"string | HTMLElement"),n()(),e(174,"td")(175,"code"),t(176,"window"),n()(),i(177,"td"),n(),e(178,"tr")(179,"td")(180,"code"),t(181,"[nzCurrentAnchor]"),n()(),e(182,"td"),t(183,"Customize the anchor highlight"),n(),e(184,"td")(185,"code"),t(186,"string"),n()(),e(187,"td"),t(188,"-"),n(),i(189,"td"),n(),e(190,"tr")(191,"td")(192,"code"),t(193,"[nzDirection]"),n()(),e(194,"td"),t(195,"Set Anchor direction"),n(),e(196,"td")(197,"code"),t(198,"'vertical' | 'horizontal'"),n()(),e(199,"td")(200,"code"),t(201,"'vertical'"),n()(),i(202,"td"),n(),e(203,"tr")(204,"td")(205,"code"),t(206,"(nzClick)"),n()(),e(207,"td"),t(208,"Click of Anchor item"),n(),e(209,"td")(210,"code"),t(211,"EventEmitter<string>"),n()(),e(212,"td"),t(213,"-"),n(),i(214,"td"),n(),e(215,"tr")(216,"td")(217,"code"),t(218,"(nzChange)"),n()(),e(219,"td"),t(220,"Listening for anchor link change"),n(),e(221,"td")(222,"code"),t(223,"EventEmitter<string>"),n()(),e(224,"td"),t(225,"-"),n(),i(226,"td"),n(),e(227,"tr")(228,"td")(229,"code"),t(230,"(nzScroll)"),n()(),e(231,"td"),t(232,"The scroll function that is triggered when scrolling to an anchor."),n(),e(233,"td")(234,"code"),t(235,"EventEmitter<NzAnchorLinkComponent>"),n()(),e(236,"td"),t(237,"-"),n(),i(238,"td"),n()()(),e(239,"h3",36)(240,"span"),t(241,"nz-link"),n(),e(242,"label",34),t(243,"component"),n(),e(244,"a",37),t(245,"#"),n()(),e(246,"table")(247,"thead")(248,"tr")(249,"th"),t(250,"Property"),n(),e(251,"th"),t(252,"Description"),n(),e(253,"th"),t(254,"Type"),n()()(),e(255,"tbody")(256,"tr")(257,"td")(258,"code"),t(259,"[nzHref]"),n()(),e(260,"td"),t(261,"target of hyperlink"),n(),e(262,"td")(263,"code"),t(264,"string"),n()()(),e(265,"tr")(266,"td")(267,"code"),t(268,"[nzTarget]"),n()(),e(269,"td"),t(270,"Specifies where to display the linked URL"),n(),e(271,"td")(272,"code"),t(273,"string"),n()()(),e(274,"tr")(275,"td")(276,"code"),t(277,"[nzTitle]"),n()(),e(278,"td"),t(279,"content of hyperlink"),n(),e(280,"td")(281,"code"),t(282,"string | TemplateRef<void>"),n()()()()(),c(),n()()),o&2&&(l(),r("nzOffsetTop",16),l(),r("nzAffix",!1),l(29),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/
1anchor/demo/on-change.md"))},dependencies:[G,E,R,h,u,_,L,w,O,y,k,N,D,b,B,I,H],encapsulation:2})};var W=[{path:"en",component:P},{path:"zh",component:M}],Fe=W;export{Fe 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.