-
Notifications
You must be signed in to change notification settings - Fork 11
/
chunk-E5M53NC2.js
2 lines (2 loc) · 48.7 KB
/
chunk-E5M53NC2.js
1
2
import{a as S,b as x}from"./chunk-WFDW5PHE.js";import"./chunk-TTTGW2ID.js";import{a as ce,b as ue}from"./chunk-WD5CSFOF.js";import{a as me,b as re,c as ae}from"./chunk-BUL6X4XY.js";import"./chunk-DXB22PMR.js";import"./chunk-DWJLHIXK.js";import"./chunk-KNYRAO7I.js";import"./chunk-VSPE72FH.js";import"./chunk-4F3F27BT.js";import"./chunk-7EEEUGJK.js";import"./chunk-MGFBB5Y4.js";import"./chunk-3LAVY7RV.js";import{a as B,g as K,h as Q,j as U}from"./chunk-Q4ISATUO.js";import"./chunk-JXWNPNAC.js";import{Ca as O,Fc as y,Hc as V,Ic as W,Lc as Z,ec as G,oc as N,sc as T}from"./chunk-YWVGY2C2.js";import{Aa as p,Ac as I,Ba as k,Bc as L,Ca as w,Cc as P,Gc as _,Hc as n,Ib as z,Ic as de,Jc as R,Mc as f,Nc as g,Oc as C,Pb as v,Qc as b,Wb as r,_c as M,fc as ie,gc as le,hc as oe,ic as t,jc as e,kc as i,oc as H,rb as a,rc as E,za as s}from"./chunk-GBKJFEQZ.js";import"./chunk-EQDQRRRY.js";var Se=()=>({"max-height":"300px"}),j=(()=>{class o{constructor(){this.expandKeys=["0-0"],this.nodes=[{title:"Node1",value:"0-0",key:"0-0",children:[{title:"Child Node1",value:"0-0-1",key:"0-0-1"},{title:"Child Node2",value:"0-0-2",key:"0-0-2"}]},{title:"Node2",value:"0-1",key:"0-1"}]}onExpandChange(m){let l=m.node;l&&l.getChildren().length===0&&l.isExpanded&&this.loadNode().then(d=>{l.addChildren(d)})}loadNode(){return new Promise(m=>{setTimeout(()=>m([{title:"Child Node",key:`${new Date().getTime()}-0`},{title:"Child Node",key:`${new Date().getTime()}-1`}]),1e3)})}static{this.\u0275fac=function(l){return new(l||o)}}static{this.\u0275cmp=z({type:o,selectors:[["nz-demo-tree-select-async"]],decls:1,vars:7,consts:[["nzPlaceHolder","Please select",2,"width","250px",3,"ngModelChange","nzExpandChange","nzExpandedKeys","ngModel","nzDropdownMatchSelectWidth","nzDropdownStyle","nzNodes","nzAsyncData"]],template:function(l,d){l&1&&(t(0,"nz-tree-select",0),C("ngModelChange",function(u){return g(d.value,u)||(d.value=u),u}),E("nzExpandChange",function(u){return d.onExpandChange(u)}),e()),l&2&&(r("nzExpandedKeys",d.expandKeys),f("ngModel",d.value),r("nzDropdownMatchSelectWidth",!0)("nzDropdownStyle",b(6,Se))("nzNodes",d.nodes)("nzAsyncData",!0))},dependencies:[y,N,T,x,S],encapsulation:2})}}return o})();var q=(()=>{class o{constructor(){this.expandKeys=["100","1001"],this.nodes=[{title:"parent 1",key:"100",children:[{title:"parent 1-0",key:"1001",children:[{title:"leaf 1-0-0",key:"10010",isLeaf:!0},{title:"leaf 1-0-1",key:"10011",isLeaf:!0}]},{title:"parent 1-1",key:"1002",children:[{title:"leaf 1-1-0",key:"10020",isLeaf:!0}]}]}]}onChange(m){console.log(m)}ngOnInit(){setTimeout(()=>{this.value="1001"},1e3)}static{this.\u0275fac=function(l){return new(l||o)}}static{this.\u0275cmp=z({type:o,selectors:[["nz-demo-tree-select-basic"]],decls:1,vars:3,consts:[["nzShowSearch","","nzPlaceHolder","Please select",2,"width","250px",3,"ngModelChange","nzExpandedKeys","nzNodes","ngModel"]],template:function(l,d){l&1&&(t(0,"nz-tree-select",0),C("ngModelChange",function(u){return g(d.value,u)||(d.value=u),u}),E("ngModelChange",function(u){return d.onChange(u)}),e()),l&2&&(r("nzExpandedKeys",d.expandKeys)("nzNodes",d.nodes),f("ngModel",d.value))},dependencies:[y,N,T,x,S],encapsulation:2})}}return o})();var Y=(()=>{class o{constructor(){this.value=["0-0-0"],this.nodes=[{title:"Node1",value:"0-0",key:"0-0",children:[{title:"Child Node1",value:"0-0-0",key:"0-0-0",isLeaf:!0}]},{title:"Node2",value:"0-1",key:"0-1",children:[{title:"Child Node3",value:"0-1-0",key:"0-1-0",isLeaf:!0},{title:"Child Node4",value:"0-1-1",key:"0-1-1",isLeaf:!0},{title:"Child Node5",value:"0-1-2",key:"0-1-2",isLeaf:!0}]}]}onChange(m){console.log(m)}static{this.\u0275fac=function(l){return new(l||o)}}static{this.\u0275cmp=z({type:o,selectors:[["nz-demo-tree-select-checkable"]],decls:1,vars:2,consts:[["nzShowSearch","","nzCheckable","","nzPlaceHolder","Please select",2,"width","250px",3,"ngModelChange","ngModel","nzNodes"]],template:function(l,d){l&1&&(t(0,"nz-tree-select",0),C("ngModelChange",function(u){return g(d.value,u)||(d.value=u),u}),E("ngModelChange",function(u){return d.onChange(u)}),e()),l&2&&(f("ngModel",d.value),r("nzNodes",d.nodes))},dependencies:[y,N,T,x,S],encapsulation:2})}}return o})();function xe(o,D){if(o&1&&n(0),o&2){let m=D.$implicit;R("and ",m.length," more...")}}var J=(()=>{class o{constructor(){this.value=[],this.nodes=[{title:"parent 1",key:"100",children:[{title:"parent 1-0",key:"1001",children:[{title:"leaf 1-0-0",key:"10010",isLeaf:!0},{title:"leaf 1-0-1",key:"10011",isLeaf:!0}]},{title:"parent 1-1",key:"1002",children:[{title:"leaf 1-1-0",key:"10020",isLeaf:!0}]}]}]}onChange(m){console.log(m)}static{this.\u0275fac=function(l){return new(l||o)}}static{this.\u0275cmp=z({type:o,selectors:[["nz-demo-tree-select-multiple"]],decls:3,vars:7,consts:[["omittedPlaceHolder",""],["nzPlaceHolder","Please select",2,"width","250px",3,"ngModelChange","ngModel","nzMaxTagCount","nzMaxTagPlaceholder","nzNodes","nzDefaultExpandAll","nzAllowClear","nzMultiple"]],template:function(l,d){if(l&1){let c=H();t(0,"nz-tree-select",1),C("ngModelChange",function(h){return k(c),g(d.value,h)||(d.value=h),w(h)}),E("ngModelChange",function(h){return k(c),w(d.onChange(h))}),e(),v(1,xe,1,1,"ng-template",null,0,M)}if(l&2){let c=_(2);f("ngModel",d.value),r("nzMaxTagCount",3)("nzMaxTagPlaceholder",c)("nzNodes",d.nodes)("nzDefaultExpandAll",!0)("nzAllowClear",!1)("nzMultiple",!0)}},dependencies:[y,N,T,x,S],encapsulation:2})}}return o})();var he=()=>[];function fe(o,D){o&1&&(t(0,"div",2),i(1,"nz-spin",3),e())}var $=(()=>{class o{static{this.\u0275fac=function(l){return new(l||o)}}static{this.\u0275cmp=z({type:o,selectors:[["nz-demo-tree-select-no-data"]],decls:3,vars:3,consts:[["noData",""],["nzPlaceHolder","Please select",2,"width","250px",3,"nzNodes","nzNotFoundContent"],[2,"height","200px","display","flex","justify-content","center","align-items","center"],["nzSimple",""]],template:function(l,d){if(l&1&&(i(0,"nz-tree-select",1),v(1,fe,2,0,"ng-template",null,0,M)),l&2){let c=_(2);r("nzNodes",b(2,he))("nzNotFoundContent",c)}},dependencies:[ue,ce,x,S],encapsulation:2})}}return o})();var ge=()=>({width:"300px"});function Ce(o,D){if(o&1&&(t(0,"label",2),n(1),e()),o&2){let m=D.$implicit;r("nzValue",m),a(),de(m)}}function Ne(o,D){if(o&1&&n(0),o&2){let m=D.$implicit;R("and ",m.length," more...")}}var ee=(()=>{class o{constructor(){this.list=["topLeft","topRight","bottomLeft","bottomRight"],this.placement="topLeft",this.value=[],this.nodes=[{title:"parent 1",key:"100",children:[{title:"parent 1-0",key:"1001",children:[{title:"leaf 1-0-0",key:"10010",isLeaf:!0},{title:"leaf 1-0-1",key:"10011",isLeaf:!0}]},{title:"parent 1-1",key:"1002",children:[{title:"leaf 1-1-0",key:"10020",isLeaf:!0}]}]}]}onChange(m){console.log(m)}static{this.\u0275fac=function(l){return new(l||o)}}static{this.\u0275cmp=z({type:o,selectors:[["nz-demo-tree-select-placement"]],decls:8,vars:11,consts:[["omittedPlaceHolder",""],[3,"ngModelChange","ngModel"],["nz-radio-button","",3,"nzValue"],["nzPlaceHolder","Please select",2,"width","120px",3,"ngModelChange","nzPlacement","ngModel","nzMaxTagCount","nzMaxTagPlaceholder","nzNodes","nzDropdownStyle","nzDefaultExpandAll","nzAllowClear","nzMultiple"]],template:function(l,d){if(l&1){let c=H();t(0,"nz-radio-group",1),C("ngModelChange",function(h){return k(c),g(d.placement,h)||(d.placement=h),w(h)}),le(1,Ce,2,2,"label",2,ie),e(),i(3,"br")(4,"br"),t(5,"nz-tree-select",3),C("ngModelChange",function(h){return k(c),g(d.value,h)||(d.value=h),w(h)}),E("ngModelChange",function(h){return k(c),w(d.onChange(h))}),e(),v(6,Ne,1,1,"ng-template",null,0,M)}if(l&2){let c=_(7);f("ngModel",d.placement),a(),oe(d.list),a(4),r("nzPlacement",d.placement),f("ngModel",d.value),r("nzMaxTagCount",3)("nzMaxTagPlaceholder",c)("nzNodes",d.nodes)("nzDropdownStyle",b(10,ge))("nzDefaultExpandAll",!0)("nzAllowClear",!1)("nzMultiple",!0)}},dependencies:[y,N,T,ae,re,me,x,S],encapsulation:2})}}return o})();var se=()=>[],te=(()=>{class o{static{this.\u0275fac=function(l){return new(l||o)}}static{this.\u0275cmp=z({type:o,selectors:[["nz-demo-tree-select-status"]],decls:4,vars:4,consts:[["nzStatus","error","nzPlaceHolder","Error",2,"width","100%",3,"nzNodes"],["nzMultiple","","nzShowSearch","","nzStatus","warning","nzPlaceHolder","Warning multiple",2,"width","100%",3,"nzNodes"]],template:function(l,d){l&1&&i(0,"nz-tree-select",0)(1,"br")(2,"br")(3,"nz-tree-select",1),l&2&&(r("nzNodes",b(2,se)),a(3),r("nzNodes",b(3,se)))},dependencies:[x,S],encapsulation:2})}}return o})();function pe(o="0",D=3){let m=[];for(let l=0;l<10;l+=1){let d=`${o}-${l}`,c={title:d,key:d,expanded:!0,children:[],isLeaf:!1};D>0?c.children=pe(d,D-1):c.isLeaf=!0,m.push(c)}return m}var ne=(()=>{class o{constructor(){this.nodes=pe()}static{this.\u0275fac=function(l){return new(l||o)}}static{this.\u0275cmp=z({type:o,selectors:[["nz-demo-tree-select-virtual-scroll"]],decls:1,vars:1,consts:[["nzShowSearch","","nzPlaceHolder","Please select","nzVirtualHeight","300px","nzHideUnMatched","true",2,"width","250px",3,"nzNodes"]],template:function(l,d){l&1&&i(0,"nz-tree-select",0),l&2&&r("nzNodes",d.nodes)},dependencies:[x,S],encapsulation:2})}}return o})();var ze=(()=>{class o{constructor(){this.expanded=!1}goLink(m){window&&(window.location.hash=m)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(m=>m.expandCode(this.expanded))}static{this.\u0275fac=function(l){return new(l||o)}}static{this.\u0275cmp=z({type:o,selectors:[["nz-demo-tree-select"]],viewQuery:function(l,d){if(l&1&&I(B,5),l&2){let c;L(c=P())&&(d.codeBoxes=c)}},decls:651,vars:39,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-tree-select-demo-basic","nzTitle","\u57FA\u672C"],["nzHref","#components-tree-select-demo-multiple","nzTitle","\u591A\u9009"],["nzHref","#components-tree-select-demo-async","nzTitle","\u5F02\u6B65\u6570\u636E\u52A0\u8F7D"],["nzHref","#components-tree-select-demo-checkable","nzTitle","\u53EF\u52FE\u9009"],["nzHref","#components-tree-select-demo-virtual-scroll","nzTitle","\u865A\u62DF\u6EDA\u52A8"],["nzHref","#components-tree-select-demo-no-data","nzTitle","\u81EA\u5B9A\u4E49\u7A7A\u72B6\u6001"],["nzHref","#components-tree-select-demo-placement","nzTitle","\u4F4D\u7F6E"],["nzHref","#components-tree-select-demo-status","nzTitle","\u81EA\u5B9A\u4E49\u72B6\u6001"],["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/tree-select/doc/index.zh-CN.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nzType","edit"],["id","\u4F55\u65F6\u4F7F\u7528"],["onclick","window.location.hash = '\u4F55\u65F6\u4F7F\u7528'",1,"anchor"],[1,"language-ts"],[1,"token","keyword"],[1,"token","punctuation"],[1,"token","string"],["nz-icon","","nzType","appstore","nz-tooltip","","nzTooltipTitle","\u5C55\u5F00\u5168\u90E8\u4EE3\u7801",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzXl","nzSpan"],["nzTitle","\u57FA\u672C","nzSelector","nz-demo-tree-select-basic","nzGenerateCommand","ng g ng-zorro-antd:tree-select-basic <name>","nzComponentName","NzDemoTreeSelectBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","\u5F02\u6B65\u6570\u636E\u52A0\u8F7D","nzSelector","nz-demo-tree-select-async","nzGenerateCommand","ng g ng-zorro-antd:tree-select-async <name>","nzComponentName","NzDemoTreeSelectAsyncComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u865A\u62DF\u6EDA\u52A8","nzSelector","nz-demo-tree-select-virtual-scroll","nzGenerateCommand","ng g ng-zorro-antd:tree-select-virtual-scroll <name>","nzComponentName","NzDemoTreeSelectVirtualScrollComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u4F4D\u7F6E","nzSelector","nz-demo-tree-select-placement","nzGenerateCommand","ng g ng-zorro-antd:tree-select-placement <name>","nzComponentName","NzDemoTreeSelectPlacementComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u591A\u9009","nzSelector","nz-demo-tree-select-multiple","nzGenerateCommand","ng g ng-zorro-antd:tree-select-multiple <name>","nzComponentName","NzDemoTreeSelectMultipleComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u53EF\u52FE\u9009","nzSelector","nz-demo-tree-select-checkable","nzGenerateCommand","ng g ng-zorro-antd:tree-select-checkable <name>","nzComponentName","NzDemoTreeSelectCheckableComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u81EA\u5B9A\u4E49\u7A7A\u72B6\u6001","nzSelector","nz-demo-tree-select-no-data","nzGenerateCommand","ng g ng-zorro-antd:tree-select-no-data <name>","nzComponentName","NzDemoTreeSelectNoDataComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u81EA\u5B9A\u4E49\u72B6\u6001","nzSelector","nz-demo-tree-select-status","nzGenerateCommand","ng g ng-zorro-antd:tree-select-status <name>","nzComponentName","NzDemoTreeSelectStatusComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-tree-select"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-tree-select'",1,"anchor"],["href","https://material.angular.io/cdk/scrolling/api","target","_blank","rel","noopener"],["id","\u65B9\u6CD5"],["onclick","window.location.hash = '\u65B9\u6CD5'",1,"anchor"]],template:function(l,d){l&1&&(t(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),E("nzClick",function(u){return d.goLink(u)}),i(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7)(9,"nz-link",8)(10,"nz-link",9)(11,"nz-link",10),e()(),t(12,"section",11)(13,"h1"),n(14,"TreeSelect"),t(15,"span",12),n(16,"\u6811\u9009\u62E9"),e(),i(17,"span",13),t(18,"a",14),i(19,"nz-icon",15),e()(),t(20,"section",11),p(),t(21,"p"),n(22,"\u6811\u578B\u9009\u62E9\u63A7\u4EF6\u3002"),e(),t(23,"h2",16)(24,"span"),n(25,"\u4F55\u65F6\u4F7F\u7528"),e(),t(26,"a",17),n(27,"#"),e()(),t(28,"p"),n(29,"\u7C7B\u4F3C Select \u7684\u9009\u62E9\u63A7\u4EF6\uFF0C\u53EF\u9009\u62E9\u7684\u6570\u636E\u7ED3\u6784\u662F\u4E00\u4E2A\u6811\u5F62\u7ED3\u6784\u65F6\uFF0C\u53EF\u4EE5\u4F7F\u7528 TreeSelect\uFF0C\u4F8B\u5982\u516C\u53F8\u5C42\u7EA7\u3001\u5B66\u79D1\u7CFB\u7EDF\u3001\u5206\u7C7B\u76EE\u5F55\u7B49\u7B49\u3002"),e(),t(30,"pre",18)(31,"code")(32,"span",19),n(33,"import"),e(),n(34," "),t(35,"span",20),n(36,"{"),e(),n(37," NzTreeSelectModule "),t(38,"span",20),n(39,"}"),e(),n(40," "),t(41,"span",19),n(42,"from"),e(),n(43," "),t(44,"span",21),n(45,"'ng-zorro-antd/tree-select'"),e(),t(46,"span",20),n(47,";"),e()()(),s(),e(),t(48,"h2")(49,"span"),n(50,"\u4EE3\u7801\u6F14\u793A"),e(),t(51,"span",22),E("click",function(){return d.expandAllCode()}),e()()(),t(52,"div",23)(53,"div",24)(54,"nz-code-box",25),i(55,"nz-demo-tree-select-basic",26),t(56,"div",27),p(),t(57,"p"),n(58,"\u6700\u7B80\u5355\u7684\u7528\u6CD5\u3002"),e(),s(),e()(),t(59,"nz-code-box",28),i(60,"nz-demo-tree-select-async",26),t(61,"div",27),p(),t(62,"p"),n(63,"\u70B9\u51FB\u5C55\u5F00\u8282\u70B9\uFF0C\u52A8\u6001\u52A0\u8F7D\u6570\u636E\uFF0C\u76F4\u5230\u6267\u884C addChildren() \u65B9\u6CD5\u53D6\u6D88\u52A0\u8F7D\u72B6\u6001\u3002"),e(),s(),e()(),t(64,"nz-code-box",29),i(65,"nz-demo-tree-select-virtual-scroll",26),t(66,"div",27),p(),t(67,"p"),n(68,"\u8BBE\u5B9A "),t(69,"code"),n(70,"nzVirtualHeight"),e(),n(71," \u5F00\u542F\u865A\u62DF\u6EDA\u52A8\u3002"),e(),s(),e()(),t(72,"nz-code-box",30),i(73,"nz-demo-tree-select-placement",26),t(74,"div",27),p(),t(75,"p"),n(76,"\u53EF\u4EE5\u901A\u8FC7 "),t(77,"code"),n(78,"nzPlacement"),e(),n(79," \u624B\u52A8\u6307\u5B9A\u5F39\u51FA\u7684\u4F4D\u7F6E\u3002"),e(),s(),e()()(),t(80,"div",24)(81,"nz-code-box",31),i(82,"nz-demo-tree-select-multiple",26),t(83,"div",27),p(),t(84,"p"),n(85,"\u591A\u9009\u7684\u6811\u9009\u62E9\uFF0C\u4F8B\u5B50\u4E2D\u901A\u8FC7 "),t(86,"code"),n(87,"nzMaxTagCount"),e(),n(88," \u9650\u5236\u6700\u591A\u663E\u793A3\u4E2A\u9009\u9879\u3002"),e(),s(),e()(),t(89,"nz-code-box",32),i(90,"nz-demo-tree-select-checkable",26),t(91,"div",27),p(),t(92,"p"),n(93,"\u4F7F\u7528\u52FE\u9009\u6846\u5B9E\u73B0\u591A\u9009\u529F\u80FD\u3002"),e(),s(),e()(),t(94,"nz-code-box",33),i(95,"nz-demo-tree-select-no-data",26),t(96,"div",27),p(),t(97,"p"),n(98,"\u4F7F\u7528 "),t(99,"code"),n(100,"nzNotFoundContent"),e(),n(101," \u81EA\u5B9A\u4E49\u7A7A\u6570\u636E\u72B6\u6001"),e(),s(),e()(),t(102,"nz-code-box",34),i(103,"nz-demo-tree-select-status",26),t(104,"div",27),p(),t(105,"p"),n(106,"\u4F7F\u7528 "),t(107,"code"),n(108,"nzStatus"),e(),n(109," \u4E3A "),t(110,"code"),n(111,"TreeSelect"),e(),n(112," \u6DFB\u52A0\u72B6\u6001\uFF0C\u53EF\u9009 "),t(113,"code"),n(114,"error"),e(),n(115," \u6216\u8005 "),t(116,"code"),n(117,"warning"),e(),n(118,"\u3002"),e(),s(),e()()()(),t(119,"section",35),p(),t(120,"h2",36)(121,"span"),n(122,"API"),e(),t(123,"a",37),n(124,"#"),e()(),t(125,"h3",38)(126,"span"),n(127,"nz-tree-select"),e(),t(128,"label",39),n(129,"component"),e(),t(130,"a",40),n(131,"#"),e()(),t(132,"table")(133,"thead")(134,"tr")(135,"th"),n(136,"\u53C2\u6570"),e(),t(137,"th"),n(138,"\u8BF4\u660E"),e(),t(139,"th"),n(140,"\u7C7B\u578B"),e(),t(141,"th"),n(142,"\u9ED8\u8BA4\u503C"),e(),t(143,"th"),n(144,"\u5168\u5C40\u914D\u7F6E"),e()()(),t(145,"tbody")(146,"tr")(147,"td")(148,"code"),n(149,"[nzId]"),e()(),t(150,"td"),n(151,"\u7EC4\u4EF6\u5185\u90E8 input \u7684 id \u503C"),e(),t(152,"td")(153,"code"),n(154,"string"),e()(),t(155,"td"),n(156,"-"),e(),i(157,"td"),e(),t(158,"tr")(159,"td")(160,"code"),n(161,"[nzAllowClear]"),e()(),t(162,"td"),n(163,"\u663E\u793A\u6E05\u9664\u6309\u94AE"),e(),t(164,"td")(165,"code"),n(166,"boolean"),e()(),t(167,"td")(168,"code"),n(169,"false"),e()(),i(170,"td"),e(),t(171,"tr")(172,"td")(173,"code"),n(174,"[nzPlaceHolder]"),e()(),t(175,"td"),n(176,"\u9009\u62E9\u6846\u9ED8\u8BA4\u6587\u5B57"),e(),t(177,"td")(178,"code"),n(179,"string"),e()(),t(180,"td"),n(181,"-"),e(),i(182,"td"),e(),t(183,"tr")(184,"td")(185,"code"),n(186,"[nzPlacement]"),e()(),t(187,"td"),n(188,"\u9009\u62E9\u6846\u5F39\u51FA\u7684\u4F4D\u7F6E"),e(),t(189,"td")(190,"code"),n(191,"bottomLeft"),e(),t(192,"code"),n(193,"bottomRight"),e(),t(194,"code"),n(195,"topLeft"),e(),t(196,"code"),n(197,"topRight"),e()(),t(198,"td"),n(199,"bottomLeft"),e(),i(200,"td"),e(),t(201,"tr")(202,"td")(203,"code"),n(204,"[nzDisabled]"),e()(),t(205,"td"),n(206,"\u7981\u7528\u9009\u62E9\u5668"),e(),t(207,"td")(208,"code"),n(209,"boolean"),e()(),t(210,"td")(211,"code"),n(212,"false"),e()(),i(213,"td"),e(),t(214,"tr")(215,"td")(216,"code"),n(217,"[nzShowIcon]"),e()(),t(218,"td"),n(219,"\u662F\u5426\u5C55\u793A TreeNode title \u524D\u7684\u56FE\u6807\uFF0C\u6CA1\u6709\u9ED8\u8BA4\u6837\u5F0F"),e(),t(220,"td")(221,"code"),n(222,"boolean"),e()(),t(223,"td")(224,"code"),n(225,"false"),e()(),t(226,"td"),n(227,"\u2705"),e()(),t(228,"tr")(229,"td")(230,"code"),n(231,"[nzShowSearch]"),e()(),t(232,"td"),n(233,"\u663E\u793A\u641C\u7D22\u6846"),e(),t(234,"td")(235,"code"),n(236,"boolean"),e()(),t(237,"td")(238,"code"),n(239,"false"),e()(),i(240,"td"),e(),t(241,"tr")(242,"td")(243,"code"),n(244,"[nzNotFoundContent]"),e()(),t(245,"td"),n(246,"\u5F53\u4E0B\u62C9\u5217\u8868\u4E3A\u7A7A\u65F6\u663E\u793A\u7684\u5185\u5BB9"),e(),t(247,"td")(248,"code"),n(249,"'string' | 'TemplateRef<void>'"),e()(),t(250,"td"),n(251,"-"),e(),i(252,"td"),e(),t(253,"tr")(254,"td")(255,"code"),n(256,"[nzDropdownMatchSelectWidth]"),e()(),t(257,"td"),n(258,"\u4E0B\u62C9\u83DC\u5355\u548C\u9009\u62E9\u5668\u540C\u5BBD"),e(),t(259,"td")(260,"code"),n(261,"boolean"),e()(),t(262,"td")(263,"code"),n(264,"true"),e()(),t(265,"td"),n(266,"\u2705"),e()(),t(267,"tr")(268,"td")(269,"code"),n(270,"[nzDropdownStyle]"),e()(),t(271,"td"),n(272,"\u4E0B\u62C9\u83DC\u5355\u7684\u6837\u5F0F"),e(),t(273,"td")(274,"code"),n(275,"{ [key: string]: string; }"),e()(),t(276,"td"),n(277,"-"),e(),i(278,"td"),e(),t(279,"tr")(280,"td")(281,"code"),n(282,"[nzDropdownClassName]"),e()(),t(283,"td"),n(284,"\u4E0B\u62C9\u83DC\u5355\u7684 className \u5C5E\u6027"),e(),t(285,"td")(286,"code"),n(287,"string"),e()(),t(288,"td"),n(289,"-"),e(),i(290,"td"),e(),t(291,"tr")(292,"td")(293,"code"),n(294,"[nzMultiple]"),e()(),t(295,"td"),n(296,"\u652F\u6301\u591A\u9009\uFF08\u5F53\u8BBE\u7F6E nzCheckable \u65F6\u81EA\u52A8\u53D8\u4E3A true\uFF09"),e(),t(297,"td")(298,"code"),n(299,"boolean"),e()(),t(300,"td")(301,"code"),n(302,"false"),e()(),i(303,"td"),e(),t(304,"tr")(305,"td")(306,"code"),n(307,"[nzHideUnMatched]"),e()(),t(308,"td"),n(309,"\u641C\u7D22\u9690\u85CF\u672A\u5339\u914D\u7684\u8282\u70B9"),e(),t(310,"td")(311,"code"),n(312,"boolean"),e()(),t(313,"td")(314,"code"),n(315,"false"),e()(),t(316,"td"),n(317,"\u2705"),e()(),t(318,"tr")(319,"td")(320,"code"),n(321,"[nzSize]"),e()(),t(322,"td"),n(323,"\u9009\u62E9\u6846\u5927\u5C0F"),e(),t(324,"td")(325,"code"),n(326,"'large' | 'small' | 'default'"),e()(),t(327,"td")(328,"code"),n(329,"'default'"),e()(),t(330,"td"),n(331,"\u2705"),e()(),t(332,"tr")(333,"td")(334,"code"),n(335,"[nzStatus]"),e()(),t(336,"td"),n(337,"\u8BBE\u7F6E\u6821\u9A8C\u72B6\u6001"),e(),t(338,"td")(339,"code"),n(340,"'error' | 'warning'"),e()(),t(341,"td"),n(342,"-"),e(),i(343,"td"),e(),t(344,"tr")(345,"td")(346,"code"),n(347,"[nzCheckable]"),e()(),t(348,"td"),n(349,"\u8282\u70B9\u524D\u6DFB\u52A0 Checkbox \u590D\u9009\u6846"),e(),t(350,"td")(351,"code"),n(352,"boolean"),e()(),t(353,"td")(354,"code"),n(355,"false"),e()(),i(356,"td"),e(),t(357,"tr")(358,"td")(359,"code"),n(360,"[nzCheckStrictly]"),e()(),t(361,"td"),n(362,"checkable \u72B6\u6001\u4E0B\u8282\u70B9\u9009\u62E9\u5B8C\u5168\u53D7\u63A7\uFF08\u7236\u5B50\u8282\u70B9\u9009\u4E2D\u72B6\u6001\u4E0D\u518D\u5173\u8054\uFF09"),e(),t(363,"td")(364,"code"),n(365,"boolean"),e()(),t(366,"td")(367,"code"),n(368,"false"),e()(),i(369,"td"),e(),t(370,"tr")(371,"td")(372,"code"),n(373,"[nzShowExpand]"),e()(),t(374,"td"),n(375,"\u8282\u70B9\u524D\u6DFB\u52A0\u5C55\u5F00\u56FE\u6807"),e(),t(376,"td")(377,"code"),n(378,"boolean"),e()(),t(379,"td")(380,"code"),n(381,"true"),e()(),i(382,"td"),e(),t(383,"tr")(384,"td")(385,"code"),n(386,"[nzShowLine]"),e()(),t(387,"td"),n(388,"\u662F\u5426\u5C55\u793A\u8FDE\u63A5\u7EBF"),e(),t(389,"td")(390,"code"),n(391,"boolean"),e()(),t(392,"td")(393,"code"),n(394,"false"),e()(),i(395,"td"),e(),t(396,"tr")(397,"td")(398,"code"),n(399,"[nzAsyncData]"),e()(),t(400,"td"),n(401,"\u662F\u5426\u5F02\u6B65\u52A0\u8F7D(\u663E\u793A\u52A0\u8F7D\u72B6\u6001)"),e(),t(402,"td")(403,"code"),n(404,"boolean"),e()(),t(405,"td")(406,"code"),n(407,"false"),e()(),i(408,"td"),e(),t(409,"tr")(410,"td")(411,"code"),n(412,"[nzNodes]"),e()(),t(413,"td"),n(414,"treeNodes \u6570\u636E"),e(),t(415,"td")(416,"code"),n(417,"NzTreeNodeOptions[]"),e()(),t(418,"td")(419,"code"),n(420,"[]"),e()(),i(421,"td"),e(),t(422,"tr")(423,"td")(424,"code"),n(425,"[nzDefaultExpandAll]"),e()(),t(426,"td"),n(427,"\u9ED8\u8BA4\u5C55\u5F00\u6240\u6709\u6811\u8282\u70B9"),e(),t(428,"td")(429,"code"),n(430,"boolean"),e()(),t(431,"td")(432,"code"),n(433,"false"),e()(),i(434,"td"),e(),t(435,"tr")(436,"td")(437,"code"),n(438,"[nzExpandedKeys]"),e()(),t(439,"td"),n(440,"\u9ED8\u8BA4\u5C55\u5F00\u6307\u5B9A\u7684\u6811\u8282\u70B9"),e(),t(441,"td")(442,"code"),n(443,"string[]"),e()(),t(444,"td"),n(445,"-"),e(),i(446,"td"),e(),t(447,"tr")(448,"td")(449,"code"),n(450,"[nzDisplayWith]"),e()(),t(451,"td"),n(452,"\u5982\u4F55\u5728\u8F93\u5165\u6846\u663E\u793A\u6240\u9009\u7684\u8282\u70B9\u503C\u7684\u65B9\u6CD5"),e(),t(453,"td")(454,"code"),n(455,"(node: NzTreeNode) => string"),e()(),t(456,"td")(457,"code"),n(458,"(node: NzTreeNode) => node.title"),e()(),i(459,"td"),e(),t(460,"tr")(461,"td")(462,"code"),n(463,"[nzMaxTagCount]"),e()(),t(464,"td"),n(465,"\u6700\u591A\u663E\u793A\u591A\u5C11\u4E2A tag"),e(),t(466,"td"),n(467,"number"),e(),t(468,"td"),n(469,"-"),e(),i(470,"td"),e(),t(471,"tr")(472,"td")(473,"code"),n(474,"[nzMaxTagPlaceholder]"),e()(),t(475,"td"),n(476,"\u9690\u85CF tag \u65F6\u663E\u793A\u7684\u5185\u5BB9"),e(),t(477,"td"),n(478,"TemplateRef<{ $implicit: NzTreeNode[] }>"),e(),t(479,"td"),n(480,"-"),e(),i(481,"td"),e(),t(482,"tr")(483,"td")(484,"code"),n(485,"[nzTreeTemplate]"),e()(),t(486,"td"),n(487,"\u81EA\u5B9A\u4E49\u8282\u70B9"),e(),t(488,"td")(489,"code"),n(490,"TemplateRef<{ $implicit: NzTreeNode }>"),e()(),t(491,"td"),n(492,"-"),e(),i(493,"td"),e(),t(494,"tr")(495,"td")(496,"code"),n(497,"[nzVirtualHeight]"),e()(),t(498,"td"),n(499,"\u865A\u62DF\u6EDA\u52A8\u7684\u603B\u9AD8\u5EA6"),e(),t(500,"td")(501,"code"),n(502,"string"),e()(),t(503,"td")(504,"code"),n(505,"-"),e()(),i(506,"td"),e(),t(507,"tr")(508,"td")(509,"code"),n(510,"[nzVirtualItemSize]"),e()(),t(511,"td"),n(512,"\u865A\u62DF\u6EDA\u52A8\u65F6\u6BCF\u4E00\u5217\u7684\u9AD8\u5EA6\uFF0C\u4E0E "),t(513,"a",41),n(514,"cdk itemSize"),e(),n(515," \u76F8\u540C"),e(),t(516,"td")(517,"code"),n(518,"number"),e()(),t(519,"td")(520,"code"),n(521,"28"),e()(),i(522,"td"),e(),t(523,"tr")(524,"td")(525,"code"),n(526,"[nzVirtualMaxBufferPx]"),e()(),t(527,"td"),n(528,"\u7F13\u51B2\u533A\u6700\u5927\u50CF\u7D20\u9AD8\u5EA6\uFF0C\u4E0E "),t(529,"a",41),n(530,"cdk maxBufferPx"),e(),n(531," \u76F8\u540C"),e(),t(532,"td")(533,"code"),n(534,"number"),e()(),t(535,"td")(536,"code"),n(537,"500"),e()(),i(538,"td"),e(),t(539,"tr")(540,"td")(541,"code"),n(542,"[nzVirtualMinBufferPx]"),e()(),t(543,"td"),n(544,"\u7F13\u51B2\u533A\u6700\u5C0F\u50CF\u7D20\u9AD8\u5EA6\uFF0C\u4F4E\u4E8E\u8BE5\u503C\u65F6\u5C06\u52A0\u8F7D\u65B0\u7ED3\u6784\uFF0C\u4E0E "),t(545,"a",41),n(546,"cdk minBufferPx"),e(),n(547," \u76F8\u540C"),e(),t(548,"td")(549,"code"),n(550,"number"),e()(),t(551,"td")(552,"code"),n(553,"28"),e()(),i(554,"td"),e(),t(555,"tr")(556,"td")(557,"code"),n(558,"[nzBackdrop]"),e()(),t(559,"td"),n(560,"\u6D6E\u5C42\u662F\u5426\u5E94\u5E26\u6709\u80CC\u666F\u677F"),e(),t(561,"td")(562,"code"),n(563,"boolean"),e()(),t(564,"td")(565,"code"),n(566,"false"),e()(),i(567,"td"),e(),t(568,"tr")(569,"td")(570,"code"),n(571,"(nzExpandChange)"),e()(),t(572,"td"),n(573,"\u70B9\u51FB\u5C55\u5F00\u6811\u8282\u70B9\u56FE\u6807\u8C03\u7528"),e(),t(574,"td")(575,"code"),n(576,"EventEmitter<NzFormatEmitEvent>"),e()(),t(577,"td"),n(578,"-"),e(),i(579,"td"),e()()(),t(580,"h4",42)(581,"span"),n(582,"\u65B9\u6CD5"),e(),t(583,"a",43),n(584,"#"),e()(),t(585,"table")(586,"thead")(587,"tr")(588,"th"),n(589,"\u65B9\u6CD5\u540D"),e(),t(590,"th"),n(591,"\u8BF4\u660E"),e(),t(592,"th"),n(593,"\u8FD4\u56DE\u503C"),e()()(),t(594,"tbody")(595,"tr")(596,"td"),n(597,"getTreeNodes"),e(),t(598,"td"),n(599,"\u83B7\u53D6\u7EC4\u4EF6 NzTreeNode \u8282\u70B9"),e(),t(600,"td")(601,"code"),n(602,"NzTreeNode[]"),e()()(),t(603,"tr")(604,"td"),n(605,"getTreeNodeByKey"),e(),t(606,"td"),n(607,"\u6309 key \u83B7\u53D6 NzTreeNode \u8282\u70B9"),e(),t(608,"td")(609,"code"),n(610,"NzTreeNode"),e()()(),t(611,"tr")(612,"td"),n(613,"getCheckedNodeList"),e(),t(614,"td"),n(615,"\u83B7\u53D6\u7EC4\u4EF6 checkbox \u88AB\u70B9\u51FB\u9009\u4E2D\u7684\u8282\u70B9"),e(),t(616,"td")(617,"code"),n(618,"NzTreeNode[]"),e()()(),t(619,"tr")(620,"td"),n(621,"getSelectedNodeList"),e(),t(622,"td"),n(623,"\u83B7\u53D6\u7EC4\u4EF6\u88AB\u9009\u4E2D\u7684\u8282\u70B9"),e(),t(624,"td")(625,"code"),n(626,"NzTreeNode[]"),e()()(),t(627,"tr")(628,"td"),n(629,"getHalfCheckedNodeList"),e(),t(630,"td"),n(631,"\u83B7\u53D6\u7EC4\u4EF6\u534A\u9009\u72B6\u6001\u8282\u70B9"),e(),t(632,"td")(633,"code"),n(634,"NzTreeNode[]"),e()()(),t(635,"tr")(636,"td"),n(637,"getExpandedNodeList"),e(),t(638,"td"),n(639,"\u83B7\u53D6\u7EC4\u4EF6\u5C55\u5F00\u72B6\u6001\u8282\u70B9"),e(),t(640,"td")(641,"code"),n(642,"NzTreeNode[]"),e()()(),t(643,"tr")(644,"td"),n(645,"getMatchedNodeList"),e(),t(646,"td"),n(647,"\u83B7\u53D6\u7EC4\u641C\u7D22\u5339\u914D\u5230\u7684\u8282\u70B9"),e(),t(648,"td")(649,"code"),n(650,"NzTreeNode[]"),e()()()()(),s(),e()()),l&2&&(a(),r("nzOffsetTop",16),a(),r("nzAffix",!1),a(50),r("nzGutter",16),a(),r("nzXl",12)("nzSpan",24),a(),r("nzId","components-tree-select-demo-basic")("nzLink","components-tree-select-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-select/demo/basic.md"),a(5),r("nzId","components-tree-select-demo-async")("nzLink","components-tree-select-demo-async")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-select/demo/async.md"),a(5),r("nzId","components-tree-select-demo-virtual-scroll")("nzLink","components-tree-select-demo-virtual-scroll")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-select/demo/virtual-scroll.md"),a(8),r("nzId","components-tree-select-demo-placement")("nzLink","components-tree-select-demo-placement")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-select/demo/placement.md"),a(8),r("nzXl",12)("nzSpan",24),a(),r("nzId","components-tree-select-demo-multiple")("nzLink","components-tree-select-demo-multiple")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-select/demo/multiple.md"),a(8),r("nzId","components-tree-select-demo-checkable")("nzLink","components-tree-select-demo-checkable")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-select/demo/checkable.md"),a(5),r("nzId","components-tree-select-demo-no-data")("nzLink","components-tree-select-demo-no-data")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-select/demo/no-data.md"),a(8),r("nzId","components-tree-select-demo-status")("nzLink","components-tree-select-demo-status")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-select/demo/status.md"))},dependencies:[U,B,K,Q,Z,W,V,G,O,j,q,Y,J,$,ee,te,ne],encapsulation:2})}}return o})();var Ee=(()=>{class o{constructor(){this.expanded=!1}goLink(m){window&&(window.location.hash=m)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(m=>m.expandCode(this.expanded))}static{this.\u0275fac=function(l){return new(l||o)}}static{this.\u0275cmp=z({type:o,selectors:[["nz-demo-tree-select"]],viewQuery:function(l,d){if(l&1&&I(B,5),l&2){let c;L(c=P())&&(d.codeBoxes=c)}},decls:658,vars:39,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-tree-select-demo-basic","nzTitle","Basic"],["nzHref","#components-tree-select-demo-multiple","nzTitle","Multiple Selection"],["nzHref","#components-tree-select-demo-async","nzTitle","Load data asynchronously"],["nzHref","#components-tree-select-demo-checkable","nzTitle","Checkable"],["nzHref","#components-tree-select-demo-virtual-scroll","nzTitle","Virtual Scroll"],["nzHref","#components-tree-select-demo-no-data","nzTitle","Custom empty state"],["nzHref","#components-tree-select-demo-placement","nzTitle","Placement"],["nzHref","#components-tree-select-demo-status","nzTitle","Status"],["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/tree-select/doc/index.en-US.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nzType","edit"],["id","when-to-use"],["onclick","window.location.hash = 'when-to-use'",1,"anchor"],[1,"language-ts"],[1,"token","keyword"],[1,"token","punctuation"],[1,"token","string"],["nz-icon","","nzType","appstore","nz-tooltip","","nzTooltipTitle","Expand All Code",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzXl","nzSpan"],["nzTitle","Basic","nzSelector","nz-demo-tree-select-basic","nzGenerateCommand","ng g ng-zorro-antd:tree-select-basic <name>","nzComponentName","NzDemoTreeSelectBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","Load data asynchronously","nzSelector","nz-demo-tree-select-async","nzGenerateCommand","ng g ng-zorro-antd:tree-select-async <name>","nzComponentName","NzDemoTreeSelectAsyncComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Virtual Scroll","nzSelector","nz-demo-tree-select-virtual-scroll","nzGenerateCommand","ng g ng-zorro-antd:tree-select-virtual-scroll <name>","nzComponentName","NzDemoTreeSelectVirtualScrollComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Placement","nzSelector","nz-demo-tree-select-placement","nzGenerateCommand","ng g ng-zorro-antd:tree-select-placement <name>","nzComponentName","NzDemoTreeSelectPlacementComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Multiple Selection","nzSelector","nz-demo-tree-select-multiple","nzGenerateCommand","ng g ng-zorro-antd:tree-select-multiple <name>","nzComponentName","NzDemoTreeSelectMultipleComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Checkable","nzSelector","nz-demo-tree-select-checkable","nzGenerateCommand","ng g ng-zorro-antd:tree-select-checkable <name>","nzComponentName","NzDemoTreeSelectCheckableComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Custom empty state","nzSelector","nz-demo-tree-select-no-data","nzGenerateCommand","ng g ng-zorro-antd:tree-select-no-data <name>","nzComponentName","NzDemoTreeSelectNoDataComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Status","nzSelector","nz-demo-tree-select-status","nzGenerateCommand","ng g ng-zorro-antd:tree-select-status <name>","nzComponentName","NzDemoTreeSelectStatusComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-tree-select"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-tree-select'",1,"anchor"],["href","https://material.angular.io/cdk/scrolling/api","target","_blank","rel","noopener"],["id","methods"],["onclick","window.location.hash = 'methods'",1,"anchor"]],template:function(l,d){l&1&&(t(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),E("nzClick",function(u){return d.goLink(u)}),i(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7)(9,"nz-link",8)(10,"nz-link",9)(11,"nz-link",10),e()(),t(12,"section",11)(13,"h1"),n(14,"TreeSelect"),i(15,"span",12)(16,"span",13),t(17,"a",14),i(18,"nz-icon",15),e()(),t(19,"section",11),p(),t(20,"p"),n(21,"Tree selection control."),e(),t(22,"h2",16)(23,"span"),n(24,"When To Use"),e(),t(25,"a",17),n(26,"#"),e()(),t(27,"p")(28,"code"),n(29,"TreeSelect"),e(),n(30," is similar to "),t(31,"code"),n(32,"Select"),e(),n(33,`, but the values are provided in a tree like structure.
Any data whose entries are defined in a hierarchical manner is fit to use this control. Examples of such case may include a corporate hierarchy, a directory structure, and so on.`),e(),t(34,"pre",18)(35,"code")(36,"span",19),n(37,"import"),e(),n(38," "),t(39,"span",20),n(40,"{"),e(),n(41," NzTreeSelectModule "),t(42,"span",20),n(43,"}"),e(),n(44," "),t(45,"span",19),n(46,"from"),e(),n(47," "),t(48,"span",21),n(49,"'ng-zorro-antd/tree-select'"),e(),t(50,"span",20),n(51,";"),e()()(),s(),e(),t(52,"h2")(53,"span"),n(54,"Examples"),e(),t(55,"span",22),E("click",function(){return d.expandAllCode()}),e()()(),t(56,"div",23)(57,"div",24)(58,"nz-code-box",25),i(59,"nz-demo-tree-select-basic",26),t(60,"div",27),p(),t(61,"p"),n(62,"The most basic usage."),e(),s(),e()(),t(63,"nz-code-box",28),i(64,"nz-demo-tree-select-async",26),t(65,"div",27),p(),t(66,"p"),n(67,"To load data asynchronously when click to expand a treeNode, loading state keeps until excute addChildren()."),e(),s(),e()(),t(68,"nz-code-box",29),i(69,"nz-demo-tree-select-virtual-scroll",26),t(70,"div",27),p(),t(71,"p"),n(72,"Set "),t(73,"code"),n(74,"nzVirtualHeight"),e(),n(75," to enable virtual scroll."),e(),s(),e()(),t(76,"nz-code-box",30),i(77,"nz-demo-tree-select-placement",26),t(78,"div",27),p(),t(79,"p"),n(80,"You can manually specify the position of the popup via "),t(81,"code"),n(82,"nzPlacement"),e(),n(83,"."),e(),s(),e()()(),t(84,"div",24)(85,"nz-code-box",31),i(86,"nz-demo-tree-select-multiple",26),t(87,"div",27),p(),t(88,"p"),n(89,"Multiple selection usage, max 3 option will display at the same time by "),t(90,"code"),n(91,"nzMaxTagCount"),e(),n(92,"."),e(),s(),e()(),t(93,"nz-code-box",32),i(94,"nz-demo-tree-select-checkable",26),t(95,"div",27),p(),t(96,"p"),n(97,"Multiple and checkable."),e(),s(),e()(),t(98,"nz-code-box",33),i(99,"nz-demo-tree-select-no-data",26),t(100,"div",27),p(),t(101,"p"),n(102,"Use "),t(103,"code"),n(104,"nzNotFoundContent"),e(),n(105," to customize empty data style"),e(),s(),e()(),t(106,"nz-code-box",34),i(107,"nz-demo-tree-select-status",26),t(108,"div",27),p(),t(109,"p"),n(110,"Add status to TreeSelect with "),t(111,"code"),n(112,"nzStatus"),e(),n(113,", which could be "),t(114,"code"),n(115,"error"),e(),n(116," or "),t(117,"code"),n(118,"warning"),e(),n(119,"."),e(),s(),e()()()(),t(120,"section",35),p(),t(121,"h2",36)(122,"span"),n(123,"API"),e(),t(124,"a",37),n(125,"#"),e()(),t(126,"h3",38)(127,"span"),n(128,"nz-tree-select"),e(),t(129,"label",39),n(130,"component"),e(),t(131,"a",40),n(132,"#"),e()(),t(133,"table")(134,"thead")(135,"tr")(136,"th"),n(137,"Property"),e(),t(138,"th"),n(139,"Description"),e(),t(140,"th"),n(141,"Type"),e(),t(142,"th"),n(143,"Default"),e(),t(144,"th"),n(145,"Global Config"),e()()(),t(146,"tbody")(147,"tr")(148,"td")(149,"code"),n(150,"[nzId]"),e()(),t(151,"td"),n(152,"input id attribute inside the component"),e(),t(153,"td")(154,"code"),n(155,"string"),e()(),t(156,"td"),n(157,"-"),e(),i(158,"td"),e(),t(159,"tr")(160,"td")(161,"code"),n(162,"[nzAllowClear]"),e()(),t(163,"td"),n(164,"Whether allow clear"),e(),t(165,"td")(166,"code"),n(167,"boolean"),e()(),t(168,"td")(169,"code"),n(170,"false"),e()(),i(171,"td"),e(),t(172,"tr")(173,"td")(174,"code"),n(175,"[nzPlaceHolder]"),e()(),t(176,"td"),n(177,"Placeholder of the select input"),e(),t(178,"td")(179,"code"),n(180,"string"),e()(),t(181,"td"),n(182,"-"),e(),i(183,"td"),e(),t(184,"tr")(185,"td")(186,"code"),n(187,"[nzPlacement]"),e()(),t(188,"td"),n(189,"The position where the selection box pops up"),e(),t(190,"td")(191,"code"),n(192,"bottomLeft"),e(),t(193,"code"),n(194,"bottomRight"),e(),t(195,"code"),n(196,"topLeft"),e(),t(197,"code"),n(198,"topRight"),e()(),t(199,"td"),n(200,"bottomLeft"),e(),i(201,"td"),e(),t(202,"tr")(203,"td")(204,"code"),n(205,"[nzDisabled]"),e()(),t(206,"td"),n(207,"Disabled or not"),e(),t(208,"td")(209,"code"),n(210,"boolean"),e()(),t(211,"td")(212,"code"),n(213,"false"),e()(),i(214,"td"),e(),t(215,"tr")(216,"td")(217,"code"),n(218,"[nzShowIcon]"),e()(),t(219,"td"),n(220,"Shows the icon before a TreeNode's title. There is no default style"),e(),t(221,"td")(222,"code"),n(223,"boolean"),e()(),t(224,"td")(225,"code"),n(226,"false"),e()(),i(227,"td"),e(),t(228,"tr")(229,"td")(230,"code"),n(231,"[nzShowSearch]"),e()(),t(232,"td"),n(233,"Whether to display a search input in the dropdown menu(valid only in the single mode)"),e(),t(234,"td")(235,"code"),n(236,"boolean"),e()(),t(237,"td")(238,"code"),n(239,"false"),e()(),t(240,"td"),n(241,"\u2705"),e()(),t(242,"tr")(243,"td")(244,"code"),n(245,"[nzNotFoundContent]"),e()(),t(246,"td"),n(247,"Specify content to show when no result matches."),e(),t(248,"td")(249,"code"),n(250,"'string' | 'TemplateRef<void>'"),e()(),t(251,"td"),n(252,"-"),e(),i(253,"td"),e(),t(254,"tr")(255,"td")(256,"code"),n(257,"[nzDropdownMatchSelectWidth]"),e()(),t(258,"td"),n(259,"Determine whether the dropdown menu and the select input are the same width"),e(),t(260,"td")(261,"code"),n(262,"boolean"),e()(),t(263,"td")(264,"code"),n(265,"true"),e()(),t(266,"td"),n(267,"\u2705"),e()(),t(268,"tr")(269,"td")(270,"code"),n(271,"[nzDropdownStyle]"),e()(),t(272,"td"),n(273,"To set the style of the dropdown menu"),e(),t(274,"td")(275,"code"),n(276,"object"),e()(),t(277,"td"),n(278,"-"),e(),i(279,"td"),e(),t(280,"tr")(281,"td")(282,"code"),n(283,"[nzDropdownClassName]"),e()(),t(284,"td"),n(285,"classname of dropdown menu"),e(),t(286,"td")(287,"code"),n(288,"string"),e()(),t(289,"td"),n(290,"-"),e(),i(291,"td"),e(),t(292,"tr")(293,"td")(294,"code"),n(295,"[nzMultiple]"),e()(),t(296,"td"),n(297,"Support multiple or not, will be "),t(298,"code"),n(299,"true"),e(),n(300," when enable "),t(301,"code"),n(302,"nzCheckable"),e(),n(303,"."),e(),t(304,"td")(305,"code"),n(306,"boolean"),e()(),t(307,"td")(308,"code"),n(309,"false"),e()(),i(310,"td"),e(),t(311,"tr")(312,"td")(313,"code"),n(314,"[nzHideUnMatched]"),e()(),t(315,"td"),n(316,"Hide unmatched nodes while searching"),e(),t(317,"td")(318,"code"),n(319,"boolean"),e()(),t(320,"td")(321,"code"),n(322,"false"),e()(),t(323,"td"),n(324,"\u2705"),e()(),t(325,"tr")(326,"td")(327,"code"),n(328,"[nzSize]"),e()(),t(329,"td"),n(330,"To set the size of the select input"),e(),t(331,"td")(332,"code"),n(333,"'large' | 'small' | 'default'"),e()(),t(334,"td")(335,"code"),n(336,"'default'"),e()(),t(337,"td"),n(338,"\u2705"),e()(),t(339,"tr")(340,"td")(341,"code"),n(342,"[nzStatus]"),e()(),t(343,"td"),n(344,"Set validation status"),e(),t(345,"td")(346,"code"),n(347,"'error' | 'warning'"),e()(),t(348,"td"),n(349,"-"),e(),i(350,"td"),e(),t(351,"tr")(352,"td")(353,"code"),n(354,"[nzCheckable]"),e()(),t(355,"td"),n(356,"Whether to show checkbox on the treeNodes"),e(),t(357,"td")(358,"code"),n(359,"boolean"),e()(),t(360,"td")(361,"code"),n(362,"false"),e()(),i(363,"td"),e(),t(364,"tr")(365,"td")(366,"code"),n(367,"[nzCheckStrictly]"),e()(),t(368,"td"),n(369,"Check treeNode precisely; parent treeNode and children treeNodes are not associated"),e(),t(370,"td")(371,"code"),n(372,"boolean"),e()(),t(373,"td")(374,"code"),n(375,"false"),e()(),i(376,"td"),e(),t(377,"tr")(378,"td")(379,"code"),n(380,"[nzShowExpand]"),e()(),t(381,"td"),n(382,"Show a Expand Icon before the treeNodes"),e(),t(383,"td")(384,"code"),n(385,"boolean"),e()(),t(386,"td")(387,"code"),n(388,"true"),e()(),i(389,"td"),e(),t(390,"tr")(391,"td")(392,"code"),n(393,"[nzShowLine]"),e()(),t(394,"td"),n(395,"Shows a connecting line"),e(),t(396,"td")(397,"code"),n(398,"boolean"),e()(),t(399,"td")(400,"code"),n(401,"false"),e()(),i(402,"td"),e(),t(403,"tr")(404,"td")(405,"code"),n(406,"[nzAsyncData]"),e()(),t(407,"td"),n(408,"Load data asynchronously (should be used with NzTreeNode.addChildren(...))"),e(),t(409,"td")(410,"code"),n(411,"boolean"),e()(),t(412,"td")(413,"code"),n(414,"false"),e()(),i(415,"td"),e(),t(416,"tr")(417,"td")(418,"code"),n(419,"[nzNodes]"),e()(),t(420,"td"),n(421,"Data of the treeNodes"),e(),t(422,"td")(423,"code"),n(424,"NzTreeNodeOptions[]"),e()(),t(425,"td")(426,"code"),n(427,"[]"),e()(),i(428,"td"),e(),t(429,"tr")(430,"td")(431,"code"),n(432,"[nzDefaultExpandAll]"),e()(),t(433,"td"),n(434,"Whether to expand all treeNodes by default"),e(),t(435,"td")(436,"code"),n(437,"boolean"),e()(),t(438,"td")(439,"code"),n(440,"false"),e()(),i(441,"td"),e(),t(442,"tr")(443,"td")(444,"code"),n(445,"[nzExpandedKeys]"),e()(),t(446,"td"),n(447,"Default expanded treeNodes"),e(),t(448,"td")(449,"code"),n(450,"string[]"),e()(),t(451,"td"),n(452,"-"),e(),i(453,"td"),e(),t(454,"tr")(455,"td")(456,"code"),n(457,"[nzDisplayWith]"),e()(),t(458,"td"),n(459,"How to display the selected node value in the trigger"),e(),t(460,"td")(461,"code"),n(462,"(node: NzTreeNode) => string"),e()(),t(463,"td")(464,"code"),n(465,"(node: NzTreeNode) => node.title"),e()(),i(466,"td"),e(),t(467,"tr")(468,"td")(469,"code"),n(470,"[nzMaxTagCount]"),e()(),t(471,"td"),n(472,"Max tag count to show"),e(),t(473,"td"),n(474,"number"),e(),t(475,"td"),n(476,"-"),e(),i(477,"td"),e(),t(478,"tr")(479,"td")(480,"code"),n(481,"[nzMaxTagPlaceholder]"),e()(),t(482,"td"),n(483,"Placeholder for not showing tags"),e(),t(484,"td"),n(485,"TemplateRef<{ $implicit: NzTreeNode[] }>"),e(),t(486,"td"),n(487,"-"),e(),i(488,"td"),e(),t(489,"tr")(490,"td")(491,"code"),n(492,"[nzTreeTemplate]"),e()(),t(493,"td"),n(494,"Custom Nodes"),e(),t(495,"td")(496,"code"),n(497,"TemplateRef<{ $implicit: NzTreeNode }>"),e()(),t(498,"td"),n(499,"-"),e(),i(500,"td"),e(),t(501,"tr")(502,"td")(503,"code"),n(504,"[nzVirtualHeight]"),e()(),t(505,"td"),n(506,"The height of virtual scroll"),e(),t(507,"td")(508,"code"),n(509,"string"),e()(),t(510,"td")(511,"code"),n(512,"-"),e()(),i(513,"td"),e(),t(514,"tr")(515,"td")(516,"code"),n(517,"[nzVirtualItemSize]"),e()(),t(518,"td"),n(519,"The size of the items in the list, same as "),t(520,"a",41),n(521,"cdk itemSize"),e()(),t(522,"td")(523,"code"),n(524,"number"),e()(),t(525,"td")(526,"code"),n(527,"28"),e()(),i(528,"td"),e(),t(529,"tr")(530,"td")(531,"code"),n(532,"[nzVirtualMaxBufferPx]"),e()(),t(533,"td"),n(534,"The number of pixels worth of buffer to render for when rendering new items, same as "),t(535,"a",41),n(536,"cdk maxBufferPx"),e()(),t(537,"td")(538,"code"),n(539,"number"),e()(),t(540,"td")(541,"code"),n(542,"500"),e()(),i(543,"td"),e(),t(544,"tr")(545,"td")(546,"code"),n(547,"[nzVirtualMinBufferPx]"),e()(),t(548,"td"),n(549,"The minimum amount of buffer rendered beyond the viewport (in pixels),same as "),t(550,"a",41),n(551,"cdk minBufferPx"),e()(),t(552,"td")(553,"code"),n(554,"number"),e()(),t(555,"td")(556,"code"),n(557,"28"),e()(),i(558,"td"),e(),t(559,"tr")(560,"td")(561,"code"),n(562,"[nzBackdrop]"),e()(),t(563,"td"),n(564,"whether or not the overlay should attach a backdrop"),e(),t(565,"td")(566,"code"),n(567,"boolean"),e()(),t(568,"td")(569,"code"),n(570,"false"),e()(),i(571,"td"),e(),t(572,"tr")(573,"td")(574,"code"),n(575,"(nzExpandChange)"),e()(),t(576,"td"),n(577,"Callback function for when a treeNode is expanded or collapsed"),e(),t(578,"td")(579,"code"),n(580,"EventEmitter<NzFormatEmitEvent>"),e()(),t(581,"td"),n(582,"-"),e(),i(583,"td"),e()()(),t(584,"h4",42)(585,"span"),n(586,"Methods"),e(),t(587,"a",43),n(588,"#"),e()(),t(589,"table")(590,"thead")(591,"tr")(592,"th"),n(593,"Property"),e(),t(594,"th"),n(595,"Description"),e(),t(596,"th"),n(597,"Type"),e()()(),t(598,"tbody")(599,"tr")(600,"td"),n(601,"getTreeNodes"),e(),t(602,"td"),n(603,"get all nodes(NzTreeNode)"),e(),t(604,"td")(605,"code"),n(606,"NzTreeNode[]"),e()()(),t(607,"tr")(608,"td"),n(609,"getTreeNodeByKey"),e(),t(610,"td"),n(611,"get NzTreeNode with key"),e(),t(612,"td")(613,"code"),n(614,"NzTreeNode"),e()()(),t(615,"tr")(616,"td"),n(617,"getCheckedNodeList"),e(),t(618,"td"),n(619,"get checked nodes(merged)"),e(),t(620,"td")(621,"code"),n(622,"NzTreeNode[]"),e()()(),t(623,"tr")(624,"td"),n(625,"getSelectedNodeList"),e(),t(626,"td"),n(627,"get selected nodes"),e(),t(628,"td")(629,"code"),n(630,"NzTreeNode[]"),e()()(),t(631,"tr")(632,"td"),n(633,"getHalfCheckedNodeList"),e(),t(634,"td"),n(635,"get half checked nodes"),e(),t(636,"td")(637,"code"),n(638,"NzTreeNode[]"),e()()(),t(639,"tr")(640,"td"),n(641,"getExpandedNodeList"),e(),t(642,"td"),n(643,"get expanded nodes"),e(),t(644,"td")(645,"code"),n(646,"NzTreeNode[]"),e()()(),t(647,"tr")(648,"td"),n(649,"getMatchedNodeList"),e(),t(650,"td"),n(651,"get matched nodes(if "),t(652,"code"),n(653,"nzSearchValue"),e(),n(654," is not null)"),e(),t(655,"td")(656,"code"),n(657,"NzTreeNode[]"),e()()()()(),s(),e()()),l&2&&(a(),r("nzOffsetTop",16),a(),r("nzAffix",!1),a(54),r("nzGutter",16),a(),r("nzXl",12)("nzSpan",24),a(),r("nzId","components-tree-select-demo-basic")("nzLink","components-tree-select-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-select/demo/basic.md"),a(5),r("nzId","components-tree-select-demo-async")("nzLink","components-tree-select-demo-async")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-select/demo/async.md"),a(5),r("nzId","components-tree-select-demo-virtual-scroll")("nzLink","components-tree-select-demo-virtual-scroll")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-select/demo/virtual-scroll.md"),a(8),r("nzId","components-tree-select-demo-placement")("nzLink","components-tree-select-demo-placement")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-select/demo/placement.md"),a(8),r("nzXl",12)("nzSpan",24),a(),r("nzId","components-tree-select-demo-multiple")("nzLink","components-tree-select-demo-multiple")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-select/demo/multiple.md"),a(8),r("nzId","components-tree-select-demo-checkable")("nzLink","components-tree-select-demo-checkable")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-select/demo/checkable.md"),a(5),r("nzId","components-tree-select-demo-no-data")("nzLink","components-tree-select-demo-no-data")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-select/demo/no-data.md"),a(8),r("nzId","components-tree-select-demo-status")("nzLink","components-tree-select-demo-status")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-select/demo/status.md"))},dependencies:[U,B,K,Q,Z,W,V,G,O,j,q,Y,J,$,ee,te,ne],encapsulation:2})}}return o})();var ke=[{path:"en",component:Ee},{path:"zh",component:ze}],Dt=ke;export{Dt as default};