-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathchunk-2DIWGKQO.js
More file actions
99 lines (93 loc) · 46.1 KB
/
chunk-2DIWGKQO.js
File metadata and controls
99 lines (93 loc) · 46.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import{a as te,b,c as x,d as c}from"./chunk-WNFNW7PC.js";import{d as Y,e as ee}from"./chunk-CXTCXZF6.js";import{c as j,e as J}from"./chunk-X3UQHXLJ.js";import{a as z,g as O,h as M,m as P,n as Z}from"./chunk-L7X7AUIU.js";import"./chunk-MF6QOLKM.js";import"./chunk-FVRZCRVE.js";import{M as V,Qd as T,Rd as G,Ud as _,ob as S,qb as H,tc as L}from"./chunk-LLLSSPWU.js";import{Cb as K,Pc as X,Xb as a,Yb as n,Zb as t,Zc as $,_b as r,ic as C,kb as m,oc as w,pc as v,qa as d,qc as A,ra as p,uc as R,wb as u,zc as e}from"./chunk-MUDFMHZF.js";import"./chunk-JNGVGNCT.js";var g=class o{static \u0275fac=function(i){return new(i||o)};static \u0275cmp=u({type:o,selectors:[["nz-demo-breadcrumb-auto"]],decls:2,vars:1,consts:[[3,"nzAutoGenerate"]],template:function(i,s){i&1&&(n(0,"nz-breadcrumb",0),e(1," Please refer to StackBlitz demo at https://stackblitz.com/edit/ng-zorro-breadcrumb-auto "),t()),i&2&&a("nzAutoGenerate",!0)},dependencies:[c,x],encapsulation:2})};var N=class o{static \u0275fac=function(i){return new(i||o)};static \u0275cmp=u({type:o,selectors:[["nz-demo-breadcrumb-basic"]],decls:8,vars:0,template:function(i,s){i&1&&(n(0,"nz-breadcrumb")(1,"nz-breadcrumb-item"),e(2,"Home"),t(),n(3,"nz-breadcrumb-item")(4,"a"),e(5,"Application List"),t()(),n(6,"nz-breadcrumb-item"),e(7,"An Application"),t()())},dependencies:[c,x,b],encapsulation:2})};var F=class o{static \u0275fac=function(i){return new(i||o)};static \u0275cmp=u({type:o,selectors:[["nz-demo-breadcrumb-dropdown"]],decls:20,vars:1,consts:[["menu","nzDropdownMenu"],[3,"nzOverlay"],["href",""],["nz-menu","","nzSelectable",""],["nz-menu-item",""]],template:function(i,s){if(i&1&&(n(0,"nz-breadcrumb")(1,"nz-breadcrumb-item"),e(2,"Ant Design"),t(),n(3,"nz-breadcrumb-item")(4,"a"),e(5,"Component"),t()(),n(6,"nz-breadcrumb-item",1)(7,"a",2),e(8,"An Application"),t()(),n(9,"nz-breadcrumb-item"),e(10,"Button"),t()(),n(11,"nz-dropdown-menu",null,0)(13,"ul",3)(14,"li",4),e(15,"General"),t(),n(16,"li",4),e(17,"Layout"),t(),n(18,"li",4),e(19,"Navigation"),t()()()),i&2){let E=R(12);m(6),a("nzOverlay",E)}},dependencies:[c,x,b,ee,J,j,Y],encapsulation:2})};var ne=()=>["../../"],D=class o{static \u0275fac=function(i){return new(i||o)};static \u0275cmp=u({type:o,selectors:[["nz-demo-breadcrumb-router"]],decls:6,vars:2,consts:[[3,"routerLink"]],template:function(i,s){i&1&&(n(0,"nz-breadcrumb")(1,"nz-breadcrumb-item")(2,"a",0),e(3,"Home"),t()(),n(4,"nz-breadcrumb-item"),e(5,"Breadcrumb"),t()()),i&2&&(m(2),a("routerLink",X(1,ne)))},dependencies:[V,c,x,b],encapsulation:2})};var I=class o{static \u0275fac=function(i){return new(i||o)};static \u0275cmp=u({type:o,selectors:[["nz-demo-breadcrumb-separator-independent"]],decls:16,vars:1,consts:[[3,"nzSeparator"]],template:function(i,s){i&1&&(n(0,"nz-breadcrumb",0)(1,"nz-breadcrumb-item"),e(2,"Location"),t(),n(3,"nz-breadcrumb-separator"),e(4,":"),t(),n(5,"nz-breadcrumb-item")(6,"a"),e(7,"Application Center"),t()(),n(8,"nz-breadcrumb-separator"),e(9,"/"),t(),n(10,"nz-breadcrumb-item"),e(11,"Application List"),t(),n(12,"nz-breadcrumb-separator"),e(13,"/"),t(),n(14,"nz-breadcrumb-item"),e(15,"An Application"),t()()),i&2&&a("nzSeparator",null)},dependencies:[c,x,b,te],encapsulation:2})};function ie(o,l){o&1&&r(0,"nz-icon",3)}var k=class o{static \u0275fac=function(i){return new(i||o)};static \u0275cmp=u({type:o,selectors:[["nz-demo-breadcrumb-separator"]],decls:23,vars:1,consts:[["iconTemplate",""],["nzSeparator",">"],[3,"nzSeparator"],["nzType","arrow-right"]],template:function(i,s){if(i&1&&(n(0,"h4"),e(1,"String"),t(),n(2,"nz-breadcrumb",1)(3,"nz-breadcrumb-item"),e(4,"Home"),t(),n(5,"nz-breadcrumb-item")(6,"a"),e(7,"Application List"),t()(),n(8,"nz-breadcrumb-item"),e(9,"An Application"),t()(),r(10,"br"),n(11,"h4"),e(12,"TemplateRef"),t(),n(13,"nz-breadcrumb",2)(14,"nz-breadcrumb-item"),e(15,"Home"),t(),n(16,"nz-breadcrumb-item")(17,"a"),e(18,"Application List"),t()(),n(19,"nz-breadcrumb-item"),e(20,"An Application"),t()(),K(21,ie,1,0,"ng-template",null,0,$)),i&2){let E=R(22);m(13),a("nzSeparator",E)}},dependencies:[c,x,b,H,S],styles:["h4[_ngcontent-%COMP%]:first-child{margin-top:0}h4[_ngcontent-%COMP%]{margin:16px 0;font-size:14px;line-height:1;font-weight:400}"]})};var y=class o{static \u0275fac=function(i){return new(i||o)};static \u0275cmp=u({type:o,selectors:[["nz-demo-breadcrumb-with-icon"]],decls:10,vars:0,consts:[["nzType","home"],["nzType","user"]],template:function(i,s){i&1&&(n(0,"nz-breadcrumb")(1,"nz-breadcrumb-item"),r(2,"nz-icon",0),t(),n(3,"nz-breadcrumb-item")(4,"a"),r(5,"nz-icon",1),n(6,"span"),e(7,"Application List"),t()()(),n(8,"nz-breadcrumb-item"),e(9,"Application"),t()())},dependencies:[c,x,b,H,S],encapsulation:2})};var W=class o{expanded=!1;codeBoxes;goLink(l){window&&(window.location.hash=l)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(l=>l.expandCode(this.expanded))}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=u({type:o,selectors:[["nz-demo-breadcrumb"]],viewQuery:function(i,s){if(i&1&&w(z,5),i&2){let E;v(E=A())&&(s.codeBoxes=E)}},decls:769,vars:42,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-breadcrumb-demo-basic","nzTitle","\u57FA\u672C"],["nzHref","#components-breadcrumb-demo-with-icon","nzTitle","\u5E26\u6709\u56FE\u6807\u7684"],["nzHref","#components-breadcrumb-demo-router","nzTitle","\u8DEF\u7531"],["nzHref","#components-breadcrumb-demo-auto","nzTitle","\u81EA\u52A8\u751F\u6210"],["nzHref","#components-breadcrumb-demo-separator","nzTitle","\u5206\u9694\u7B26"],["nzHref","#components-breadcrumb-demo-dropdown","nzTitle","\u5E26\u4E0B\u62C9\u83DC\u5355\u7684\u9762\u5305\u5C51"],["nzHref","#components-breadcrumb-demo-separator-independent","nzTitle","\u72EC\u7ACB\u7684\u5206\u9694\u7B26"],["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/breadcrumb/doc/index.zh-CN.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nzType","edit"],["name","breadcrumb","description","\u663E\u793A\u5F53\u524D\u9875\u9762\u5728\u7CFB\u7EDF\u5C42\u7EA7\u7ED3\u6784\u4E2D\u7684\u4F4D\u7F6E\uFF0C\u5E76\u80FD\u5411\u4E0A\u8FD4\u56DE\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-breadcrumb-basic","nzGenerateCommand","ng g ng-zorro-antd:breadcrumb-basic <name>","nzComponentName","NzDemoBreadcrumbBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","\u8DEF\u7531","nzSelector","nz-demo-breadcrumb-router","nzGenerateCommand","ng g ng-zorro-antd:breadcrumb-router <name>","nzComponentName","NzDemoBreadcrumbRouterComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["href","https://angular.cn/api/router/RouterLink","target","_blank","rel","noopener"],["nzTitle","\u5206\u9694\u7B26","nzSelector","nz-demo-breadcrumb-separator","nzGenerateCommand","ng g ng-zorro-antd:breadcrumb-separator <name>","nzComponentName","NzDemoBreadcrumbSeparatorComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u72EC\u7ACB\u7684\u5206\u9694\u7B26","nzSelector","nz-demo-breadcrumb-separator-independent","nzGenerateCommand","ng g ng-zorro-antd:breadcrumb-separator-independent <name>","nzComponentName","NzDemoBreadcrumbSeparatorIndependentComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u5E26\u6709\u56FE\u6807\u7684","nzSelector","nz-demo-breadcrumb-with-icon","nzGenerateCommand","ng g ng-zorro-antd:breadcrumb-with-icon <name>","nzComponentName","NzDemoBreadcrumbWithIconComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u81EA\u52A8\u751F\u6210","nzSelector","nz-demo-breadcrumb-auto","nzGenerateCommand","ng g ng-zorro-antd:breadcrumb-auto <name>","nzComponentName","NzDemoBreadcrumbAutoComponent","nzIframeSource","https://stackblitz.com/edit/ng-zorro-breadcrumb-auto?embed=1&file=src/app/app.component.html&hideExplorer=1&hideNavigation=1&view=preview",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u5E26\u4E0B\u62C9\u83DC\u5355\u7684\u9762\u5305\u5C51","nzSelector","nz-demo-breadcrumb-dropdown","nzGenerateCommand","ng g ng-zorro-antd:breadcrumb-dropdown <name>","nzComponentName","NzDemoBreadcrumbDropdownComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-breadcrumb"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-breadcrumb'",1,"anchor"],[1,"language-ts"],[1,"token","punctuation"],[1,"token","operator"],[1,"token","string"],[1,"token","function-variable","function"],[1,"token","keyword"],[1,"token","function"],[1,"language-html"],[1,"token","tag"],[1,"token","attr-name"],[1,"token","attr-value"],[1,"token","punctuation","attr-equals"],[1,"token","comment"],[1,"token","builtin"],[1,"token","template-string"],[1,"token","template-punctuation","string"],[1,"token","interpolation"],[1,"token","interpolation-punctuation","punctuation"]],template:function(i,s){i&1&&(n(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),C("nzClick",function(U){return s.goLink(U)}),r(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),t()(),n(11,"section",10)(12,"h1"),e(13,"Breadcrumb"),n(14,"span",11),e(15,"\u9762\u5305\u5C51"),t(),r(16,"span",12),n(17,"a",13),r(18,"nz-icon",14),t()(),r(19,"component-meta",15),n(20,"section",10),p(),n(21,"h2",16)(22,"span"),e(23,"\u4F55\u65F6\u4F7F\u7528"),t(),n(24,"a",17),e(25,"#"),t()(),n(26,"ul")(27,"li"),e(28,"\u5F53\u7CFB\u7EDF\u62E5\u6709\u8D85\u8FC7\u4E24\u7EA7\u4EE5\u4E0A\u7684\u5C42\u7EA7\u7ED3\u6784\u65F6\uFF1B"),t(),n(29,"li"),e(30,"\u5F53\u9700\u8981\u544A\u77E5\u7528\u6237\u300E\u4F60\u5728\u54EA\u91CC\u300F\u65F6\uFF1B"),t(),n(31,"li"),e(32,"\u5F53\u9700\u8981\u5411\u4E0A\u5BFC\u822A\u7684\u529F\u80FD\u65F6\u3002"),t()(),d(),t(),n(33,"h2")(34,"span"),e(35,"\u4EE3\u7801\u6F14\u793A"),t(),n(36,"nz-icon",18),C("click",function(){return s.expandAllCode()}),t()()(),n(37,"div",19)(38,"div",20)(39,"nz-code-box",21),r(40,"nz-demo-breadcrumb-basic",22),n(41,"div",23),p(),n(42,"p"),e(43,"\u6700\u7B80\u5355\u7684\u7528\u6CD5\u3002"),t(),d(),t()(),n(44,"nz-code-box",24),r(45,"nz-demo-breadcrumb-router",22),n(46,"div",23),p(),n(47,"p"),e(48,"\u548C "),n(49,"a",25),e(50,"RouterLink"),t(),e(51," \u8FDB\u884C\u7ED3\u5408\u4F7F\u7528\u3002"),t(),d(),t()(),n(52,"nz-code-box",26),r(53,"nz-demo-breadcrumb-separator",22),n(54,"div",23),p(),n(55,"p"),e(56,"\u4F7F\u7528 "),n(57,"code"),e(58,"nzSeparator"),t(),e(59," \u53EF\u4EE5\u81EA\u5B9A\u4E49\u5206\u9694\u7B26\u3002"),t(),d(),t()(),n(60,"nz-code-box",27),r(61,"nz-demo-breadcrumb-separator-independent",22),n(62,"div",23),p(),n(63,"p"),e(64,"\u4F7F\u7528 "),n(65,"code"),e(66,"nz-breadcrumb-separator"),t(),e(67," \u53EF\u4EE5\u81EA\u5B9A\u4E49\u5206\u9694\u7B26\u3002"),t(),d(),t()()(),n(68,"div",20)(69,"nz-code-box",28),r(70,"nz-demo-breadcrumb-with-icon",22),n(71,"div",23),p(),n(72,"p"),e(73,"\u56FE\u6807\u653E\u5728\u6587\u5B57\u524D\u9762\u3002"),t(),d(),t()(),n(74,"nz-code-box",29),r(75,"nz-demo-breadcrumb-auto",22),n(76,"div",23),p(),n(77,"p"),e(78,"\u901A\u8FC7\u914D\u7F6E "),n(79,"code"),e(80,"router.data"),t(),e(81," \u81EA\u52A8\u751F\u6210\u9762\u5305\u5C51\u3002"),t(),d(),t()(),n(82,"nz-code-box",30),r(83,"nz-demo-breadcrumb-dropdown",22),n(84,"div",23),p(),n(85,"p"),e(86,"\u9762\u5305\u5C51\u652F\u6301\u4E0B\u62C9\u83DC\u5355\u3002"),t(),d(),t()()()(),n(87,"section",31),p(),n(88,"h2",32)(89,"span"),e(90,"API"),t(),n(91,"a",33),e(92,"#"),t()(),n(93,"h3",34)(94,"span"),e(95,"nz-breadcrumb"),t(),n(96,"label",35),e(97,"component"),t(),n(98,"a",36),e(99,"#"),t()(),n(100,"table")(101,"thead")(102,"tr")(103,"th"),e(104,"\u53C2\u6570"),t(),n(105,"th"),e(106,"\u8BF4\u660E"),t(),n(107,"th"),e(108,"\u7C7B\u578B"),t(),n(109,"th"),e(110,"\u9ED8\u8BA4\u503C"),t()()(),n(111,"tbody")(112,"tr")(113,"td")(114,"code"),e(115,"[nzSeparator]"),t()(),n(116,"td"),e(117,"\u5206\u9694\u7B26\u81EA\u5B9A\u4E49"),t(),n(118,"td")(119,"code"),e(120,"string | TemplateRef<void> | null"),t()(),n(121,"td")(122,"code"),e(123,"'/'"),t()()(),n(124,"tr")(125,"td")(126,"code"),e(127,"[nzAutoGenerate]"),t()(),n(128,"td"),e(129,"\u81EA\u52A8\u751F\u6210 Breadcrumb"),t(),n(130,"td")(131,"code"),e(132,"boolean"),t()(),n(133,"td")(134,"code"),e(135,"false"),t()()(),n(136,"tr")(137,"td")(138,"code"),e(139,"[nzRouteLabel]"),t()(),n(140,"td"),e(141,"\u81EA\u5B9A\u4E49 route data \u5C5E\u6027\u540D\u79F0\uFF0C"),n(142,"code"),e(143,"nzAutoGenerate"),t(),e(144," \u4E3A "),n(145,"code"),e(146,"true"),t(),e(147," \u65F6\u624D\u751F\u6548"),t(),n(148,"td")(149,"code"),e(150,"string"),t()(),n(151,"td")(152,"code"),e(153,"'breadcrumb'"),t()()(),n(154,"tr")(155,"td")(156,"code"),e(157,"[nzRouteLabelFn]"),t()(),n(158,"td"),e(159,"\u683C\u5F0F\u5316\u9762\u5305\u5C51\u5BFC\u822A\u9879\u7684\u663E\u793A\u6587\u5B57\uFF0C\u901A\u5E38\u7528\u4E8E\u5728\u56FD\u9645\u5316\u5E94\u7528\u4E2D\u7FFB\u8BD1\u952E\u503C\uFF0C "),n(160,"code"),e(161,"nzAutoGenerate"),t(),e(162," \u4E3A "),n(163,"code"),e(164,"true"),t(),e(165," \u65F6\u624D\u751F\u6548"),t(),n(166,"td")(167,"code"),e(168,"(label:string) => string"),t()(),n(169,"td")(170,"code"),e(171,"label => label"),t()()(),n(172,"tr")(173,"td")(174,"code"),e(175,"[nzRouteFn]"),t()(),n(176,"td"),e(177,"\u683C\u5F0F\u5316\u9762\u5305\u5C51\u8DEF\u7531\u683C\u5F0F\uFF0C\u53EF\u7528\u4E8E\u4E3A URL \u6DFB\u52A0 query params\uFF0C"),n(178,"code"),e(179,"nzAutoGenerate"),t(),e(180," \u4E3A "),n(181,"code"),e(182,"true"),t(),e(183," \u65F6\u624D\u751F\u6548"),t(),n(184,"td")(185,"code"),e(186,"(route:string) => route"),t()(),n(187,"td")(188,"code"),e(189,"route => route"),t()()()()(),n(190,"p"),e(191,"\u4F7F\u7528 "),n(192,"code"),e(193,"[nzAutoGenerate]"),t(),e(194," \u65F6\uFF0C\u9700\u8981\u5728\u8DEF\u7531\u7C7B\u4E2D\u5B9A\u4E49 "),n(195,"code"),e(196,"data"),t(),e(197,":"),t(),n(198,"pre")(199,"code",37)(200,"span",38),e(201,"{"),t(),e(202,`
path`),n(203,"span",39),e(204,":"),t(),e(205," "),n(206,"span",40),e(207,"'path'"),t(),n(208,"span",38),e(209,","),t(),e(210,`
component`),n(211,"span",39),e(212,":"),t(),e(213," SomeComponent"),n(214,"span",38),e(215,","),t(),e(216,`
data`),n(217,"span",39),e(218,":"),t(),e(219," "),n(220,"span",38),e(221,"{"),t(),e(222,`
breadcrumb`),n(223,"span",39),e(224,":"),t(),e(225," "),n(226,"span",40),e(227,"'Display Name'"),t(),e(228,`
`),n(229,"span",38),e(230,"}"),t(),e(231,`
`),n(232,"span",38),e(233,"}"),t(),e(234,`
`),t()(),n(235,"p"),e(236,"\u5BF9\u4E8E\u61D2\u52A0\u8F7D\u8DEF\u7531\uFF0C\u5E94\u8BE5\u5728\u7236\u5C42\u8DEF\u7531\u5199 "),n(237,"code"),e(238,"data"),t(),e(239,"\uFF1A"),t(),n(240,"pre")(241,"code",37)(242,"span",38),e(243,"{"),t(),e(244,`
path`),n(245,"span",39),e(246,":"),t(),e(247," "),n(248,"span",40),e(249,"'first'"),t(),n(250,"span",38),e(251,","),t(),e(252,`
`),n(253,"span",41),e(254,"loadChildren"),t(),n(255,"span",39),e(256,":"),t(),e(257," "),n(258,"span",38),e(259,"("),t(),n(260,"span",38),e(261,")"),t(),e(262," "),n(263,"span",39),e(264,"=>"),t(),e(265," "),n(266,"span",42),e(267,"import"),t(),n(268,"span",38),e(269,"("),t(),n(270,"span",40),e(271,"'./first/first.module'"),t(),n(272,"span",38),e(273,")"),t(),n(274,"span",38),e(275,"."),t(),n(276,"span",43),e(277,"then"),t(),n(278,"span",38),e(279,"("),t(),e(280,"m "),n(281,"span",39),e(282,"=>"),t(),e(283," m"),n(284,"span",38),e(285,"."),t(),e(286,"FirstModule"),n(287,"span",38),e(288,")"),t(),n(289,"span",38),e(290,","),t(),e(291,`
data`),n(292,"span",39),e(293,":"),t(),e(294," "),n(295,"span",38),e(296,"{"),t(),e(297,`
breadcrumb`),n(298,"span",39),e(299,":"),t(),e(300," "),n(301,"span",40),e(302,"'First'"),t(),e(303,`
`),n(304,"span",38),e(305,"}"),t(),n(306,"span",38),e(307,","),t(),e(308,`
`),n(309,"span",38),e(310,"}"),t(),e(311,`
`),t()(),n(312,"p"),e(313,"\u4F7F\u7528 "),n(314,"code"),e(315,"nzRouteLabel"),t(),e(316," \u81EA\u5B9A\u4E49\u8DEF\u7531\u5C5E\u6027\u540D\u79F0:"),t(),n(317,"pre")(318,"code",44)(319,"span",45)(320,"span",45)(321,"span",38),e(322,"<"),t(),e(323,"nz-breadcrumb"),t(),e(324," "),n(325,"span",46),e(326,"[nzAutoGenerate]"),t(),n(327,"span",47)(328,"span",48),e(329,"="),t(),n(330,"span",38),e(331,'"'),t(),e(332,"true"),n(333,"span",38),e(334,'"'),t()(),e(335," "),n(336,"span",46),e(337,"[nzRouteLabel]"),t(),n(338,"span",47)(339,"span",48),e(340,"="),t(),n(341,"span",38),e(342,'"'),t(),n(343,"span",38),e(344,"'"),t(),e(345,"customBreadcrumb'"),n(346,"span",38),e(347,'"'),t()(),n(348,"span",38),e(349,">"),t()(),n(350,"span",45)(351,"span",45)(352,"span",38),e(353,"</"),t(),e(354,"nz-breadcrumb"),t(),n(355,"span",38),e(356,">"),t()(),e(357,`
`),t()(),n(358,"pre")(359,"code",37)(360,"span",38),e(361,"{"),t(),e(362,`
path`),n(363,"span",39),e(364,":"),t(),e(365," "),n(366,"span",40),e(367,"'path'"),t(),n(368,"span",38),e(369,","),t(),e(370,`
component`),n(371,"span",39),e(372,":"),t(),e(373," SomeComponent"),n(374,"span",38),e(375,","),t(),e(376,`
data`),n(377,"span",39),e(378,":"),t(),e(379," "),n(380,"span",38),e(381,"{"),t(),e(382,`
customBreadcrumb`),n(383,"span",39),e(384,":"),t(),e(385," "),n(386,"span",40),e(387,"'Display Name'"),t(),e(388,`
`),n(389,"span",38),e(390,"}"),t(),e(391,`
`),n(392,"span",38),e(393,"}"),t(),e(394,`
`),t()(),n(395,"p"),e(396,"\u4F7F\u7528 "),n(397,"code"),e(398,"nzRouteLabelFn"),t(),e(399," \u5728\u56FD\u9645\u5316\u5E94\u7528\u4E2D\u683C\u5F0F\u5316\u9762\u5305\u5C51\u5BFC\u822A\u9879\u7684\u6587\u672C:"),t(),n(400,"pre")(401,"code",44)(402,"span",45)(403,"span",45)(404,"span",38),e(405,"<"),t(),e(406,"nz-breadcrumb"),t(),e(407," "),n(408,"span",46),e(409,"[nzAutoGenerate]"),t(),n(410,"span",47)(411,"span",48),e(412,"="),t(),n(413,"span",38),e(414,'"'),t(),e(415,"true"),n(416,"span",38),e(417,'"'),t()(),e(418," "),n(419,"span",46),e(420,"[nzRouteLabel]"),t(),n(421,"span",47)(422,"span",48),e(423,"="),t(),n(424,"span",38),e(425,'"'),t(),n(426,"span",38),e(427,"'"),t(),e(428,"breadcrumbI18nKey'"),n(429,"span",38),e(430,'"'),t()(),e(431," "),n(432,"span",46),e(433,"[nzRouteLabelFn]"),t(),n(434,"span",47)(435,"span",48),e(436,"="),t(),n(437,"span",38),e(438,'"'),t(),e(439,"translateFn"),n(440,"span",38),e(441,'"'),t()(),n(442,"span",38),e(443,">"),t()(),n(444,"span",45)(445,"span",45)(446,"span",38),e(447,"</"),t(),e(448,"nz-breadcrumb"),t(),n(449,"span",38),e(450,">"),t()(),e(451,`
`),t()(),n(452,"pre")(453,"code",37)(454,"span",49),e(455,"// In Route"),t(),e(456,`
`),n(457,"span",38),e(458,"{"),t(),e(459,`
path`),n(460,"span",39),e(461,":"),t(),e(462," "),n(463,"span",40),e(464,"'path'"),t(),n(465,"span",38),e(466,","),t(),e(467,`
component`),n(468,"span",39),e(469,":"),t(),e(470," SomeComponent"),n(471,"span",38),e(472,","),t(),e(473,`
data`),n(474,"span",39),e(475,":"),t(),e(476," "),n(477,"span",38),e(478,"{"),t(),e(479,`
breadcrumbI18nKey`),n(480,"span",39),e(481,":"),t(),e(482," "),n(483,"span",40),e(484,"'i18n.aaa.bbbb'"),t(),e(485,`
`),n(486,"span",38),e(487,"}"),t(),e(488,`
`),n(489,"span",38),e(490,"}"),t(),e(491,`
`),n(492,"span",49),e(493,"// In component"),t(),e(494,`
`),n(495,"span",41),e(496,"translateFn"),t(),e(497," "),n(498,"span",39),e(499,"="),t(),e(500," "),n(501,"span",38),e(502,"("),t(),e(503,"key"),n(504,"span",39),e(505,":"),t(),e(506," "),n(507,"span",50),e(508,"string"),t(),n(509,"span",38),e(510,")"),t(),e(511," "),n(512,"span",39),e(513,"=>"),t(),e(514," "),n(515,"span",42),e(516,"this"),t(),n(517,"span",38),e(518,"."),t(),e(519,"yourI18nService"),n(520,"span",38),e(521,"."),t(),n(522,"span",43),e(523,"translate"),t(),n(524,"span",38),e(525,"("),t(),e(526,"key"),n(527,"span",38),e(528,")"),t(),n(529,"span",38),e(530,";"),t(),e(531,`
`),t()(),n(532,"p"),e(533,"\u4F7F\u7528 "),n(534,"code"),e(535,"nzRouteFn"),t(),e(536," \u6765\u4F7F\u7528\u683C\u5F0F\u5316 URL \u6216\u6DFB\u52A0 query params\uFF1A"),t(),n(537,"pre")(538,"code",44)(539,"span",45)(540,"span",45)(541,"span",38),e(542,"<"),t(),e(543,"nz-breadcrumb"),t(),e(544," "),n(545,"span",46),e(546,"[nzAutoGenerate]"),t(),n(547,"span",47)(548,"span",48),e(549,"="),t(),n(550,"span",38),e(551,'"'),t(),e(552,"true"),n(553,"span",38),e(554,'"'),t()(),e(555," "),n(556,"span",46),e(557,"[nzRouteLabel]"),t(),n(558,"span",47)(559,"span",48),e(560,"="),t(),n(561,"span",38),e(562,'"'),t(),n(563,"span",38),e(564,"'"),t(),e(565,"breadcrumbI18nKey'"),n(566,"span",38),e(567,'"'),t()(),e(568," "),n(569,"span",46),e(570,"[nzRouteLabelFn]"),t(),n(571,"span",47)(572,"span",48),e(573,"="),t(),n(574,"span",38),e(575,'"'),t(),e(576,"translateFn"),n(577,"span",38),e(578,'"'),t()(),e(579," "),n(580,"span",46),e(581,"[nzRouteFn]"),t(),n(582,"span",47)(583,"span",48),e(584,"="),t(),n(585,"span",38),e(586,'"'),t(),e(587,"customRoute"),n(588,"span",38),e(589,'"'),t()(),n(590,"span",38),e(591,">"),t()(),n(592,"span",45)(593,"span",45)(594,"span",38),e(595,"</"),t(),e(596,"nz-breadcrumb"),t(),n(597,"span",38),e(598,">"),t()(),e(599,`
`),t()(),n(600,"pre")(601,"code",37)(602,"span",49),e(603,"// In component"),t(),e(604,`
`),n(605,"span",43),e(606,"bindCurrentParams"),t(),n(607,"span",38),e(608,"("),t(),e(609,"params"),n(610,"span",38),e(611,","),t(),e(612," route"),n(613,"span",38),e(614,")"),t(),e(615," "),n(616,"span",38),e(617,"{"),t(),e(618,`
`),n(619,"span",42),e(620,"let"),t(),e(621," newRoute "),n(622,"span",39),e(623,"="),t(),e(624," route"),n(625,"span",38),e(626,";"),t(),e(627,`
`),n(628,"span",42),e(629,"for"),t(),e(630," "),n(631,"span",38),e(632,"("),t(),n(633,"span",42),e(634,"const"),t(),e(635," key "),n(636,"span",42),e(637,"in"),t(),e(638," params"),n(639,"span",38),e(640,")"),t(),e(641," "),n(642,"span",38),e(643,"{"),t(),e(644,`
`),n(645,"span",42),e(646,"if"),t(),e(647," "),n(648,"span",38),e(649,"("),t(),e(650,"params"),n(651,"span",38),e(652,"."),t(),n(653,"span",43),e(654,"hasOwnProperty"),t(),n(655,"span",38),e(656,"("),t(),e(657,"key"),n(658,"span",38),e(659,")"),t(),n(660,"span",38),e(661,")"),t(),e(662," "),n(663,"span",38),e(664,"{"),t(),e(665,`
newRoute `),n(666,"span",39),e(667,"+="),t(),e(668," "),n(669,"span",51)(670,"span",52),e(671,"`"),t(),n(672,"span",40),e(673,";"),t(),n(674,"span",53)(675,"span",54),e(676,"${"),t(),e(677,"key"),n(678,"span",54),e(679,"}"),t()(),n(680,"span",40),e(681,"="),t(),n(682,"span",53)(683,"span",54),e(684,"${"),t(),e(685,"params"),n(686,"span",38),e(687,"["),t(),e(688,"key"),n(689,"span",38),e(690,"]"),t(),n(691,"span",54),e(692,"}"),t()(),n(693,"span",52),e(694,"`"),t()(),n(695,"span",38),e(696,";"),t(),e(697,`
`),n(698,"span",38),e(699,"}"),t(),e(700,`
`),n(701,"span",38),e(702,"}"),t(),e(703,`
`),n(704,"span",42),e(705,"return"),t(),e(706," newRoute"),n(707,"span",38),e(708,";"),t(),e(709,`
`),n(710,"span",38),e(711,"}"),t(),e(712,`
`),n(713,"span",42),e(714,"const"),t(),e(715," params "),n(716,"span",39),e(717,"="),t(),e(718," "),n(719,"span",42),e(720,"this"),t(),n(721,"span",38),e(722,"."),t(),e(723,"activatedRoute"),n(724,"span",38),e(725,"."),t(),e(726,"snapshot"),n(727,"span",38),e(728,"."),t(),e(729,"params"),n(730,"span",38),e(731,";"),t(),e(732,`
`),n(733,"span",41),e(734,"customRoute"),t(),e(735," "),n(736,"span",39),e(737,"="),t(),e(738," "),n(739,"span",38),e(740,"("),t(),e(741,"route"),n(742,"span",39),e(743,":"),t(),n(744,"span",50),e(745,"string"),t(),n(746,"span",38),e(747,")"),t(),e(748," "),n(749,"span",39),e(750,"=>"),t(),e(751," "),n(752,"span",42),e(753,"this"),t(),n(754,"span",38),e(755,"."),t(),n(756,"span",43),e(757,"bindCurrentParams"),t(),n(758,"span",38),e(759,"("),t(),e(760,"params"),n(761,"span",38),e(762,","),t(),e(763,"route"),n(764,"span",38),e(765,")"),t(),n(766,"span",38),e(767,";"),t(),e(768,`
`),t()(),d(),t()()),i&2&&(m(),a("nzOffsetTop",16),m(),a("nzAffix",!1),m(35),a("nzGutter",16),m(),a("nzXl",12)("nzSpan",24),m(),a("nzId","components-breadcrumb-demo-basic")("nzLink","components-breadcrumb-demo-basic")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/breadcrumb/demo/basic.md"),m(5),a("nzId","components-breadcrumb-demo-router")("nzLink","components-breadcrumb-demo-router")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/breadcrumb/demo/router.md"),m(8),a("nzId","components-breadcrumb-demo-separator")("nzLink","components-breadcrumb-demo-separator")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/breadcrumb/demo/separator.md"),m(8),a("nzId","components-breadcrumb-demo-separator-independent")("nzLink","components-breadcrumb-demo-separator-independent")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/breadcrumb/demo/separator-independent.md"),m(8),a("nzXl",12)("nzSpan",24),m(),a("nzId","components-breadcrumb-demo-with-icon")("nzLink","components-breadcrumb-demo-with-icon")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/breadcrumb/demo/with-icon.md"),m(5),a("nzId","components-breadcrumb-demo-auto")("nzLink","components-breadcrumb-demo-auto")("nzIframe",!0)("nzIframeHeight",460)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/breadcrumb/demo/auto.md"),m(8),a("nzId","components-breadcrumb-demo-dropdown")("nzLink","components-breadcrumb-demo-dropdown")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/breadcrumb/demo/dropdown.md"))},dependencies:[Z,z,P,O,M,_,G,T,L,S,g,N,F,D,I,k,y],encapsulation:2})};var Q=class o{expanded=!1;codeBoxes;goLink(l){window&&(window.location.hash=l)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(l=>l.expandCode(this.expanded))}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=u({type:o,selectors:[["nz-demo-breadcrumb"]],viewQuery:function(i,s){if(i&1&&w(z,5),i&2){let E;v(E=A())&&(s.codeBoxes=E)}},decls:768,vars:42,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-breadcrumb-demo-basic","nzTitle","Basic Usage"],["nzHref","#components-breadcrumb-demo-with-icon","nzTitle","With an Icon"],["nzHref","#components-breadcrumb-demo-router","nzTitle","RouterLink"],["nzHref","#components-breadcrumb-demo-auto","nzTitle","Auto generated breadcrumbs"],["nzHref","#components-breadcrumb-demo-separator","nzTitle","Configuring the Separator"],["nzHref","#components-breadcrumb-demo-dropdown","nzTitle","Bread crumbs with drop down menu"],["nzHref","#components-breadcrumb-demo-separator-independent","nzTitle","Configuring the Separator Independently"],["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/breadcrumb/doc/index.en-US.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nzType","edit"],["name","breadcrumb","description","Displays the current location within a hierarchy. And allow going back to states higher up in the hierarchy.","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 Usage","nzSelector","nz-demo-breadcrumb-basic","nzGenerateCommand","ng g ng-zorro-antd:breadcrumb-basic <name>","nzComponentName","NzDemoBreadcrumbBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","RouterLink","nzSelector","nz-demo-breadcrumb-router","nzGenerateCommand","ng g ng-zorro-antd:breadcrumb-router <name>","nzComponentName","NzDemoBreadcrumbRouterComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["href","https://angular.dev/api/router/RouterLink","target","_blank","rel","noopener"],["nzTitle","Configuring the Separator","nzSelector","nz-demo-breadcrumb-separator","nzGenerateCommand","ng g ng-zorro-antd:breadcrumb-separator <name>","nzComponentName","NzDemoBreadcrumbSeparatorComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Configuring the Separator Independently","nzSelector","nz-demo-breadcrumb-separator-independent","nzGenerateCommand","ng g ng-zorro-antd:breadcrumb-separator-independent <name>","nzComponentName","NzDemoBreadcrumbSeparatorIndependentComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","With an Icon","nzSelector","nz-demo-breadcrumb-with-icon","nzGenerateCommand","ng g ng-zorro-antd:breadcrumb-with-icon <name>","nzComponentName","NzDemoBreadcrumbWithIconComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Auto generated breadcrumbs","nzSelector","nz-demo-breadcrumb-auto","nzGenerateCommand","ng g ng-zorro-antd:breadcrumb-auto <name>","nzComponentName","NzDemoBreadcrumbAutoComponent","nzIframeSource","https://stackblitz.com/edit/ng-zorro-breadcrumb-auto?embed=1&file=src/app/app.component.html&hideExplorer=1&hideNavigation=1&view=preview",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Bread crumbs with drop down menu","nzSelector","nz-demo-breadcrumb-dropdown","nzGenerateCommand","ng g ng-zorro-antd:breadcrumb-dropdown <name>","nzComponentName","NzDemoBreadcrumbDropdownComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-breadcrumb"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-breadcrumb'",1,"anchor"],[1,"language-ts"],[1,"token","punctuation"],[1,"token","operator"],[1,"token","string"],[1,"token","function-variable","function"],[1,"token","keyword"],[1,"token","function"],[1,"language-html"],[1,"token","tag"],[1,"token","attr-name"],[1,"token","attr-value"],[1,"token","punctuation","attr-equals"],[1,"token","comment"],[1,"token","builtin"],[1,"token","template-string"],[1,"token","template-punctuation","string"],[1,"token","interpolation"],[1,"token","interpolation-punctuation","punctuation"]],template:function(i,s){i&1&&(n(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),C("nzClick",function(U){return s.goLink(U)}),r(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),t()(),n(11,"section",10)(12,"h1"),e(13,"Breadcrumb"),r(14,"span",11)(15,"span",12),n(16,"a",13),r(17,"nz-icon",14),t()(),r(18,"component-meta",15),n(19,"section",10),p(),n(20,"h2",16)(21,"span"),e(22,"When To Use"),t(),n(23,"a",17),e(24,"#"),t()(),n(25,"ul")(26,"li"),e(27,"When the system has more than two layers in a hierarchy."),t(),n(28,"li"),e(29,"When you need to inform the user of where they are."),t(),n(30,"li"),e(31,"When the user may need to navigate back to a higher level."),t(),n(32,"li"),e(33,"When the application has multi-layer architecture."),t()(),d(),t(),n(34,"h2")(35,"span"),e(36,"Examples"),t(),n(37,"nz-icon",18),C("click",function(){return s.expandAllCode()}),t()()(),n(38,"div",19)(39,"div",20)(40,"nz-code-box",21),r(41,"nz-demo-breadcrumb-basic",22),n(42,"div",23),p(),n(43,"p"),e(44,"The simplest use"),t(),d(),t()(),n(45,"nz-code-box",24),r(46,"nz-demo-breadcrumb-router",22),n(47,"div",23),p(),n(48,"p"),e(49,"Used together with "),n(50,"a",25),e(51,"RouterLink"),t(),e(52,"."),t(),d(),t()(),n(53,"nz-code-box",26),r(54,"nz-demo-breadcrumb-separator",22),n(55,"div",23),p(),n(56,"p"),e(57,"The separator can be customized by setting the separator property: "),n(58,"code"),e(59,"nzSeparator"),t()(),d(),t()(),n(60,"nz-code-box",27),r(61,"nz-demo-breadcrumb-separator-independent",22),n(62,"div",23),p(),n(63,"p"),e(64,"The separator can be customized by using the component "),n(65,"code"),e(66,"nz-breadcrumb-separator"),t(),e(67,"."),t(),d(),t()()(),n(68,"div",20)(69,"nz-code-box",28),r(70,"nz-demo-breadcrumb-with-icon",22),n(71,"div",23),p(),n(72,"p"),e(73,"The icon should be placed in front of the text."),t(),d(),t()(),n(74,"nz-code-box",29),r(75,"nz-demo-breadcrumb-auto",22),n(76,"div",23),p(),n(77,"p"),e(78,"Auto generate breadcrumbs using "),n(79,"code"),e(80,"router.data"),t(),e(81,"."),t(),d(),t()(),n(82,"nz-code-box",30),r(83,"nz-demo-breadcrumb-dropdown",22),n(84,"div",23),p(),n(85,"p"),e(86,"Breadcrumbs support drop down menu."),t(),d(),t()()()(),n(87,"section",31),p(),n(88,"h2",32)(89,"span"),e(90,"API"),t(),n(91,"a",33),e(92,"#"),t()(),n(93,"h3",34)(94,"span"),e(95,"nz-breadcrumb"),t(),n(96,"label",35),e(97,"component"),t(),n(98,"a",36),e(99,"#"),t()(),n(100,"table")(101,"thead")(102,"tr")(103,"th"),e(104,"Property"),t(),n(105,"th"),e(106,"Description"),t(),n(107,"th"),e(108,"Type"),t(),n(109,"th"),e(110,"Default"),t()()(),n(111,"tbody")(112,"tr")(113,"td")(114,"code"),e(115,"[nzSeparator]"),t()(),n(116,"td"),e(117,"Custom separator"),t(),n(118,"td")(119,"code"),e(120,"string | TemplateRef<void> | null"),t()(),n(121,"td")(122,"code"),e(123,"'/'"),t()()(),n(124,"tr")(125,"td")(126,"code"),e(127,"[nzAutoGenerate]"),t()(),n(128,"td"),e(129,"Auto generate breadcrumb"),t(),n(130,"td")(131,"code"),e(132,"boolean"),t()(),n(133,"td")(134,"code"),e(135,"false"),t()()(),n(136,"tr")(137,"td")(138,"code"),e(139,"[nzRouteLabel]"),t()(),n(140,"td"),e(141,"Name of property that determines displayed text in routing config. It should be used when "),n(142,"code"),e(143,"nzAutoGenerate"),t(),e(144," is "),n(145,"code"),e(146,"true"),t()(),n(147,"td")(148,"code"),e(149,"string"),t()(),n(150,"td")(151,"code"),e(152,"'breadcrumb'"),t()()(),n(153,"tr")(154,"td")(155,"code"),e(156,"[nzRouteLabelFn]"),t()(),n(157,"td"),e(158,"Format breadcrumb item label text, normally used in international app to translate i18n key. It should be used when "),n(159,"code"),e(160,"nzAutoGenerate"),t(),e(161," is "),n(162,"code"),e(163,"true"),t()(),n(164,"td")(165,"code"),e(166,"(label:string) => string"),t()(),n(167,"td")(168,"code"),e(169,"label => label"),t()()(),n(170,"tr")(171,"td")(172,"code"),e(173,"[nzRouteFn]"),t()(),n(174,"td"),e(175,"Format breadcrumb item route, normally used in international app to bind current params or query strings to avoid losing them while navigate using breadcrumb. It should be used when "),n(176,"code"),e(177,"nzAutoGenerate"),t(),e(178," is "),n(179,"code"),e(180,"true"),t()(),n(181,"td")(182,"code"),e(183,"(route:string) => route"),t()(),n(184,"td")(185,"code"),e(186,"route => route"),t()()()()(),n(187,"p"),e(188,"Using "),n(189,"code"),e(190,"[nzAutoGenerate]"),t(),e(191," by configuring "),n(192,"code"),e(193,"data"),t(),e(194," like this:"),t(),n(195,"pre")(196,"code",37)(197,"span",38),e(198,"{"),t(),e(199,`
path`),n(200,"span",39),e(201,":"),t(),e(202," "),n(203,"span",40),e(204,"'/path'"),t(),n(205,"span",38),e(206,","),t(),e(207,`
component`),n(208,"span",39),e(209,":"),t(),e(210," SomeComponent"),n(211,"span",38),e(212,","),t(),e(213,`
data`),n(214,"span",39),e(215,":"),t(),e(216," "),n(217,"span",38),e(218,"{"),t(),e(219,`
breadcrumb`),n(220,"span",39),e(221,":"),t(),e(222," "),n(223,"span",40),e(224,"'Display Name'"),t(),e(225,`
`),n(226,"span",38),e(227,"}"),t(),e(228,`
`),n(229,"span",38),e(230,"}"),t(),e(231,`
`),t()(),n(232,"p"),e(233,"For lazy loading modules, you should write "),n(234,"code"),e(235,"data"),t(),e(236," in parent module like this:"),t(),n(237,"pre")(238,"code",37)(239,"span",38),e(240,"{"),t(),e(241,`
path`),n(242,"span",39),e(243,":"),t(),e(244," "),n(245,"span",40),e(246,"'first'"),t(),n(247,"span",38),e(248,","),t(),e(249,`
`),n(250,"span",41),e(251,"loadChildren"),t(),n(252,"span",39),e(253,":"),t(),e(254," "),n(255,"span",38),e(256,"("),t(),n(257,"span",38),e(258,")"),t(),e(259," "),n(260,"span",39),e(261,"=>"),t(),e(262," "),n(263,"span",42),e(264,"import"),t(),n(265,"span",38),e(266,"("),t(),n(267,"span",40),e(268,"'./first/first.module'"),t(),n(269,"span",38),e(270,")"),t(),n(271,"span",38),e(272,"."),t(),n(273,"span",43),e(274,"then"),t(),n(275,"span",38),e(276,"("),t(),e(277,"m "),n(278,"span",39),e(279,"=>"),t(),e(280," m"),n(281,"span",38),e(282,"."),t(),e(283,"FirstModule"),n(284,"span",38),e(285,")"),t(),n(286,"span",38),e(287,","),t(),e(288,`
data`),n(289,"span",39),e(290,":"),t(),e(291," "),n(292,"span",38),e(293,"{"),t(),e(294,`
breadcrumb`),n(295,"span",39),e(296,":"),t(),e(297," "),n(298,"span",40),e(299,"'First'"),t(),e(300,`
`),n(301,"span",38),e(302,"}"),t(),n(303,"span",38),e(304,","),t(),e(305,`
`),n(306,"span",38),e(307,"}"),t(),e(308,`
`),t()(),n(309,"p"),e(310,"Use "),n(311,"code"),e(312,"nzRouteLabel"),t(),e(313," to custom "),n(314,"code"),e(315,"data"),t(),e(316," breadcrumb label:"),t(),n(317,"pre")(318,"code",44)(319,"span",45)(320,"span",45)(321,"span",38),e(322,"<"),t(),e(323,"nz-breadcrumb"),t(),e(324," "),n(325,"span",46),e(326,"[nzAutoGenerate]"),t(),n(327,"span",47)(328,"span",48),e(329,"="),t(),n(330,"span",38),e(331,'"'),t(),e(332,"true"),n(333,"span",38),e(334,'"'),t()(),e(335," "),n(336,"span",46),e(337,"[nzRouteLabel]"),t(),n(338,"span",47)(339,"span",48),e(340,"="),t(),n(341,"span",38),e(342,'"'),t(),n(343,"span",38),e(344,"'"),t(),e(345,"customBreadcrumb'"),n(346,"span",38),e(347,'"'),t()(),n(348,"span",38),e(349,">"),t()(),n(350,"span",45)(351,"span",45)(352,"span",38),e(353,"</"),t(),e(354,"nz-breadcrumb"),t(),n(355,"span",38),e(356,">"),t()(),e(357,`
`),t()(),n(358,"pre")(359,"code",37)(360,"span",38),e(361,"{"),t(),e(362,`
path`),n(363,"span",39),e(364,":"),t(),e(365," "),n(366,"span",40),e(367,"'path'"),t(),n(368,"span",38),e(369,","),t(),e(370,`
component`),n(371,"span",39),e(372,":"),t(),e(373," SomeComponent"),n(374,"span",38),e(375,","),t(),e(376,`
data`),n(377,"span",39),e(378,":"),t(),e(379," "),n(380,"span",38),e(381,"{"),t(),e(382,`
customBreadcrumb`),n(383,"span",39),e(384,":"),t(),e(385," "),n(386,"span",40),e(387,"'Display Name'"),t(),e(388,`
`),n(389,"span",38),e(390,"}"),t(),e(391,`
`),n(392,"span",38),e(393,"}"),t(),e(394,`
`),t()(),n(395,"p"),e(396,"Use "),n(397,"code"),e(398,"nzRouteLabelFn"),t(),e(399," to format breadcrumb label in international application:"),t(),n(400,"pre")(401,"code",44)(402,"span",45)(403,"span",45)(404,"span",38),e(405,"<"),t(),e(406,"nz-breadcrumb"),t(),e(407," "),n(408,"span",46),e(409,"[nzAutoGenerate]"),t(),n(410,"span",47)(411,"span",48),e(412,"="),t(),n(413,"span",38),e(414,'"'),t(),e(415,"true"),n(416,"span",38),e(417,'"'),t()(),e(418," "),n(419,"span",46),e(420,"[nzRouteLabel]"),t(),n(421,"span",47)(422,"span",48),e(423,"="),t(),n(424,"span",38),e(425,'"'),t(),n(426,"span",38),e(427,"'"),t(),e(428,"breadcrumbI18nKey'"),n(429,"span",38),e(430,'"'),t()(),e(431," "),n(432,"span",46),e(433,"[nzRouteLabelFn]"),t(),n(434,"span",47)(435,"span",48),e(436,"="),t(),n(437,"span",38),e(438,'"'),t(),e(439,"translateFn"),n(440,"span",38),e(441,'"'),t()(),n(442,"span",38),e(443,">"),t()(),n(444,"span",45)(445,"span",45)(446,"span",38),e(447,"</"),t(),e(448,"nz-breadcrumb"),t(),n(449,"span",38),e(450,">"),t()(),e(451,`
`),t()(),n(452,"pre")(453,"code",37)(454,"span",49),e(455,"// In Route"),t(),e(456,`
`),n(457,"span",38),e(458,"{"),t(),e(459,`
path`),n(460,"span",39),e(461,":"),t(),e(462," "),n(463,"span",40),e(464,"'path'"),t(),n(465,"span",38),e(466,","),t(),e(467,`
component`),n(468,"span",39),e(469,":"),t(),e(470," SomeComponent"),n(471,"span",38),e(472,","),t(),e(473,`
data`),n(474,"span",39),e(475,":"),t(),e(476," "),n(477,"span",38),e(478,"{"),t(),e(479,`
breadcrumbI18nKey`),n(480,"span",39),e(481,":"),t(),e(482," "),n(483,"span",40),e(484,"'i18n.aaa.bbbb'"),t(),e(485,`
`),n(486,"span",38),e(487,"}"),t(),e(488,`
`),n(489,"span",38),e(490,"}"),t(),e(491,`
`),n(492,"span",49),e(493,"// In component"),t(),e(494,`
`),n(495,"span",41),e(496,"translateFn"),t(),e(497," "),n(498,"span",39),e(499,"="),t(),e(500," "),n(501,"span",38),e(502,"("),t(),e(503,"key"),n(504,"span",39),e(505,":"),t(),n(506,"span",50),e(507,"string"),t(),n(508,"span",38),e(509,")"),t(),e(510," "),n(511,"span",39),e(512,"=>"),t(),e(513," "),n(514,"span",42),e(515,"this"),t(),n(516,"span",38),e(517,"."),t(),e(518,"yourI18nService"),n(519,"span",38),e(520,"."),t(),n(521,"span",43),e(522,"translate"),t(),n(523,"span",38),e(524,"("),t(),e(525,"key"),n(526,"span",38),e(527,")"),t(),n(528,"span",38),e(529,";"),t(),e(530,`
`),t()(),n(531,"p"),e(532,"Use "),n(533,"code"),e(534,"nzRouteFn"),t(),e(535," to format or bind params and query strings to the route it self in international application:"),t(),n(536,"pre")(537,"code",44)(538,"span",45)(539,"span",45)(540,"span",38),e(541,"<"),t(),e(542,"nz-breadcrumb"),t(),e(543," "),n(544,"span",46),e(545,"[nzAutoGenerate]"),t(),n(546,"span",47)(547,"span",48),e(548,"="),t(),n(549,"span",38),e(550,'"'),t(),e(551,"true"),n(552,"span",38),e(553,'"'),t()(),e(554," "),n(555,"span",46),e(556,"[nzRouteLabel]"),t(),n(557,"span",47)(558,"span",48),e(559,"="),t(),n(560,"span",38),e(561,'"'),t(),n(562,"span",38),e(563,"'"),t(),e(564,"breadcrumbI18nKey'"),n(565,"span",38),e(566,'"'),t()(),e(567," "),n(568,"span",46),e(569,"[nzRouteLabelFn]"),t(),n(570,"span",47)(571,"span",48),e(572,"="),t(),n(573,"span",38),e(574,'"'),t(),e(575,"translateFn"),n(576,"span",38),e(577,'"'),t()(),e(578," "),n(579,"span",46),e(580,"[nzRouteFn]"),t(),n(581,"span",47)(582,"span",48),e(583,"="),t(),n(584,"span",38),e(585,'"'),t(),e(586,"customRoute"),n(587,"span",38),e(588,'"'),t()(),n(589,"span",38),e(590,">"),t()(),n(591,"span",45)(592,"span",45)(593,"span",38),e(594,"</"),t(),e(595,"nz-breadcrumb"),t(),n(596,"span",38),e(597,">"),t()(),e(598,`
`),t()(),n(599,"pre")(600,"code",37)(601,"span",49),e(602,"// In component"),t(),e(603,`
`),n(604,"span",43),e(605,"bindCurrentParams"),t(),n(606,"span",38),e(607,"("),t(),e(608,"params"),n(609,"span",38),e(610,","),t(),e(611," route"),n(612,"span",38),e(613,")"),t(),e(614," "),n(615,"span",38),e(616,"{"),t(),e(617,`
`),n(618,"span",42),e(619,"let"),t(),e(620," newRoute "),n(621,"span",39),e(622,"="),t(),e(623," route"),n(624,"span",38),e(625,";"),t(),e(626,`
`),n(627,"span",42),e(628,"for"),t(),e(629," "),n(630,"span",38),e(631,"("),t(),n(632,"span",42),e(633,"const"),t(),e(634," key "),n(635,"span",42),e(636,"in"),t(),e(637," params"),n(638,"span",38),e(639,")"),t(),e(640," "),n(641,"span",38),e(642,"{"),t(),e(643,`
`),n(644,"span",42),e(645,"if"),t(),e(646," "),n(647,"span",38),e(648,"("),t(),e(649,"params"),n(650,"span",38),e(651,"."),t(),n(652,"span",43),e(653,"hasOwnProperty"),t(),n(654,"span",38),e(655,"("),t(),e(656,"key"),n(657,"span",38),e(658,")"),t(),n(659,"span",38),e(660,")"),t(),e(661," "),n(662,"span",38),e(663,"{"),t(),e(664,`
newRoute `),n(665,"span",39),e(666,"+="),t(),e(667," "),n(668,"span",51)(669,"span",52),e(670,"`"),t(),n(671,"span",40),e(672,";"),t(),n(673,"span",53)(674,"span",54),e(675,"${"),t(),e(676,"key"),n(677,"span",54),e(678,"}"),t()(),n(679,"span",40),e(680,"="),t(),n(681,"span",53)(682,"span",54),e(683,"${"),t(),e(684,"params"),n(685,"span",38),e(686,"["),t(),e(687,"key"),n(688,"span",38),e(689,"]"),t(),n(690,"span",54),e(691,"}"),t()(),n(692,"span",52),e(693,"`"),t()(),n(694,"span",38),e(695,";"),t(),e(696,`
`),n(697,"span",38),e(698,"}"),t(),e(699,`
`),n(700,"span",38),e(701,"}"),t(),e(702,`
`),n(703,"span",42),e(704,"return"),t(),e(705," newRoute"),n(706,"span",38),e(707,";"),t(),e(708,`
`),n(709,"span",38),e(710,"}"),t(),e(711,`
`),n(712,"span",42),e(713,"const"),t(),e(714," params "),n(715,"span",39),e(716,"="),t(),e(717," "),n(718,"span",42),e(719,"this"),t(),n(720,"span",38),e(721,"."),t(),e(722,"activatedRoute"),n(723,"span",38),e(724,"."),t(),e(725,"snapshot"),n(726,"span",38),e(727,"."),t(),e(728,"params"),n(729,"span",38),e(730,";"),t(),e(731,`
`),n(732,"span",41),e(733,"customRoute"),t(),e(734," "),n(735,"span",39),e(736,"="),t(),e(737," "),n(738,"span",38),e(739,"("),t(),e(740,"route"),n(741,"span",39),e(742,":"),t(),n(743,"span",50),e(744,"string"),t(),n(745,"span",38),e(746,")"),t(),e(747," "),n(748,"span",39),e(749,"=>"),t(),e(750," "),n(751,"span",42),e(752,"this"),t(),n(753,"span",38),e(754,"."),t(),n(755,"span",43),e(756,"bindCurrentParams"),t(),n(757,"span",38),e(758,"("),t(),e(759,"params"),n(760,"span",38),e(761,","),t(),e(762,"route"),n(763,"span",38),e(764,")"),t(),n(765,"span",38),e(766,";"),t(),e(767,`
`),t()(),d(),t()()),i&2&&(m(),a("nzOffsetTop",16),m(),a("nzAffix",!1),m(36),a("nzGutter",16),m(),a("nzXl",12)("nzSpan",24),m(),a("nzId","components-breadcrumb-demo-basic")("nzLink","components-breadcrumb-demo-basic")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/breadcrumb/demo/basic.md"),m(5),a("nzId","components-breadcrumb-demo-router")("nzLink","components-breadcrumb-demo-router")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/breadcrumb/demo/router.md"),m(8),a("nzId","components-breadcrumb-demo-separator")("nzLink","components-breadcrumb-demo-separator")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/breadcrumb/demo/separator.md"),m(7),a("nzId","components-breadcrumb-demo-separator-independent")("nzLink","components-breadcrumb-demo-separator-independent")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/breadcrumb/demo/separator-independent.md"),m(8),a("nzXl",12)("nzSpan",24),m(),a("nzId","components-breadcrumb-demo-with-icon")("nzLink","components-breadcrumb-demo-with-icon")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/breadcrumb/demo/with-icon.md"),m(5),a("nzId","components-breadcrumb-demo-auto")("nzLink","components-breadcrumb-demo-auto")("nzIframe",!0)("nzIframeHeight",460)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/breadcrumb/demo/auto.md"),m(8),a("nzId","components-breadcrumb-demo-dropdown")("nzLink","components-breadcrumb-demo-dropdown")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/breadcrumb/demo/dropdown.md"))},dependencies:[Z,z,P,O,M,_,G,T,L,S,g,N,F,D,I,k,y],encapsulation:2})};var pe=[{path:"en",component:Q},{path:"zh",component:W}],Ye=pe;export{Ye as default};