1import{a as Ce,b as ge}from"./chunk-XMKAUYCI.js";import{a as C,b as N,c as Y,d as D,e as S,f as fe}from"./chunk-LRJA5DLQ.js";import{c as w,d as _,e as f,g as U}from"./chunk-F2XTFB6A.js";import{a as M,g as oe,h as me,m as re,n as de}from"./chunk-BS6FJV6Q.js";import"./chunk-SCHSU5EN.js";import"./chunk-UZ6YQCVD.js";import{Kd as $,Ld as J,Nd as K,Od as ee,Pd as ne,Qd as te,Td as ie,kd as De,lb as E,nb as h,od as Se,sc as j}from"./chunk-5HXFPEER.js";import{$b as m,Ac as e,Bc as ce,Fc as xe,Gc as Ee,Hc as we,Vb as ue,Wb as se,Xb as ze,Yb as o,Zb as t,_b as n,dc as F,jc as c,lb as l,pc as q,qb as pe,qc as W,ra as u,rc as X,sa as s,ta as g,ua as b,vc as x,xb as z}from"./chunk-ZUWCBCQQ.js";import"./chunk-JNGVGNCT.js";var A=class a{static \u0275fac=function(i){return new(i||a)};static \u0275cmp=z({type:a,selectors:[["nz-demo-dropdown-basic"]],decls:14,vars:1,consts:[["menu","nzDropdownMenu"],["nz-dropdown","",3,"nzDropdownMenu"],["nzType","down"],["nz-menu","","nzSelectable",""],["nz-menu-item",""],["nz-menu-item","","nzDanger",""]],template:function(i,p){if(i&1&&(t(0,"a",1),e(1," Hover me "),m(2,"nz-icon",2),n(),t(3,"nz-dropdown-menu",null,0)(5,"ul",3)(6,"li",4),e(7,"1st menu item"),n(),t(8,"li",4),e(9,"2nd menu item"),n(),t(10,"li",4),e(11,"3rd menu item"),n(),t(12,"li",5),e(13,"4th danger item"),n()()()),i&2){let d=x(4);o("nzDropdownMenu",d)}},dependencies:[S,f,w,C,N,D,h,E],encapsulation:2})};var O=class a{constructor(r){this.nzContextMenuService=r}contextMenu(r,i){this.nzContextMenuService.create(r,i)}static \u0275fac=function(i){return new(i||a)(pe(fe))};static \u0275cmp=z({type:a,selectors:[["nz-demo-dropdown-context-menu"]],decls:23,vars:0,consts:[["menu","nzDropdownMenu"],[1,"context-area",3,"contextmenu"],["nz-menu",""],["nz-menu-item",""],["nz-menu-item","","nzDisabled",""],["nz-submenu","","nzTitle","sub menu"],["nz-submenu","","nzDisabled","","nzTitle","disabled sub menu"]],template:function(i,p){if(i&1){let d=F();t(0,"div",1),c("contextmenu",function(H){g(d);let be=x(3);return b(p.contextMenu(H,be))}),e(1,"Right Click on here"),n(),t(2,"nz-dropdown-menu",null,0)(4,"ul",2)(5,"li",3),e(6,"1st menu item"),n(),t(7,"li",3),e(8,"2nd menu item"),n(),t(9,"li",4),e(10,"disabled menu item"),n(),t(11,"li",5)(12,"ul")(13,"li",3),e(14,"3rd menu item"),n(),t(15,"li",3),e(16,"4th menu item"),n()()(),t(17,"li",6)(18,"ul")(19,"li",3),e(20,"3rd menu item"),n(),t(21,"li",3),e(22,"4th menu item"),n()()()()()}},dependencies:[S,f,w,_,D],styles:[".context-area[_ngcontent-%COMP%]{background:#f7f7f7;color:#777;text-align:center;height:200px;line-height:200px}"]})};var R=class a{log(){console.log("click dropdown button")}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=z({type:a,selectors:[["nz-demo-dropdown-dropdown-button"]],decls:28,vars:4,consts:[["menu","nzDropdownMenu"],["nz-flex","","nzGap","small","nzWrap","wrap"],["nz-button","",3,"click"],["nz-button","","nz-dropdown","","nzPlacement","bottomRight",3,"nzDropdownMenu"],["nzType","ellipsis"],["nzType","user"],["nz-button","","disabled",""],["nz-button","","disabled","","nz-dropdown","","nzPlacement","bottomRight",3,"nzDropdownMenu"],["nz-button","","nz-dropdown","",3,"nzDropdownMenu"],["nzType","down"],["nz-menu",""],["nz-menu-item",""]],template:function(i,p){if(i&1){let d=F();t(0,"div",1)(1,"nz-space-compact")(2,"button",2),c("click",function(){return g(d),b(p.log())}),e(3,"DropDown"),n(),t(4,"button",3),m(5,"nz-icon",4),n()(),t(6,"nz-space-compact")(7,"button",2),c("click",function(){return g(d),b(p.log())}),e(8,"DropDown"),n(),t(9,"button",3),m(10,"nz-icon",5),n()(),t(11,"nz-space-compact")(12,"button",6),e(13,"DropDown"),n(),t(14,"button",7),m(15,"nz-icon",4),n()(),t(16,"button",8),e(17," Button "),m(18,"nz-icon",9),n()(),t(19,"nz-dropdown-menu",null,0)(21,"ul",10)(22,"li",11),e(23,"menu 1st menu item"),n(),t(24,"li",11),e(25,"menu 2nd menu item"),n(),t(26,"li",11),e(27,"menu 3rd menu item"),n()()()}if(i&2){let d=x(20);l(4),o("nzDropdownMenu",d),l(5),o("nzDropdownMenu",d),l(5),o("nzDropdownMenu",d),l(2),o("nzDropdownMenu",d)}},dependencies:[ee,K,$,J,S,f,w,C,D,Y,ge,Ce,h,E,Se,De],encapsulation:2})};var L=class a{log(r){console.log(r)}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=z({type:a,selectors:[["nz-demo-dropdown-event"]],decls:12,vars:1,consts:[["menu","nzDropdownMenu"],["nz-dropdown","",3,"nzDropdownMenu"],["nzType","down"],["nz-menu",""],["nz-menu-item","",3,"click"]],template:function(i,p){if(i&1){let d=F();t(0,"a",1),e(1," Hover me, Click menu item "),m(2,"nz-icon",2),n(),t(3,"nz-dropdown-menu",null,0)(5,"ul",3)(6,"li",4),c("click",function(){return g(d),b(p.log("1st menu item"))}),e(7,"1st menu item"),n(),t(8,"li",4),c("click",function(){return g(d),b(p.log("2nd menu item"))}),e(9,"2nd menu item"),n(),t(10,"li",4),c("click",function(){return g(d),b(p.log("3rd menu item"))}),e(11,"3rd menu item"),n()()()}if(i&2){let d=x(4);o("nzDropdownMenu",d)}},dependencies:[S,f,w,C,N,D,h,E],encapsulation:2})};var V=class a{static \u0275fac=function(i){return new(i||a)};static \u0275cmp=z({type:a,selectors:[["nz-demo-dropdown-item"]],decls:13,vars:1,consts:[["menu","nzDropdownMenu"],["nz-dropdown","",3,"nzDropdownMenu"],["nzType","down"],["nz-menu",""],["nz-menu-item",""],["nz-menu-divider",""],["nz-menu-item","","nzDisabled",""]],template:function(i,p){if(i&1&&(t(0,"a",1),e(1," Hover me "),m(2,"nz-icon",2),n(),t(3,"nz-dropdown-menu",null,0)(5,"ul",3)(6,"li",4),e(7,"1st menu item"),n(),t(8,"li",4),e(9,"2nd menu item"),n(),m(10,"li",5),t(11,"li",6),e(12,"3rd menu item\uFF08disabled\uFF09"),n()()()),i&2){let d=x(4);o("nzDropdownMenu",d)}},dependencies:[S,f,w,U,C,N,D,h,E],encapsulation:2})};var G=class a{visible=!1;static \u0275fac=function(i){return new(i||a)};static \u0275cmp=z({type:a,selectors:[["nz-demo-dropdown-overlay-visible"]],decls:12,vars:3,consts:[["menu","nzDropdownMenu"],["nz-dropdown","",3,"nz
1VisibleChange","nzDropdownMenu","nzClickHide","nzVisible"],["nzType","down"],["nz-menu",""],["nz-menu-item",""],["nz-menu-item","",3,"click"]],template:function(i,p){if(i&1){let d=F();t(0,"a",1),we("nzVisibleChange",function(H){return g(d),Ee(p.visible,H)||(p.visible=H),b(H)}),e(1," Hover me "),m(2,"nz-icon",2),n(),t(3,"nz-dropdown-menu",null,0)(5,"ul",3)(6,"li",4),e(7,"Clicking me will not close the menu."),n(),t(8,"li",4),e(9,"Clicking me will not close the menu also."),n(),t(10,"li",5),c("click",function(){return g(d),b(p.visible=!1)}),e(11,"Clicking me will close the menu"),n()()()}if(i&2){let d=x(4);o("nzDropdownMenu",d)("nzClickHide",!1),xe("nzVisible",p.visible)}},dependencies:[S,f,w,C,N,D,h,E],encapsulation:2})};function Fe(a,r){if(a&1&&(t(0,"button",1),e(1),n(),t(2,"nz-dropdown-menu",null,0)(4,"ul",2)(5,"li",3),e(6,"1st menu item length"),n(),t(7,"li",3),e(8,"2nd menu item length"),n(),t(9,"li",3),e(10,"3rd menu item length"),n()()()),a&2){let i=r.$implicit,p=x(3);o("nzDropdownMenu",p)("nzPlacement",i),l(),ce(i)}}var P=class a{listOfPosition=["bottomLeft","bottomCenter","bottomRight","topLeft","topCenter","topRight"];static \u0275fac=function(i){return new(i||a)};static \u0275cmp=z({type:a,selectors:[["nz-demo-dropdown-placement"]],decls:3,vars:0,consts:[["menu","nzDropdownMenu"],["nz-button","","nz-dropdown","",3,"nzDropdownMenu","nzPlacement"],["nz-menu",""],["nz-menu-item",""]],template:function(i,p){i&1&&(t(0,"div"),se(1,Fe,11,3,null,null,ue),n()),i&2&&(l(),ze(p.listOfPosition))},dependencies:[S,f,w,C,D,Y,ee,K,$,J],styles:["[nz-button][_ngcontent-%COMP%]{margin-right:8px;margin-bottom:8px}"]})};var Z=class a{change(r){console.log(r)}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=z({type:a,selectors:[["nz-demo-dropdown-sub-menu"]],decls:22,vars:1,consts:[["menu","nzDropdownMenu"],["nz-dropdown","",3,"nzVisibleChange","nzDropdownMenu"],["nzType","down"],["nz-menu",""],["nz-menu-item",""],["nz-submenu","","nzTitle","sub menu"],["nz-submenu","","nzDisabled","","nzTitle","disabled sub menu"]],template:function(i,p){if(i&1){let d=F();t(0,"a",1),c("nzVisibleChange",function(H){return g(d),b(p.change(H))}),e(1," Cascading menu "),m(2,"nz-icon",2),n(),t(3,"nz-dropdown-menu",null,0)(5,"ul",3)(6,"li",4),e(7,"1st menu item"),n(),t(8,"li",4),e(9,"2nd menu item"),n(),t(10,"li",5)(11,"ul")(12,"li",4),e(13,"3rd menu item"),n(),t(14,"li",4),e(15,"4th menu item"),n()()(),t(16,"li",6)(17,"ul")(18,"li",4),e(19,"3rd menu item"),n(),t(20,"li",4),e(21,"4th menu item"),n()()()()()}if(i&2){let d=x(4);o("nzDropdownMenu",d)}},dependencies:[S,f,w,_,C,N,D,h,E],encapsulation:2})};var Q=class a{static \u0275fac=function(i){return new(i||a)};static \u0275cmp=z({type:a,selectors:[["nz-demo-dropdown-trigger"]],decls:25,vars:1,consts:[["menu","nzDropdownMenu"],["nz-dropdown","","nzTrigger","click",3,"nzDropdownMenu"],["nzType","down"],["nz-menu",""],["nz-menu-item",""],["nz-menu-divider",""],["nz-menu-item","","nzDisabled",""],["nz-submenu","","nzTitle","sub menu"],["nz-submenu","","nzDisabled","","nzTitle","disabled sub menu"]],template:function(i,p){if(i&1&&(t(0,"a",1),e(1," Click me "),m(2,"nz-icon",2),n(),t(3,"nz-dropdown-menu",null,0)(5,"ul",3)(6,"li",4),e(7,"1st menu item"),n(),t(8,"li",4),e(9,"2nd menu item"),n(),m(10,"li",5),t(11,"li",6),e(12,"disabled menu item"),n(),t(13,"li",7)(14,"ul")(15,"li",4),e(16,"3rd menu item"),n(),t(17,"li",4),e(18,"4th menu item"),n()()(),t(19,"li",8)(20,"ul")(21,"li",4),e(22,"3rd menu item"),n(),t(23,"li",4),e(24,"4th menu item"),n()()()()()),i&2){let d=x(4);o("nzDropdownMenu",d)}},dependencies:[S,f,w,_,U,C,N,D,h,E],encapsulation:2})};var le=class a{expanded=!1;codeBoxes;goLink(r){window&&(window.location.hash=r)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(r=>r.expandCode(this.expanded))}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=z({type:a,selectors:[["nz-demo-dropdown"]],viewQuery:function(i,p){if(i&1&&q(M,5),i&2){let d;W(d=X())&&(p.codeBoxes=d)}},decls:448,vars:52,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-dropdown-demo-basic","nzTitle","\u57FA\u672C"],["nzHref","#components-dropdown-demo-placement","nzTitle","\u5F39\u51FA\u4F4D\u7F6E"],["nzHref","#components-dropdown-demo-item","nzTitle","\u5176\u4ED6\u5143\u7D20"],["nzHref","#components-dropdown-demo-trigger","nzTitle","\u89E6\u53D1\u65B9\u5F0F"],["nzHref","#components-dropdown-demo-event","nzTitle","\u89E6\u53D1\u4E8B\u4EF6"],["nzHref","#components-dropdown-demo-dropdown-button","nzTitle","\u5E26\u4E0B\u62C9\u6846\u7684\u6309\u94AE"],["nzHref","#components-dropdown-demo-sub-menu","nzTitle","\u591A\u7EA7\u83DC\u5355"],["nzHref","#components-dropdown-demo-overlay-visible","nzTitle","\u83DC\u5355\u9690\u85CF\u65B9\u5F0F"],["nzHref","#components-dropdown-demo-context-menu","nzTitle","\u53F3\u952E\u83DC\u5355"],["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/dropdown/doc/index.zh-CN.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nzType","edit"],["name","dropdown","description","\u5411\u4E0B\u5F39\u51FA\u7684\u5217\u8868\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-dropdown-basic","nzGenerateCommand","ng g ng-zorro-antd:dropdown-basic <name>","nzComponentName","NzDemoDropdownBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","\u5176\u4ED6\u5143\u7D20","nzSelector","nz-demo-dropdown-item","nzGenerateCommand","ng g ng-zorro-antd:dropdown-item <name>","nzComponentName","NzDemoDropdownItemComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u89E6\u53D1\u4E8B\u4EF6","nzSelector","nz-demo-dropdown-event","nzGenerateCommand","ng g ng-zorro-antd:dropdown-event <name>","nzComponentName","NzDemoDropdownEventComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u591A\u7EA7\u83DC\u5355","nzSelector","nz-demo-dropdown-sub-menu","nzGenerateCommand","ng g ng-zorro-antd:dropdown-sub-menu <name>","nzComponentName","NzDemoDropdownSubMenuComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u53F3\u952E\u83DC\u5355","nzSelector","nz-demo-dropdown-context-menu","nzGenerateCommand","ng g ng-zorro-antd:dropdown-context-menu <name>","nzComponentName","NzDemoDropdownContextMenuComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u5F39\u51FA\u4F4D\u7F6E","nzSelector","nz-demo-dropdown-placement","nzGenerateCommand","ng g ng-zorro-antd:dropdown-placement <name>","nzComponentName","NzDemoDropdownPlacementComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u89E6\u53D1\u65B9\u5F0F","nzSelector","nz-demo-dropdown-trigger","nzGenerateCommand","ng g ng-zorro-antd:dropdown-trigger <name>","nzComponentName","NzDemoDropdownTriggerComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u5E26\u4E0B\u62C9\u6846\u7684\u6309\u94AE","nzSelector","nz-demo-dropdown-dropdown-button","nzGenerateCommand","ng g ng-zorro-antd:dropdown-dropdown-button <name>","nzComponentName","NzDemoDropdownDropdownButtonComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u83DC\u5355\u9690\u85CF\u65B9\u5F0F","nzSelector","nz-demo-dropdown-overlay-visible","nzGenerateCommand","ng g ng-zorro-antd:dropdown-overlay-visible <name>","nzComponentName","NzDemoDropdownOverlayVisibleComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-dropdown"],[1,"api-type-label","directive"],["onclick","window.location.hash = 'nz-dropdown'",1,"anchor"],["href","/components/menu/zh"],["
1id","nz-dropdown-menu"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-dropdown-menu'",1,"anchor"],[1,"language-html"],[1,"token","tag"],[1,"token","punctuation"],[1,"token","attr-name"],[1,"token","attr-value"],[1,"token","punctuation","attr-equals"],["id","nzcontextmenuservice"],[1,"api-type-label","service"],["onclick","window.location.hash = 'nzcontextmenuservice'",1,"anchor"]],template:function(i,p){i&1&&(t(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),c("nzClick",function(v){return p.goLink(v)}),m(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)(11,"nz-link",10)(12,"nz-link",11),n()(),t(13,"section",12)(14,"h1"),e(15,"Dropdown"),t(16,"span",13),e(17,"\u4E0B\u62C9\u83DC\u5355"),n(),m(18,"span",14),t(19,"a",15),m(20,"nz-icon",16),n()(),m(21,"component-meta",17),t(22,"section",12),s(),t(23,"h2",18)(24,"span"),e(25,"\u4F55\u65F6\u4F7F\u7528"),n(),t(26,"a",19),e(27,"#"),n()(),t(28,"p"),e(29,"\u5F53\u9875\u9762\u4E0A\u7684\u64CD\u4F5C\u547D\u4EE4\u8FC7\u591A\u65F6\uFF0C\u7528\u6B64\u7EC4\u4EF6\u53EF\u4EE5\u6536\u7EB3\u64CD\u4F5C\u5143\u7D20\u3002\u70B9\u51FB\u6216\u79FB\u5165\u89E6\u70B9\uFF0C\u4F1A\u51FA\u73B0\u4E00\u4E2A\u4E0B\u62C9\u83DC\u5355\u3002\u53EF\u5728\u5217\u8868\u4E2D\u8FDB\u884C\u9009\u62E9\uFF0C\u5E76\u6267\u884C\u76F8\u5E94\u7684\u547D\u4EE4\u3002"),n(),u(),n(),t(30,"h2")(31,"span"),e(32,"\u4EE3\u7801\u6F14\u793A"),n(),t(33,"nz-icon",20),c("click",function(){return p.expandAllCode()}),n()()(),t(34,"div",21)(35,"div",22)(36,"nz-code-box",23),m(37,"nz-demo-dropdown-basic",24),t(38,"div",25),s(),t(39,"p"),e(40,"\u6700\u7B80\u5355\u7684\u4E0B\u62C9\u83DC\u5355\u3002"),n(),u(),n()(),t(41,"nz-code-box",26),m(42,"nz-demo-dropdown-item",24),t(43,"div",25),s(),t(44,"p"),e(45,"\u5206\u5272\u7EBF\u548C\u4E0D\u53EF\u7528\u83DC\u5355\u9879\u3002"),n(),u(),n()(),t(46,"nz-code-box",27),m(47,"nz-demo-dropdown-event",24),t(48,"div",25),s(),t(49,"p"),e(50,"\u70B9\u51FB\u83DC\u5355\u9879\u540E\u4F1A\u89E6\u53D1\u4E8B\u4EF6\uFF0C\u7528\u6237\u53EF\u4EE5\u81EA\u7531\u6DFB\u52A0\u5404\u79CD\u4E8B\u4EF6\u8FDB\u884C\u4E0D\u540C\u7684\u64CD\u4F5C\u3002"),n(),u(),n()(),t(51,"nz-code-box",28),m(52,"nz-demo-dropdown-sub-menu",24),t(53,"div",25),s(),t(54,"p"),e(55,"\u4F20\u5165\u7684\u83DC\u5355\u91CC\u6709\u591A\u4E2A\u5C42\u7EA7\u3002"),n(),u(),n()(),t(56,"nz-code-box",29),m(57,"nz-demo-dropdown-context-menu",24),t(58,"div",25),s(),t(59,"p"),e(60,"\u5728\u533A\u57DF\u5185\u4EFB\u610F\u53F3\u51FB\u89E6\u53D1\u3002"),n(),u(),n()()(),t(61,"div",22)(62,"nz-code-box",30),m(63,"nz-demo-dropdown-placement",24),t(64,"div",25),s(),t(65,"p"),e(66,"\u652F\u6301 6 \u4E2A\u5F39\u51FA\u4F4D\u7F6E\u3002"),n(),u(),n()(),t(67,"nz-code-box",31),m(68,"nz-demo-dropdown-trigger",24),t(69,"div",25),s(),t(70,"p"),e(71,"\u9ED8\u8BA4\u662F\u79FB\u5165\u89E6\u53D1\u83DC\u5355\uFF0C\u53EF\u4EE5\u70B9\u51FB\u89E6\u53D1\u3002"),n(),u(),n()(),t(72,"nz-code-box",32),m(73,"nz-demo-dropdown-dropdown-button",24),t(74,"div",25),s(),t(75,"p"),e(76,"\u5DE6\u8FB9\u662F\u6309\u94AE\uFF0C\u53F3\u8FB9\u662F\u989D\u5916\u7684\u76F8\u5173\u529F\u80FD\u83DC\u5355\u3002"),n(),u(),n()(),t(77,"nz-code-box",33),m(78,"nz-demo-dropdown-overlay-visible",24),t(79,"div",25),s(),t(80,"p"),e(81,"\u9ED8\u8BA4\u662F\u70B9\u51FB\u5173\u95ED\u83DC\u5355\uFF0C\u53EF\u4EE5\u5173\u95ED\u6B64\u529F\u80FD\u3002"),n(),u(),n()()()(),t(82,"section",34),s(),t(83,"h2",35)(84,"span"),e(85,"API"),n(),t(86,"a",36),e(87,"#"),n()(),t(88,"h3",37)(89,"span"),e(90,"[nz-dropdown]"),n(),t(91,"label",38),e(92,"directive"),n(),t(93,"a",39),e(94,"#"),n()(),t(95,"table")(96,"thead")(97,"tr")(98,"th"),e(99,"\u53C2\u6570"),n(),t(100,"th"),e(101,"\u8BF4\u660E"),n(),t(102,"th"),e(103,"\u7C7B\u578B"),n(),t(104,"th"),e(105,"\u9ED8\u8BA4\u503C"),n()()(),t(106,"tbody")(107,"tr")(108,"td")(109,"code"),e(110,"[nzDropdownMenu]"),n()(),t(111,"td"),e(112,"Dropdown \u4E0B\u62C9\u83DC\u5355\u7EC4\u4EF6"),n(),t(113,"td")(114,"code"),e(115,"NzDropdownMenuComponent"),n()(),t(116,"td"),e(117,"-"),n()(),t(118,"tr")(119,"td")(120,"code"),e(121,"[nzDisabled]"),n()(),t(122,"td"),e(123,"\u83DC\u5355\u662F\u5426\u7981\u7528"),n(),t(124,"td")(125,"code"),e(126,"boolean"),n()(),t(127,"td"),e(128,"-"),n()(),t(129,"tr")(130,"td")(131,"code"),e(132,"[nzPlacement]"),n()(),t(133,"td"),e(134,"\u83DC\u5355\u5F39\u51FA\u4F4D\u7F6E"),n(),t(135,"td")(136,"code"),e(137,"'bottomLeft' | 'bottomCenter' | 'bottomRight' | 'topLeft' | 'topCenter' | 'topRight'"),n()(),t(138,"td")(139,"code"),e(140,"'bottomLeft'"),n()()(),t(141,"tr")(142,"td")(143,"code"),e(144,"[nzTrigger]"),n()(),t(145,"td"),e(146,"\u89E6\u53D1\u4E0B\u62C9\u7684\u884C\u4E3A"),n(),t(147,"td")(148,"code"),e(149,"'click' | 'hover'"),n()(),t(150,"td")(151,"code"),e(152,"'hover'"),n()()(),t(153,"tr")(154,"td")(155,"code"),e(156,"[nzClickHide]"),n()(),t(157,"td"),e(158,"\u70B9\u51FB\u540E\u662F\u5426\u9690\u85CF\u83DC\u5355"),n(),t(159,"td")(160,"code"),e(161,"boolean"),n()(),t(162,"td")(163,"code"),e(164,"true"),n()()(),t(165,"tr")(166,"td")(167,"code"),e(168,"[nzVisible]"),n()(),t(169,"td"),e(170,"\u83DC\u5355\u662F\u5426\u663E\u793A\uFF0C\u53EF\u53CC\u5411\u7ED1\u5B9A"),n(),t(171,"td")(172,"code"),e(173,"boolean"),n()(),t(174,"td"),e(175,"-"),n()(),t(176,"tr")(177,"td")(178,"code"),e(179,"[nzOverlayClassName]"),n()(),t(180,"td"),e(181,"\u4E0B\u62C9\u6839\u5143\u7D20\u7684\u7C7B\u540D\u79F0"),n(),t(182,"td")(183,"code"),e(184,"string"),n()(),t(185,"td"),e(186,"-"),n()(),t(187,"tr")(188,"td")(189,"code"),e(190,"[nzOverlayStyle]"),n()(),t(191,"td"),e(192,"\u4E0B\u62C9\u6839\u5143\u7D20\u7684\u6837\u5F0F"),n(),t(193,"td")(194,"code"),e(195,"object"),n()(),t(196,"td"),e(197,"-"),n()(),t(198,"tr")(199,"td")(200,"code"),e(201,"(nzVisibleChange)"),n()(),t(202,"td"),e(203,"\u83DC\u5355\u663E\u793A\u72B6\u6001\u6539\u53D8\u65F6\u8C03\u7528\uFF0C\u53C2\u6570\u4E3A nzVisible"),n(),t(204,"td")(205,"code"),e(206,"EventEmitter<boolean>"),n()(),t(207,"td"),e(208,"-"),n()()()(),t(209,"p"),e(210,"\u83DC\u5355\u4F7F\u7528 "),t(211,"a",40),e(212,"nz-menu"),n(),e(213,"\uFF0C\u8FD8\u5305\u62EC\u83DC\u5355\u9879 "),t(214,"code"),e(215,"[nz-menu-item]"),n(),e(216,"\uFF0C\u5206\u5272\u7EBF "),t(217,"code"),e(218,"[nz-menu-divider]"),n(),e(219,"\u3002"),n(),t(220,"blockquote")(221,"p"),e(222,"\u6CE8\u610F\uFF1A"),t(223,"code"),e(224,"nz-dropdown"),n(),e(225," \u4E0B\u7684 "),t(226,"code"),e(227,"[nz-menu]"),n(),e(228," \u9ED8\u8BA4\u4E0D\u53EF\u9009\u4E2D\u3002\u5982\u679C\u9700\u8981\u83DC\u5355\u53EF\u9009\u4E2D\uFF0C\u53EF\u4EE5\u6307\u5B9A "),t(229,"code"),e(230,"<ul nz-menu nzSelectable>"),n(),e(231,"."),n(),t(232,"p")(233,"code"),e(234,"nz-dropdown-menu"),n(),e(235," \u5185 "),t(236,"code"),e(237,"[nz-menu]"),n(),e(238," \u7684 "),t(239,"code"),e(240,"nzMode"),n(),e(241," \u53EA\u53EF\u4EE5\u662F\u9ED8\u8BA4\u503C "),t(242,"code"),e(243,"vertical"),n(),e(244,"\u3002"),n()(),t(245,"h3",41)(246,"span"),e(247,"nz-dropdown-menu"),n(),t(248,"label",42),e(249,"component"),n(),t(250,"a",43),e(251,"#"),n()(),t(252,"p"),e(253,"\u7528\u4E8E\u5305\u88F9\u83DC\u5355\u9879\uFF0C\u53EF\u4EE5\u901A\u8FC7 "),t(254,"code"),e(255,"nzDropdownMenu"),n(),e(256," \u6A21\u677F\u53D8\u91CF\u5BFC\u51FA\u540E\u4F20\u5165 "),t(257,"code"),e(258,"[nz-dropdown]"),n(),e(259," \u548C "),t(260,"code"),e(261,"NzContextMenuService"),n(),e(262,"\u3002"),n(),t(263,"blockquote")(264,"p"),e(265,"\u6CE8\u610F\uFF1A\u6BCF\u4E2A "),t(266,"code"),e(267,"nz-dropdown-menu"),n(),e(268," \u53EA\u80FD\u4F5C\u4E3A\u4E00\u4E2A "),t(269,"code"),e(270,"[nz-dropdown]"),n(),e(271," \u7684\u8F93\u5165\u9879"),n()(),t(272,"pre")(273,"code",44)(274,"span",45)(275,"span",45)(276,"span",46),e(277,"<"),n(),e(278,"a"),n(),e(279," "),t(280,"span",47),e(281,"nz-dropdown"),n(),e(282," "),t(283,"span",47),e(284,"[nzDropdownMenu]"),n(),t(285,"span",48)(286,"span",49),e(287,"="),n(),t(288,"span",46),e(289,'"'),n(),e(290,"menu"),t(291,"span",46),e(292,'"'),n()(),t(293,"span",46),e(294,">"),n()(),e(295,"Hover me"),t(296,"span",45)(297,"span",45)(298,"span",46),e(299,"</"),n(),e(300,"a"),n(),t(301,"span",46),e(302,">"),n()(),e(303,` 2`),t(304,"span",45)(305,"span",45)(306,"span",46),e(307,"<"),n(),e(308,"nz-dropdown-menu"),n(),e(309," "),t(310,"span",47),e(311,"#menu"),n(),t(312,"span",48)(313,"span",49),e(314,"="),n(),t(315,"span",46),e(316,'"'),n(),e(317,"nzDropdownMenu"),t(318,"span",46),e(319,'"'),n()(),t(320,"span",46),e(321,">"),n()(),e(322,` 3 `),t(323,"span",45)(324,"span",45)(325,"span",46),e(326,"<"),n(),e(327,"ul"),n(),e(328," "),t(329,"span",47),e(330,"nz-menu"),n(),t(331,"span",46),e(332,">"),n()(),e(333,` 4 `),t(334,"span",45)(335,"span",45)(336,"span",46),e(337,"<"),n(),e(338,"li"),n(),e(339," "),t(340,"span",47),e(341,"nz-menu-item"),n(),t(342,"span",46),e(343,">"),n()(),e(344,"1st menu item"),t(345,"span",45)(346,"span",45)(347,"span",46),e(348,"</"),n(),e(349,"li"),n(),t(350,"span",46),e(351,">"),n()(),e(352,` 5 `),t(353,"span",45)(354,"span",45)(355,"span",46),e(356,"<"),n(),e(357,"li"),n(),e(358," "),t(359,"span",47),e(360,"nz-menu-item"),n(),t(361,"span",46),e(362,">"),n()(),e(363,"2nd menu item"),t(364,"span",45)(365,"span",45)(366,"span",46),e(367,"</"),n(),e(368,"li"),n(),t(369,"span",46),e(370,">"),n()(),e(371,` 6 `),t(372,"span",45)(373,"span",45)(374,"span",46),e(375,"<"),n(),e(376,"li"),n(),e(377," "),t(378,"span",47),e(379,"nz-menu-item"),n(),t(380,"span",46),e(381,">"),n()(),e(382,"3rd menu item"),t(383,"span",45)(384,"span",45)(385,"span",46),e(386,"</"),n(),e(387,"li"),n(),t(388,"span",46),e(389,">"),n()(),e(390,` 7 `),t(391,"span",45)(392,"span",45)(393,"span",46),e(394,"</"),n(),e(395,"ul"),n(),t(396,"span",46),e(397,">"),n()(),e(398,` 8`),t(399,"span",45)(400,"span",45)(401,"span",46),e(402,"</"),n(),e(403,"nz-dropdown-menu"),n(),t(404,"span",46),e(405,">"),n()(),e(406,` 9`),n()(),t(407,"h3",50)(408,"span"),e(409,"NzContextMenuService"),n(),t(410,"label",51),e(411,"service"),n(),t(412,"a",52),e(413,"#"),n()(),t(414,"p"),e(415,"\u7528\u4E8E\u53F3\u952E\u5F39\u51FA\u4E0B\u62C9\u83DC\u5355\uFF0C\u5177\u4F53\u53C2\u89C1\u793A\u4F8B"),n(),t(416,"table")(417,"thead")(418,"tr")(419,"th"),e(420,"\u65B9\u6CD5/\u5C5E\u6027"),n(),t(421,"th"),e(422,"\u8BF4\u660E"),n(),t(423,"th"),e(424,"\u53C2\u6570"),n(),t(425,"th"),e(426,"\u8FD4\u56DE"),n()()(),t(427,"tbody")(428,"tr")(429,"td"),e(430,"create"),n(),t(431,"td"),e(432,"\u521B\u5EFA\u53F3\u952E\u83DC\u5355"),n(),t(433,"td")(434,"code"),e(435,"($event:MouseEvent | {x:number, y:number}, menu:NzDropdownMenuComponent)"),n()(),t(436,"td")(437,"code"),e(438,"EmbeddedViewRef<any>"),n()()(),t(439,"tr")(440,"td"),e(441,"close"),n(),t(442,"td"),e(443,"\u5173\u95ED\u53F3\u952E\u83DC\u5355"),n(),t(444,"td"),e(445,"-"),n(),t(446,"td"),e(447,"-"),n()()()(),u(),n()()),i&2&&(l(),o("nzOffsetTop",16),l(),o("nzAffix",!1),l(32),o("nzGutter",16),l(),o("nzXl",12)("nzSpan",24),l(),o("nzId","components-dropdown-demo-basic")("nzLink","components-dropdown-demo-basic")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/dropdown/demo/basic.md"),l(5),o("nzId","components-dropdown-demo-item")("nzLink","components-dropdown-demo-item")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/dropdown/demo/item.md"),l(5),o("nzId","components-dropdown-demo-event")("nzLink","components-dropdown-demo-event")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/dropdown/demo/event.md"),l(5),o("nzId","components-dropdown-demo-sub-menu")("nzLink","components-dropdown-demo-sub-menu")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/dropdown/demo/sub-menu.md"),l(5),o("nzId","components-dropdown-demo-context-menu")("nzLink","components-dropdown-demo-context-menu")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/dropdown/demo/context-menu.md"),l(5),o("nzXl",12)("nzSpan",24),l(),o("nzId","components-dropdown-demo-placement")("nzLink","components-dropdown-demo-placement")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/dropdown/demo/placement.md"),l(5),o("nzId","components-dropdown-demo-trigger")("nzLink","components-dropdown-demo-trigger")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/dropdown/demo/trigger.md"),l(5),o("nzId","components-dropdown-demo-dropdown-button")("nzLink","components-dropdown-demo-dropdown-button")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/dropdown/demo/dropdown-button.md"),l(5),o("nzId","components-dropdown-demo-overlay-visible")("nzLink","components-dropdown-demo-overlay-visible")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/dropdown/demo/overlay-visible.md"))},dependencies:[de,M,re,oe,me,ie,te,ne,j,E,A,O,R,L,V,G,P,Z,Q],encapsulation:2})};var ae=class a{expanded=!1;codeBoxes;goLink(r){window&&(window.location.hash=r)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEac
9h(r=>r.expandCode(this.expanded))}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=z({type:a,selectors:[["nz-demo-dropdown"]],viewQuery:function(i,p){if(i&1&&q(M,5),i&2){let d;W(d=X())&&(p.codeBoxes=d)}},decls:465,vars:52,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-dropdown-demo-basic","nzTitle","Basic"],["nzHref","#components-dropdown-demo-placement","nzTitle","Placement"],["nzHref","#components-dropdown-demo-item","nzTitle","Other elements"],["nzHref","#components-dropdown-demo-trigger","nzTitle","Trigger mode"],["nzHref","#components-dropdown-demo-event","nzTitle","Click event"],["nzHref","#components-dropdown-demo-dropdown-button","nzTitle","Button with dropdown menu"],["nzHref","#components-dropdown-demo-sub-menu","nzTitle","Cascading menu"],["nzHref","#components-dropdown-demo-overlay-visible","nzTitle","The way of hiding menu."],["nzHref","#components-dropdown-demo-context-menu","nzTitle","Context Menu"],["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/dropdown/doc/index.en-US.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nzType","edit"],["name","dropdown","description","A dropdown list.","language","en"],["id","when_to_use"],["onclick","window.location.hash = 'when_to_use'",1,"anchor"],["nzType","appstore","nz-tooltip","","nzTooltipTitle","Expand All Code",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzXl","nzSpan"],["nzTitle","Basic","nzSelector","nz-demo-dropdown-basic","nzGenerateCommand","ng g ng-zorro-antd:dropdown-basic <name>","nzComponentName","NzDemoDropdownBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","Other elements","nzSelector","nz-demo-dropdown-item","nzGenerateCommand","ng g ng-zorro-antd:dropdown-item <name>","nzComponentName","NzDemoDropdownItemComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Click event","nzSelector","nz-demo-dropdown-event","nzGenerateCommand","ng g ng-zorro-antd:dropdown-event <name>","nzComponentName","NzDemoDropdownEventComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Cascading menu","nzSelector","nz-demo-dropdown-sub-menu","nzGenerateCommand","ng g ng-zorro-antd:dropdown-sub-menu <name>","nzComponentName","NzDemoDropdownSubMenuComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Context Menu","nzSelector","nz-demo-dropdown-context-menu","nzGenerateCommand","ng g ng-zorro-antd:dropdown-context-menu <name>","nzComponentName","NzDemoDropdownContextMenuComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Placement","nzSelector","nz-demo-dropdown-placement","nzGenerateCommand","ng g ng-zorro-antd:dropdown-placement <name>","nzComponentName","NzDemoDropdownPlacementComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Trigger mode","nzSelector","nz-demo-dropdown-trigger","nzGenerateCommand","ng g ng-zorro-antd:dropdown-trigger <name>","nzComponentName","NzDemoDropdownTriggerComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Button with dropdown menu","nzSelector","nz-demo-dropdown-dropdown-button","nzGenerateCommand","ng g ng-zorro-antd:dropdown-dropdown-button <name>","nzComponentName","NzDemoDropdownDropdownButtonComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","The way of hiding menu.","nzSelector","nz-demo-dropdown-overlay-visible","nzGenerateCommand","ng g ng-zorro-antd:dropdown-overlay-visible <name>","nzComponentName","NzDemoDropdownOverlayVisibleComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-dropdown"],[1,"api-type-label","directive"],["onclick","window.location.hash = 'nz-dropdown'",1,"anchor"],["href","/components/menu/en"],["id","nz-dropdown-menu"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-dropdown-menu'",1,"anchor"],[1,"language-html"],[1,"token","tag"],[1,"token","punctuation"],[1,"token","attr-name"],[1,"token","attr-value"],[1,"token","punctuation","attr-equals"],["id","nzcontextmenuservice"],[1,"api-type-label","service"],["onclick","window.location.hash = 'nzcontextmenuservice'",1,"anchor"]],template:function(i,p){i&1&&(t(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),c("nzClick",function(v){return p.goLink(v)}),m(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)(11,"nz-link",10)(12,"nz-link",11),n()(),t(13,"section",12)(14,"h1"),e(15,"Dropdown"),m(16,"span",13)(17,"span",14),t(18,"a",15),m(19,"nz-icon",16),n()(),m(20,"component-meta",17),t(21,"section",12),s(),t(22,"h2",18)(23,"span"),e(24,"When To Use"),n(),t(25,"a",19),e(26,"#"),n()(),t(27,"p"),e(28,"If there are too many operations to display, you can wrap them in a "),t(29,"code"),e(30,"Dropdown"),n(),e(31,". By clicking/hovering on the trigger, a dropdown menu should appear, which allows you to choose one option and execute relevant actions."),n(),u(),n(),t(32,"h2")(33,"span"),e(34,"Examples"),n(),t(35,"nz-icon",20),c("click",function(){return p.exp
9andAllCode()}),n()()(),t(36,"div",21)(37,"div",22)(38,"nz-code-box",23),m(39,"nz-demo-dropdown-basic",24),t(40,"div",25),s(),t(41,"p"),e(42,"The most basic dropdown menu."),n(),u(),n()(),t(43,"nz-code-box",26),m(44,"nz-demo-dropdown-item",24),t(45,"div",25),s(),t(46,"p"),e(47,"Divider and disabled menu item."),n(),u(),n()(),t(48,"nz-code-box",27),m(49,"nz-demo-dropdown-event",24),t(50,"div",25),s(),t(51,"p"),e(52,"An event will be triggered when you click menu items, in which you can make different operations by adding events to item."),n(),u(),n()(),t(53,"nz-code-box",28),m(54,"nz-demo-dropdown-sub-menu",24),t(55,"div",25),s(),t(56,"p"),e(57,"The menu has multiple levels."),n(),u(),n()(),t(58,"nz-code-box",29),m(59,"nz-demo-dropdown-context-menu",24),t(60,"div",25),s(),t(61,"p"),e(62,"Trigger "),t(63,"code"),e(64,"dropdown"),n(),e(65," with contextmenu."),n(),u(),n()()(),t(66,"div",22)(67,"nz-code-box",30),m(68,"nz-demo-dropdown-placement",24),t(69,"div",25),s(),t(70,"p"),e(71,"Support 6 placements."),n(),u(),n()(),t(72,"nz-code-box",31),m(73,"nz-demo-dropdown-trigger",24),t(74,"div",25),s(),t(75,"p"),e(76,"The default trigger mode is "),t(77,"code"),e(78,"hover"),n(),e(79,", you can change it to "),t(80,"code"),e(81,"click"),n(),e(82,"."),n(),u(),n()(),t(83,"nz-code-box",32),m(84,"nz-demo-dropdown-dropdown-button",24),t(85,"div",25),s(),t(86,"p"),e(87,"A button is on the left, and a related functional menu is on the right."),n(),u(),n()(),t(88,"nz-code-box",33),m(89,"nz-demo-dropdown-overlay-visible",24),t(90,"div",25),s(),t(91,"p"),e(92,"The default is to close the menu when you click on menu items, this feature can be turned off."),n(),u(),n()()()(),t(93,"section",34),s(),t(94,"h2",35)(95,"span"),e(96,"API"),n(),t(97,"a",36),e(98,"#"),n()(),t(99,"h3",37)(100,"span"),e(101,"[nz-dropdown]"),n(),t(102,"label",38),e(103,"directive"),n(),t(104,"a",39),e(105,"#"),n()(),t(106,"table")(107,"thead")(108,"tr")(109,"th"),e(110,"Property"),n(),t(111,"th"),e(112,"Description"),n(),t(113,"th"),e(114,"Type"),n(),t(115,"th"),e(116,"Default"),n()()(),t(117,"tbody")(118,"tr")(119,"td")(120,"code"),e(121,"[nzDropdownMenu]"),n()(),t(122,"td"),e(123,"Dropdown menu"),n(),t(124,"td")(125,"code"),e(126,"NzDropdownMenuComponent"),n()(),t(127,"td"),e(128,"-"),n()(),t(129,"tr")(130,"td")(131,"code"),e(132,"[nzDisabled]"),n()(),t(133,"td"),e(134,"whether the dropdown menu is disabled"),n(),t(135,"td")(136,"code"),e(137,"boolean"),n()(),t(138,"td"),e(139,"-"),n()(),t(140,"tr")(141,"td")(142,"code"),e(143,"[nzPlacement]"),n()(),t(144,"td"),e(145,"placement of pop menu"),n(),t(146,"td")(147,"code"),e(148,"'bottomLeft' | 'bottomCenter' | 'bottomRight' | 'topLeft' | 'topCenter' | 'topRight'"),n()(),t(149,"td")(150,"code"),e(151,"'bottomLeft'"),n()()(),t(152,"tr")(153,"td")(154,"code"),e(155,"[nzTrigger]"),n()(),t(156,"td"),e(157,"the trigger mode which executes the drop-down action"),n(),t(158,"td")(159,"code"),e(160,"'click' | 'hover'"),n()(),t(161,"td")(162,"code"),e(163,"'hover'"),n()()(),t(164,"tr")(165,"td")(166,"code"),e(167,"[nzClickHide]"),n()(),t(168,"td"),e(169,"whether hide menu when click"),n(),t(170,"td")(171,"code"),e(172,"boolean"),n()(),t(173,"td")(174,"code"),e(175,"true"),n()()(),t(176,"tr")(177,"td")(178,"code"),e(179,"[nzVisible]"),n()(),t(180,"td"),e(181,"whether the dropdown menu is visible, double binding"),n(),t(182,"td")(183,"code"),e(184,"boolean"),n()(),t(185,"td"),e(186,"-"),n()(),t(187,"tr")(188,"td")(189,"code"),e(190,"[nzOverlayClassName]"),n()(),t(191,"td"),e(192,"Class name of the dropdown root element"),n(),t(193,"td")(194,"code"),e(195,"string"),n()(),t(196,"td"),e(197,"-"),n()(),t(198,"tr")(199,"td")(200,"code"),e(201,"[nzOverlayStyle]"),n()(),t(202,"td"),e(203,"Style of the dropdown root element"),n(),t(204,"td")(205,"code"),e(206,"object"),n()(),t(207,"td"),e(208,"-"),n()(),t(209,"tr")(210,"td")(211,"code"),e(212,"(nzVisibleChange)"),n()(),t(213,"td"),e(214,"a callback function takes an argument: "),t(215,"code"),e(216,"nzVisible"),n(),e(217,", is executed when the visible state is changed"),n(),t(218,"td")(219,"code"),e(220,"EventEmitter<boolean>"),n()(),t(221,"td"),e(222,"-"),n()()()(),t(223,"p"),e(224,"You should use "),t(225,"a",40),e(226,"nz-menu"),n(),e(227," in "),t(228,"code"),e(229,"nz-dropdown"),n(),e(230,". The menu items and divi
9ders are also available by using "),t(231,"code"),e(232,"nz-menu-item"),n(),e(233," and "),t(234,"code"),e(235,"nz-menu-divider"),n(),e(236,"."),n(),t(237,"blockquote")(238,"p"),e(239,"Note: "),t(240,"code"),e(241,"[nz-menu]"),n(),e(242," of "),t(243,"code"),e(244,"nz-dropdown"),n(),e(245," is unselectable by default, you can make it selectable via "),t(246,"code"),e(247,"<ul nz-menu nzSelectable>"),n(),e(248,"."),n(),t(249,"p"),e(250,"The "),t(251,"code"),e(252,"nzMode"),n(),e(253," of "),t(254,"code"),e(255,"[nz-menu]"),n(),e(256," inside "),t(257,"code"),e(258,"nz-dropdown-menu"),n(),e(259," can only be the default value "),t(260,"code"),e(261,"vertical"),n(),e(262,"."),n()(),t(263,"h3",41)(264,"span"),e(265,"nz-dropdown-menu"),n(),t(266,"label",42),e(267,"component"),n(),t(268,"a",43),e(269,"#"),n()(),t(270,"p"),e(271,"Wrap Dropdown Menu and pass to "),t(272,"code"),e(273,"[nz-dropdown]"),n(),e(274," and "),t(275,"code"),e(276,"NzContextMenuService"),n(),e(277,", you can export it via Template Syntax "),t(278,"code"),e(279,"nzDropdownMenu"),n()(),t(280,"blockquote")(281,"p"),e(282,"Note\uFF1AEvery "),t(283,"code"),e(284,"[nz-dropdown]"),n(),e(285," should pass independent "),t(286,"code"),e(287,"nz-dropdown-menu"),n(),e(288,"."),n()(),t(289,"pre")(290,"code",44)(291,"span",45)(292,"span",45)(293,"span",46),e(294,"<"),n(),e(295,"a"),n(),e(296," "),t(297,"span",47),e(298,"nz-dropdown"),n(),e(299," "),t(300,"span",47),e(301,"[nzDropdownMenu]"),n(),t(302,"span",48)(303,"span",49),e(304,"="),n(),t(305,"span",46),e(306,'"'),n(),e(307,"menu"),t(308,"span",46),e(309,'"'),n()(),t(310,"span",46),e(311,">"),n()(),e(312,"Hover me"),t(313,"span",45)(314,"span",45)(315,"span",46),e(316,"</"),n(),e(317,"a"),n(),t(318,"span",46),e(319,">"),n()(),e(320,` 10`),t(321,"span",45)(322,"span",45)(323,"span",46),e(324,"<"),n(),e(325,"nz-dropdown-menu"),n(),e(326," "),t(327,"span",47),e(328,"#menu"),n(),t(329,"span",48)(330,"span",49),e(331,"="),n(),t(332,"span",46),e(333,'"'),n(),e(334,"nzDropdownMenu"),t(335,"span",46),e(336,'"'),n()(),t(337,"span",46),e(338,">"),n()(),e(339,` 11 `),t(340,"span",45)(341,"span",45)(342,"span",46),e(343,"<"),n(),e(344,"ul"),n(),e(345," "),t(346,"span",47),e(347,"nz-menu"),n(),t(348,"span",46),e(349,">"),n()(),e(350,` 12 `),t(351,"span",45)(352,"span",45)(353,"span",46),e(354,"<"),n(),e(355,"li"),n(),e(356," "),t(357,"span",47),e(358,"nz-menu-item"),n(),t(359,"span",46),e(360,">"),n()(),e(361,"1st menu item"),t(362,"span",45)(363,"span",45)(364,"span",46),e(365,"</"),n(),e(366,"li"),n(),t(367,"span",46),e(368,">"),n()(),e(369,` 13 `),t(370,"span",45)(371,"span",45)(372,"span",46),e(373,"<"),n(),e(374,"li"),n(),e(375," "),t(376,"span",47),e(377,"nz-menu-item"),n(),t(378,"span",46),e(379,">"),n()(),e(380,"2nd menu item"),t(381,"span",45)(382,"span",45)(383,"span",46),e(384,"</"),n(),e(385,"li"),n(),t(386,"span",46),e(387,">"),n()(),e(388,` 14 `),t(389,"span",45)(390,"span",45)(391,"span",46),e(392,"<"),n(),e(393,"li"),n(),e(394," "),t(395,"span",47),e(396,"nz-menu-item"),n(),t(397,"span",46),e(398,">"),n()(),e(399,"3rd menu item"),t(400,"span",45)(401,"span",45)(402,"span",46),e(403,"</"),n(),e(404,"li"),n(),t(405,"span",46),e(406,">"),n()(),e(407,` 15 `),t(408,"span",45)(409,"span",45)(410,"span",46),e(411,"</"),n(),e(412,"ul"),n(),t(413,"span",46),e(414,">"),n()(),e(415,` 16`),t(416,"span",45)(417,"span",45)(418,"span",46),e(419,"</"),n(),e(420,"nz-dropdown-menu"),n(),t(421,"span",46),e(422,">"),n()(),e(423,` 17`),n()(),t(424,"h3",50)(425,"span"),e(426,"NzContextMenuService"),n(),t(427,"label",51),e(428,"service"),n(),t(429,"a",52),e(430,"#"),n()(),t(431,"p"),e(432,"Create dropdown with contextmenu, the detail can be found in the example above"),n(),t(433,"table")(434,"thead")(435,"tr")(436,"th"),e(437,"Property"),n(),t(438,"th"),e(439,"Description"),n(),t(440,"th"),e(441,"Arguments"),n(),t(442,"th"),e(443,"Return Value"),n()()(),t(444,"tbody")(445,"tr")(446,"td"),e(447,"create"),n(),t(448,"td"),e(449,"create dropdown"),n(),t(450,"td")(451,"code"),e(452,"($event:MouseEvent | {x:number, y:number}, menu:NzDropdownMenuComponent)"),n()(),t(453,"td")(454,"code"),e(455,"EmbeddedViewRef<any>"),n()()(),t(456,"tr")(457,"td"),e(458,"close"),n(),t(459,"td"),e(460,"close dropdown"),n(),t(461,"td"),e(462,"-"),n(),t(463,"td"),e(464,"-"),n()()()(),u(),n()()),i&2&&(l(),o("nzOffsetTop",16),l(),o("nzAffix",!1),l(34),o("nzGutter",16),l(),o("nzXl",12)("nzSpan",24),l(),o("nzId","components-dropdown-demo-basic")("nzLink","components-dropdown-demo-basic")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/dropdown/demo/basic.md"),l(5),o("nzId","components-dropdown-demo-item")("nzLink","components-dropdown-demo-item")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/dropdown/demo/item.md"),l(5),o("nzId","components-dropdown-demo-event")("nzLink","components-dropdown-demo-event")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/dropdown/demo/event.md"),l(5),o("nzId","components-dropdown-demo-sub-menu")("nzLink","components-dropdown-demo-sub-menu")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/dropdown/demo/sub-menu.md"),l(5),o("nzId","components-dropdown-demo-context-menu")("nzLink","components-dropdown-demo-context-menu")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/dropdown/demo/context-menu.md"),l(8),o("nzXl",12)("nzSpan",24),l(),o("nzId","components-dropdown-demo-placement")("nzLink","components-dropdown-demo-placement")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/dropdown/demo/placement.md"),l(5),o("nzId","components-dropdown-demo-trigger")("nzLink","components-dropdown-demo-trigger")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/dropdown/demo/trigger.md"),l(11),o("nzId","components-dropdown-demo-dropdown-button")("nzLink","components-dropdown-demo-dropdown-button")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/dropdown/demo/dropdown-button.md"),l(5),o("nzId","components-dropdown-demo-overlay-visible")("nzLink","components-dropdown-demo-overlay-visible")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/dropdown/demo/overlay-visible.md"))},dependencies:[de,M,re,oe,me,ie,te,ne,j,E,A,O,R,L,V,G,P,Z,Q],encapsulation:2})};var He=[{path:"en",component:ae},{path:"zh",component:le}],Pn=He;export{Pn as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.