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