-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathchunk-H5NVIAGT.js
11 lines (11 loc) · 24.6 KB
/
chunk-H5NVIAGT.js
1
2
3
4
5
6
7
8
9
10
11
import{a as ve,b as Te}from"./chunk-A3V74NNI.js";import{c as ge,g as Se,l as he,n as Ne,p as Fe,q as De,s as be}from"./chunk-2PKDPLMQ.js";import{a as Be,b as Ie}from"./chunk-2OO4IQEY.js";import"./chunk-5LPNOGAS.js";import"./chunk-GPMGMT23.js";import{l as ye,n as xe}from"./chunk-MQ6HWH65.js";import"./chunk-OSRM2LOJ.js";import{a as ze,b as Ee}from"./chunk-6INKYGTU.js";import"./chunk-TOQK3HAA.js";import{a as fe,b as Ce}from"./chunk-3Z67SIDE.js";import"./chunk-2XKKXFYY.js";import"./chunk-KLVKRMCU.js";import"./chunk-UQWHPGOE.js";import"./chunk-UYZJPMN6.js";import"./chunk-5MIZTJTE.js";import{g as de,h as se}from"./chunk-YFUEY227.js";import{a as f,c as E}from"./chunk-XRZD46X6.js";import"./chunk-VED23IKS.js";import"./chunk-7IR2ER4N.js";import{a as ue,b as ce}from"./chunk-QEKBGSGF.js";import"./chunk-RJ5JWWBU.js";import"./chunk-O5GFCFR7.js";import{a as ie,b as me,d as re}from"./chunk-56XIMETV.js";import{a as oe}from"./chunk-MM6PISML.js";import"./chunk-AMB2SXIB.js";import{a as C,g as G,h as Z,j as P}from"./chunk-N7GBLZI4.js";import"./chunk-M3GNLX5T.js";import"./chunk-TSUNBK3M.js";import{Ha as h,Hc as pe,Ja as ne,Jc as R,Kc as O,Nc as L,gc as M,qc as ae,ua as te,uc as le}from"./chunk-O3IWK6WU.js";import{Aa as _,Ac as g,Bc as S,Fc as U,Gc as e,Ib as c,Ic as K,Lc as X,Mc as $,Nc as ee,Ob as A,Sc as H,Vb as r,ad as k,hc as t,ic as n,jc as o,nc as w,qc as z,rb as l,sc as J,xa as s,xb as q,ya as u,za as I,zc as x}from"./chunk-NACBYLXS.js";import"./chunk-EQDQRRRY.js";var N=class a{static \u0275fac=function(i){return new(i||a)};static \u0275cmp=c({type:a,selectors:[["nz-demo-empty-basic"]],decls:1,vars:0,template:function(i,p){i&1&&o(0,"nz-empty")},dependencies:[E,f],encapsulation:2})};var ke=["customTpl"],Y=()=>[];function Ae(a,m){if(a&1&&(t(0,"div",6),o(1,"nz-icon",7),t(2,"p"),e(3),n()()),a&2){let i=m.$implicit;l(3),K("Data Not Found in ",i,"")}}var b=class a{constructor(m){this.nzConfigService=m}customTpl;customize=!1;onConfigChange(){this.customize?this.nzConfigService.set("empty",{nzDefaultEmptyContent:this.customTpl}):this.nzConfigService.set("empty",{nzDefaultEmptyContent:void 0})}static \u0275fac=function(i){return new(i||a)(q(te))};static \u0275cmp=c({type:a,selectors:[["nz-demo-empty-config"]],viewQuery:function(i,p){if(i&1&&x(ke,5),i&2){let d;g(d=S())&&(p.customTpl=d.first)}},decls:29,vars:10,consts:[["customTpl",""],[3,"ngModelChange","nzUnCheckedChildren","nzCheckedChildren","ngModel"],[2,"width","200px"],[2,"width","200px",3,"nzShowSearch","nzOptions"],[3,"nzData"],[3,"nzDataSource"],[2,"text-align","center"],["nzType","smile",2,"font-size","20px"]],template:function(i,p){if(i&1){let d=w();t(0,"nz-switch",1),ee("ngModelChange",function(j){return I(d),$(p.customize,j)||(p.customize=j),_(j)}),z("ngModelChange",function(){return I(d),_(p.onConfigChange())}),n(),o(1,"nz-divider"),t(2,"h3"),e(3,"Select"),n(),o(4,"nz-select",2),t(5,"h3"),e(6,"TreeSelect"),n(),o(7,"nz-tree-select",2),t(8,"h3"),e(9,"Cascader"),n(),o(10,"nz-cascader",3),t(11,"h3"),e(12,"Transfer"),n(),o(13,"nz-transfer"),t(14,"h3"),e(15,"Table"),n(),t(16,"nz-table",4)(17,"thead")(18,"tr")(19,"th"),e(20,"Title"),n(),t(21,"th"),e(22,"Age"),n()()(),o(23,"tbody"),n(),t(24,"h3"),e(25,"List"),n(),o(26,"nz-list",5),A(27,Ae,4,1,"ng-template",null,0,k)}i&2&&(r("nzUnCheckedChildren","default")("nzCheckedChildren","customize"),X("ngModel",p.customize),l(10),r("nzShowSearch",!0)("nzOptions",H(7,Y)),l(6),r("nzData",H(8,Y)),l(10),r("nzDataSource",H(9,Y)))},dependencies:[pe,ae,le,Ce,fe,ce,ue,E,ne,h,xe,ye,se,de,Ee,ze,be,Ne,ge,Se,De,he,Fe,Te,ve,Ie,Be],styles:["h3[_ngcontent-%COMP%]{font-size:inherit;margin:16px 0 8px}"]})};function we(a,m){a&1&&(t(0,"span"),e(1," Customize "),t(2,"a",3),e(3,"Description"),n()())}function He(a,m){if(a&1){let i=w();t(0,"button",4),z("click",function(){I(i);let d=J();return _(d.onClick())}),e(1,"Create Now"),n()}}var v=class a{onClick(){console.log("clicked")}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=c({type:a,selectors:[["nz-demo-empty-customize"]],decls:5,vars:2,consts:[["contentTpl",""],["footerTpl",""],["nzNotFoundImage","https://gw.alipayobjects.com/zos/antfincdn/ZHrcdLPrvN/empty.svg",3,"nzNotFoundContent","nzNotFoundFooter"],["href","#API"],["nz-button","","nzType","primary",3,"click"]],template:function(i,p){if(i&1&&(t(0,"nz-empty",2),A(1,we,4,0,"ng-template",null,0,k)(3,He,2,0,"ng-template",null,1,k),n()),i&2){let d=U(2),y=U(4);r("nzNotFoundContent",d)("nzNotFoundFooter",y)}},dependencies:[re,me,ie,oe,E,f],encapsulation:2})};var T=class a{static \u0275fac=function(i){return new(i||a)};static \u0275cmp=c({type:a,selectors:[["nz-demo-empty-description"]],decls:1,vars:1,consts:[[3,"nzNotFoundContent"]],template:function(i,p){i&1&&o(0,"nz-empty",0),i&2&&r("nzNotFoundContent",null)},dependencies:[E,f],encapsulation:2})};var B=class a{static \u0275fac=function(i){return new(i||a)};static \u0275cmp=c({type:a,selectors:[["nz-demo-empty-simple"]],decls:1,vars:0,consts:[["nzNotFoundImage","simple"]],template:function(i,p){i&1&&o(0,"nz-empty",0)},dependencies:[E,f],encapsulation:2})};var Q=class a{expanded=!1;codeBoxes;goLink(m){window&&(window.location.hash=m)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(m=>m.expandCode(this.expanded))}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=c({type:a,selectors:[["nz-demo-empty"]],viewQuery:function(i,p){if(i&1&&x(C,5),i&2){let d;g(d=S())&&(p.codeBoxes=d)}},decls:219,vars:29,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-empty-demo-basic","nzTitle","\u57FA\u672C"],["nzHref","#components-empty-demo-simple","nzTitle","\u9009\u62E9\u56FE\u7247"],["nzHref","#components-empty-demo-customize","nzTitle","\u81EA\u5B9A\u4E49"],["nzHref","#components-empty-demo-config","nzTitle","\u5168\u5C40\u5316\u914D\u7F6E"],["nzHref","#components-empty-demo-description","nzTitle","\u65E0\u63CF\u8FF0"],["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/empty/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"],["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,"nzSpan"],["nzTitle","\u57FA\u672C","nzSelector","nz-demo-empty-basic","nzGenerateCommand","ng g ng-zorro-antd:empty-basic <name>","nzComponentName","NzDemoEmptyBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","\u9009\u62E9\u56FE\u7247","nzSelector","nz-demo-empty-simple","nzGenerateCommand","ng g ng-zorro-antd:empty-simple <name>","nzComponentName","NzDemoEmptySimpleComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u81EA\u5B9A\u4E49","nzSelector","nz-demo-empty-customize","nzGenerateCommand","ng g ng-zorro-antd:empty-customize <name>","nzComponentName","NzDemoEmptyCustomizeComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u5168\u5C40\u5316\u914D\u7F6E","nzSelector","nz-demo-empty-config","nzGenerateCommand","ng g ng-zorro-antd:empty-config <name>","nzComponentName","NzDemoEmptyConfigComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u65E0\u63CF\u8FF0","nzSelector","nz-demo-empty-description","nzGenerateCommand","ng g ng-zorro-antd:empty-description <name>","nzComponentName","NzDemoEmptyDescriptionComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-empty"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-empty'",1,"anchor"],["id","lesscodegreaternz_configless/codegreater"],["onclick","window.location.hash = 'lesscodegreaternz_configless/codegreater'",1,"anchor"],["id","injectiontoken"],["onclick","window.location.hash = 'injectiontoken'",1,"anchor"],["id","\u5168\u5C40\u81EA\u5B9A\u4E49\u7A7A\u7EC4\u4EF6"],["onclick","window.location.hash = '\u5168\u5C40\u81EA\u5B9A\u4E49\u7A7A\u7EC4\u4EF6'",1,"anchor"]],template:function(i,p){i&1&&(t(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),z("nzClick",function(y){return p.goLink(y)}),o(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7),n()(),t(9,"section",8)(10,"h1"),e(11,"Empty"),t(12,"span",9),e(13,"\u7A7A\u72B6\u6001"),n(),o(14,"span",10),t(15,"a",11),o(16,"nz-icon",12),n()(),t(17,"section",8),u(),t(18,"p"),e(19,"\u7A7A\u72B6\u6001\u65F6\u7684\u5C55\u793A\u5360\u4F4D\u56FE\u3002"),n(),t(20,"h2",13)(21,"span"),e(22,"\u4F55\u65F6\u4F7F\u7528"),n(),t(23,"a",14),e(24,"#"),n()(),t(25,"p"),e(26,"\u5F53\u76EE\u524D\u6CA1\u6709\u6570\u636E\u65F6\uFF0C\u7528\u4E8E\u663E\u5F0F\u7684\u7528\u6237\u63D0\u793A\u3002"),n(),t(27,"pre")(28,"code",15)(29,"span",16),e(30,"import"),n(),e(31," "),t(32,"span",17),e(33,"{"),n(),e(34," NzEmptyModule "),t(35,"span",17),e(36,"}"),n(),e(37," "),t(38,"span",16),e(39,"from"),n(),e(40," "),t(41,"span",18),e(42,"'ng-zorro-antd/empty'"),n(),t(43,"span",17),e(44,";"),n(),e(45,`
`),n()(),s(),n(),t(46,"h2")(47,"span"),e(48,"\u4EE3\u7801\u6F14\u793A"),n(),t(49,"nz-icon",19),z("click",function(){return p.expandAllCode()}),n()()(),t(50,"div",20)(51,"div",21)(52,"nz-code-box",22),o(53,"nz-demo-empty-basic",23),t(54,"div",24),u(),t(55,"p"),e(56,"\u7B80\u5355\u7684\u5C55\u793A\u3002"),n(),s(),n()(),t(57,"nz-code-box",25),o(58,"nz-demo-empty-simple",23),t(59,"div",24),u(),t(60,"p"),e(61,"\u53EF\u4EE5\u901A\u8FC7\u8BBE\u7F6E "),t(62,"code"),e(63,"nzNotFoundImage"),n(),e(64," \u4E3A "),t(65,"code"),e(66,"simple"),n(),e(67," \u9009\u62E9\u53E6\u4E00\u79CD\u98CE\u683C\u7684\u56FE\u7247\u3002"),n(),s(),n()(),t(68,"nz-code-box",26),o(69,"nz-demo-empty-customize",23),t(70,"div",24),u(),t(71,"p"),e(72,"\u81EA\u5B9A\u4E49\u56FE\u7247\u3001\u63CF\u8FF0\u3001\u9644\u5C5E\u5185\u5BB9\u3002"),n(),s(),n()(),t(73,"nz-code-box",27),o(74,"nz-demo-empty-config",23),t(75,"div",24),u(),t(76,"p"),e(77,"\u81EA\u5B9A\u4E49\u5168\u5C40\u7EC4\u4EF6\u7684 Empty \u6837\u5F0F\u3002"),n(),s(),n()(),t(78,"nz-code-box",28),o(79,"nz-demo-empty-description",23),t(80,"div",24),u(),t(81,"p"),e(82,"\u65E0\u63CF\u8FF0\u5C55\u793A\u3002"),n(),s(),n()()()(),t(83,"section",29),u(),t(84,"h2",30)(85,"span"),e(86,"API"),n(),t(87,"a",31),e(88,"#"),n()(),t(89,"h3",32)(90,"span"),e(91,"nz-empty"),n(),t(92,"label",33),e(93,"component"),n(),t(94,"a",34),e(95,"#"),n()(),t(96,"table")(97,"thead")(98,"tr")(99,"th"),e(100,"\u53C2\u6570"),n(),t(101,"th"),e(102,"\u8BF4\u660E"),n(),t(103,"th"),e(104,"\u7C7B\u578B"),n(),t(105,"th"),e(106,"\u9ED8\u8BA4\u503C"),n()()(),t(107,"tbody")(108,"tr")(109,"td")(110,"code"),e(111,"[nzNotFoundImage]"),n()(),t(112,"td"),e(113,"\u8BBE\u7F6E\u663E\u793A\u56FE\u7247\uFF0C\u4E3A "),t(114,"code"),e(115,"string"),n(),e(116," \u65F6\u8868\u793A\u81EA\u5B9A\u4E49\u56FE\u7247\u5730\u5740"),n(),t(117,"td")(118,"code"),e(119,"string | TemplateRef<void>"),n()(),t(120,"td"),e(121,"-"),n()(),t(122,"tr")(123,"td")(124,"code"),e(125,"[nzNotFoundContent]"),n()(),t(126,"td"),e(127,"\u81EA\u5B9A\u4E49\u63CF\u8FF0\u5185\u5BB9"),n(),t(128,"td")(129,"code"),e(130,"string | TemplateRef<void> | null"),n()(),t(131,"td"),e(132,"-"),n()(),t(133,"tr")(134,"td")(135,"code"),e(136,"[nzNotFoundFooter]"),n()(),t(137,"td"),e(138,"\u8BBE\u7F6E\u81EA\u5B9A\u4E49 footer"),n(),t(139,"td")(140,"code"),e(141,"string | TemplateRef<void>"),n()(),t(142,"td"),e(143,"-"),n()()()(),t(144,"h3",35)(145,"span")(146,"code"),e(147,"NZ_CONFIG"),n()(),t(148,"a",36),e(149,"#"),n()(),t(150,"p")(151,"code"),e(152,"nzEmpty"),n(),e(153," \u63A5\u53E3\u6709\u5982\u4E0B\u5B57\u6BB5\uFF1A"),n(),t(154,"table")(155,"thead")(156,"tr")(157,"th"),e(158,"\u53C2\u6570"),n(),t(159,"th"),e(160,"\u8BF4\u660E"),n(),t(161,"th"),e(162,"\u7C7B\u578B"),n()()(),t(163,"tbody")(164,"tr")(165,"td")(166,"code"),e(167,"nzDefaultEmptyContent"),n()(),t(168,"td"),e(169,"\u7528\u6237\u81EA\u5B9A\u4E49\u7684\u5168\u5C40\u7A7A\u7EC4\u4EF6\uFF0C\u53EF\u901A\u8FC7 "),t(170,"code"),e(171,"undefined"),n(),e(172," \u6765\u53D6\u6D88\u81EA\u5B9A\u4E49\u7684\u5168\u5C40\u7A7A\u7EC4\u4EF6"),n(),t(173,"td")(174,"code"),e(175,"Type<any>|TemplateRef<string>|string|undefined"),n()()()()(),t(176,"h3",37)(177,"span"),e(178,"InjectionToken"),n(),t(179,"a",38),e(180,"#"),n()(),t(181,"table")(182,"thead")(183,"tr")(184,"th"),e(185,"Token"),n(),t(186,"th"),e(187,"\u8BF4\u660E"),n(),t(188,"th"),e(189,"\u53C2\u6570"),n()()(),t(190,"tbody")(191,"tr")(192,"td")(193,"code"),e(194,"NZ_EMPTY_COMPONENT_NAME"),n()(),t(195,"td"),e(196,"\u5C06\u4F1A\u88AB\u6CE8\u5165\u5230\u7528\u6237\u7684\u5168\u5C40\u81EA\u5B9A\u4E49\u7A7A\u7EC4\u4EF6\u4E2D\uFF0C\u544A\u8BC9\u8BE5\u7EC4\u4EF6\u5176\u6240\u5728\u7EC4\u4EF6\u7684\u540D\u79F0"),n(),t(197,"td")(198,"code"),e(199,"string"),n()()()()(),t(200,"h3",39)(201,"span"),e(202,"\u5168\u5C40\u81EA\u5B9A\u4E49\u7A7A\u7EC4\u4EF6"),n(),t(203,"a",40),e(204,"#"),n()(),t(205,"p"),e(206,"\u4F60\u6216\u8BB8\u77E5\u9053\u6216\u8005\u7528\u8FC7\u4E00\u4E9B\u7C7B\u4F3C "),t(207,"code"),e(208,"nzNotFoundContent"),n(),e(209," \u7684\u5C5E\u6027\u6765\u81EA\u5B9A\u4E49\u7EC4\u4EF6\u6570\u636E\u4E3A\u7A7A\u65F6\u7684\u5185\u5BB9\uFF0C\u73B0\u5728\u5B83\u4EEC\u90FD\u4F1A\u4F7F\u7528 "),t(210,"code"),e(211,"Empty"),n(),e(212," \u7EC4\u4EF6\u3002\u4F60\u53EF\u4EE5\u901A\u8FC7\u5728 "),t(213,"code"),e(214,"NZ_CONFIG"),n(),e(215," \u4E2D\u63D0\u4F9B "),t(216,"code"),e(217,"{ empty: { nzDefaultEmptyContent: something } }"),n(),e(218," \u6765\u5B9A\u4E49\u4E00\u4E2A\u81EA\u5B9A\u4E49\u7684\u5168\u5C40\u7A7A\u7EC4\u4EF6\u3002"),n(),s(),n()()),i&2&&(l(),r("nzOffsetTop",16),l(),r("nzAffix",!1),l(48),r("nzGutter",8),l(),r("nzSpan",24),l(),r("nzId","components-empty-demo-basic")("nzLink","components-empty-demo-basic")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/empty/demo/basic.md"),l(5),r("nzId","components-empty-demo-simple")("nzLink","components-empty-demo-simple")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/empty/demo/simple.md"),l(11),r("nzId","components-empty-demo-customize")("nzLink","components-empty-demo-customize")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/empty/demo/customize.md"),l(5),r("nzId","components-empty-demo-config")("nzLink","components-empty-demo-config")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/empty/demo/config.md"),l(5),r("nzId","components-empty-demo-description")("nzLink","components-empty-demo-description")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/empty/demo/description.md"))},dependencies:[P,C,G,Z,L,O,R,M,h,N,b,v,T,B],encapsulation:2})};var V=class a{expanded=!1;codeBoxes;goLink(m){window&&(window.location.hash=m)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(m=>m.expandCode(this.expanded))}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=c({type:a,selectors:[["nz-demo-empty"]],viewQuery:function(i,p){if(i&1&&x(C,5),i&2){let d;g(d=S())&&(p.codeBoxes=d)}},decls:255,vars:29,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-empty-demo-basic","nzTitle","Basic"],["nzHref","#components-empty-demo-simple","nzTitle","Chose image"],["nzHref","#components-empty-demo-customize","nzTitle","Customize"],["nzHref","#components-empty-demo-config","nzTitle","Default Config"],["nzHref","#components-empty-demo-description","nzTitle","No description"],["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/empty/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"],["nzType","appstore","nz-tooltip","","nzTooltipTitle","Expand All Code",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan"],["nzTitle","Basic","nzSelector","nz-demo-empty-basic","nzGenerateCommand","ng g ng-zorro-antd:empty-basic <name>","nzComponentName","NzDemoEmptyBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","Chose image","nzSelector","nz-demo-empty-simple","nzGenerateCommand","ng g ng-zorro-antd:empty-simple <name>","nzComponentName","NzDemoEmptySimpleComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Customize","nzSelector","nz-demo-empty-customize","nzGenerateCommand","ng g ng-zorro-antd:empty-customize <name>","nzComponentName","NzDemoEmptyCustomizeComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Default Config","nzSelector","nz-demo-empty-config","nzGenerateCommand","ng g ng-zorro-antd:empty-config <name>","nzComponentName","NzDemoEmptyConfigComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","No description","nzSelector","nz-demo-empty-description","nzGenerateCommand","ng g ng-zorro-antd:empty-description <name>","nzComponentName","NzDemoEmptyDescriptionComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-empty"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-empty'",1,"anchor"],["id","lesscodegreaternz_configless/codegreater"],["onclick","window.location.hash = 'lesscodegreaternz_configless/codegreater'",1,"anchor"],["id","injectiontoken"],["onclick","window.location.hash = 'injectiontoken'",1,"anchor"],["id","global_customizable_empty_content"],["onclick","window.location.hash = 'global_customizable_empty_content'",1,"anchor"],[1,"token","operator"],[1,"token","constant"]],template:function(i,p){i&1&&(t(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),z("nzClick",function(y){return p.goLink(y)}),o(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7),n()(),t(9,"section",8)(10,"h1"),e(11,"Empty"),o(12,"span",9)(13,"span",10),t(14,"a",11),o(15,"nz-icon",12),n()(),t(16,"section",8),u(),t(17,"p"),e(18,"Empty state placeholder."),n(),t(19,"h2",13)(20,"span"),e(21,"When To Use"),n(),t(22,"a",14),e(23,"#"),n()(),t(24,"p"),e(25,"When there is no data provided, display for friendly tips."),n(),t(26,"pre")(27,"code",15)(28,"span",16),e(29,"import"),n(),e(30," "),t(31,"span",17),e(32,"{"),n(),e(33," NzEmptyModule "),t(34,"span",17),e(35,"}"),n(),e(36," "),t(37,"span",16),e(38,"from"),n(),e(39," "),t(40,"span",18),e(41,"'ng-zorro-antd/empty'"),n(),t(42,"span",17),e(43,";"),n(),e(44,`
`),n()(),s(),n(),t(45,"h2")(46,"span"),e(47,"Examples"),n(),t(48,"nz-icon",19),z("click",function(){return p.expandAllCode()}),n()()(),t(49,"div",20)(50,"div",21)(51,"nz-code-box",22),o(52,"nz-demo-empty-basic",23),t(53,"div",24),u(),t(54,"p"),e(55,"Simplest usage."),n(),s(),n()(),t(56,"nz-code-box",25),o(57,"nz-demo-empty-simple",23),t(58,"div",24),u(),t(59,"p"),e(60,"You can choose another style of "),t(61,"code"),e(62,"image"),n(),e(63," by setting "),t(64,"code"),e(65,"simple"),n(),e(66," to "),t(67,"code"),e(68,"nzNotFoundImage"),n(),e(69,"."),n(),s(),n()(),t(70,"nz-code-box",26),o(71,"nz-demo-empty-customize",23),t(72,"div",24),u(),t(73,"p"),e(74,"Customize image, description and extra content."),n(),s(),n()(),t(75,"nz-code-box",27),o(76,"nz-demo-empty-config",23),t(77,"div",24),u(),t(78,"p"),e(79,"Use "),t(80,"code"),e(81,"NzEmptyService"),n(),e(82," set global Empty style."),n(),s(),n()(),t(83,"nz-code-box",28),o(84,"nz-demo-empty-description",23),t(85,"div",24),u(),t(86,"p"),e(87,"Simplest Usage with no description."),n(),s(),n()()()(),t(88,"section",29),u(),t(89,"h2",30)(90,"span"),e(91,"API"),n(),t(92,"a",31),e(93,"#"),n()(),t(94,"h3",32)(95,"span"),e(96,"nz-empty"),n(),t(97,"label",33),e(98,"component"),n(),t(99,"a",34),e(100,"#"),n()(),t(101,"table")(102,"thead")(103,"tr")(104,"th"),e(105,"Property"),n(),t(106,"th"),e(107,"Description"),n(),t(108,"th"),e(109,"Type"),n(),t(110,"th"),e(111,"Default"),n()()(),t(112,"tbody")(113,"tr")(114,"td")(115,"code"),e(116,"[nzNotFoundImage]"),n()(),t(117,"td"),e(118,"Customize image. Will tread as image url when string provided"),n(),t(119,"td")(120,"code"),e(121,"string | TemplateRef<void>"),n()(),t(122,"td"),e(123,"-"),n()(),t(124,"tr")(125,"td")(126,"code"),e(127,"[nzNotFoundContent]"),n()(),t(128,"td"),e(129,"Custom description"),n(),t(130,"td")(131,"code"),e(132,"string | TemplateRef<void> | null"),n()(),t(133,"td"),e(134,"-"),n()(),t(135,"tr")(136,"td")(137,"code"),e(138,"[nzNotFoundFooter]"),n()(),t(139,"td"),e(140,"Custom Footer"),n(),t(141,"td")(142,"code"),e(143,"string | TemplateRef<void>"),n()(),t(144,"td"),e(145,"-"),n()()()(),t(146,"h3",35)(147,"span")(148,"code"),e(149,"NZ_CONFIG"),n()(),t(150,"a",36),e(151,"#"),n()(),t(152,"p"),e(153,"The "),t(154,"code"),e(155,"nzEmpty"),n(),e(156," interface has properties as follows:"),n(),t(157,"table")(158,"thead")(159,"tr")(160,"th"),e(161,"Properties"),n(),t(162,"th"),e(163,"Description"),n(),t(164,"th"),e(165,"Type"),n()()(),t(166,"tbody")(167,"tr")(168,"td")(169,"code"),e(170,"nzDefaultEmptyContent"),n()(),t(171,"td"),e(172,"User default empty component. You can restore the system default empty content by providing "),t(173,"code"),e(174,"undefined"),n()(),t(175,"td")(176,"code"),e(177,"Type<any>|TemplateRef<string>|string|undefined"),n()()()()(),t(178,"h3",37)(179,"span"),e(180,"InjectionToken"),n(),t(181,"a",38),e(182,"#"),n()(),t(183,"table")(184,"thead")(185,"tr")(186,"th"),e(187,"Token"),n(),t(188,"th"),e(189,"Description"),n(),t(190,"th"),e(191,"Parameters"),n()()(),t(192,"tbody")(193,"tr")(194,"td")(195,"code"),e(196,"NZ_EMPTY_COMPONENT_NAME"),n()(),t(197,"td"),e(198,"Would be injected to "),t(199,"code"),e(200,"NZ_DEFAULT_EMPTY_CONTENT"),n(),e(201,", telling that component its parent component's name"),n(),t(202,"td")(203,"code"),e(204,"string"),n()()()()(),t(205,"h3",39)(206,"span"),e(207,"Global Customizable Empty Content"),n(),t(208,"a",40),e(209,"#"),n()(),t(210,"p"),e(211,"You may notice or used some inputs like "),t(212,"code"),e(213,"nzNotFoundContent"),n(),e(214," in some components. Now they would use "),t(215,"code"),e(216,"Empty"),n(),e(217," component. So you can provide "),t(218,"code"),e(219,"nzDefaultEmptyContent"),n(),e(220," to customize them."),n(),t(221,"pre")(222,"code",15)(223,"span",17),e(224,"{"),n(),e(225,`
provide`),t(226,"span",41),e(227,":"),n(),e(228," "),t(229,"span",42),e(230,"NZ_CONFIG"),n(),t(231,"span",17),e(232,","),n(),e(233,`
useValue`),t(234,"span",41),e(235,":"),n(),e(236," "),t(237,"span",17),e(238,"{"),n(),e(239,`
empty`),t(240,"span",41),e(241,":"),n(),e(242," "),t(243,"span",17),e(244,"{"),n(),e(245,`
nzDefaultEmptyContent
`),t(246,"span",17),e(247,"}"),n(),e(248,`
`),t(249,"span",17),e(250,"}"),n(),e(251,`
`),t(252,"span",17),e(253,"}"),n(),e(254,`
`),n()(),s(),n()()),i&2&&(l(),r("nzOffsetTop",16),l(),r("nzAffix",!1),l(47),r("nzGutter",8),l(),r("nzSpan",24),l(),r("nzId","components-empty-demo-basic")("nzLink","components-empty-demo-basic")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/empty/demo/basic.md"),l(5),r("nzId","components-empty-demo-simple")("nzLink","components-empty-demo-simple")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/empty/demo/simple.md"),l(14),r("nzId","components-empty-demo-customize")("nzLink","components-empty-demo-customize")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/empty/demo/customize.md"),l(5),r("nzId","components-empty-demo-config")("nzLink","components-empty-demo-config")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/empty/demo/config.md"),l(8),r("nzId","components-empty-demo-description")("nzLink","components-empty-demo-description")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/empty/demo/description.md"))},dependencies:[P,C,G,Z,L,O,R,M,h,N,b,v,T,B],encapsulation:2})};var Ze=[{path:"en",component:V},{path:"zh",component:Q}],Gt=Ze;export{Gt as default};