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