PageSourceSearch

https://preview-9270-ng-zorro-antd.surge.sh/chunk-4YPOPN2D.js

js preview-9270-ng-zorro-antd.surge.sh collected 2026-10-03 14:58:32 UTC 25,050 bytes, 17 lines download raw bytes

1import{a as Te,b as Be}from"./chunk-MHSPBJLB.js";import{c as Se,g as he,l as Ne,n as Fe,p as De,q as be,s as ve}from"./chunk-5R3GPGK3.js";import{a as Ie,b as _e}from"./chunk-BCS4OZVB.js";import"./chunk-FVF26VJ5.js";import"./chunk-FIGFUATT.js";import{l as xe,n as ge}from"./chunk-TZMWWYD2.js";import"./chunk-RZV7LAD3.js";import{a as Ee,b as fe}from"./chunk-RO2IYSJS.js";import"./chunk-3TTRTP7A.js";import{a as Ce,b as ye}from"./chunk-6EZBAC5L.js";import"./chunk-7WCBJVHI.js";import"./chunk-XGWGYM75.js";import"./chunk-3GNJMIFX.js";import"./chunk-2XFZPEIP.js";import"./chunk-2PR7VTUQ.js";import{h as ae,i as le}from"./chunk-55EKSQZE.js";import{a as f,c as E}from"./chunk-X4TKTQ34.js";import{a as ce,b as ze}from"./chunk-QGK55QLP.js";import"./chunk-PQ64B72B.js";import{a as C,g as G,h as Z,m as P,n as Q}from"./chunk-4LWRTZ4J.js";import"./chunk-HECQD5M5.js";import"./chunk-WRS55NNU.js";import{Fc as oe,Jc as me,Nd as pe,Od as de,Qd as se,Rd as ue,Sd as R,Td as O,Wc as re,Wd as L,db as ne,qb as h,sb as ie,vc as M}from"./chunk-FE3MHUBC.js";import{Bc as X,Cb as k,Ec as $,Fc as ee,Gc as te,Pc as H,Xb as r,Yb as t,Zb as n,Zc as A,_b as o,cc as w,ic as z,kb as l,kc as K,oc as x,pb as J,pc as g,qa as s,qc as S,ra as u,sa as I,ta as _,uc as W,wb as c,zc as e}from"./chunk-OQ4XWHPB.js";import"./chunk-JNGVGNCT.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"],q=()=>[];function we(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),X("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)(J(ne))};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),te("ngModelChange",function(U){return I(d),ee(p.customize,U)||(p.customize=U),_(U)}),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),k(27,we,4,1,"ng-template",null,0,A)}i&2&&(r("nzUnCheckedChildren","default")("nzCheckedChildren","customize"),$("ngModel",p.customize),l(10),r("nzShowSearch",!0)("nzOptions",H(7,q)),l(6),r("nzData",H(8,q)),l(10),r("nzDataSource",H(9,q)))},dependencies:[re,oe,me,ye,Ce,ze,ce,E,ie,h,ge,xe,le,ae,fe,Ee,ve,Fe,Se,he,be,Ne,De,Be,Te,_e,Ie],styles:["h3[_ngcontent-%COMP%]{font-size:inherit;margin:16px 0 8px}"]})};function He(a,m){a&1&&(t(0,"span"),e(1," Customize "),t(2,"a",3),e(3,"Description"),n()())}function Me(a,m){if(a&1){let i=w();t(0,"button",4),z("click",function(){I(i);let d=K();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),k(1,He,4,0,"ng-template",null,0,A)(3,Me,2,0,"ng-template",null,1,A),n()),i&2){let d=W(2),y=W(4);r("nzNotFoundContent",d)("nzNotFoundFooter",y)}},dependencies:[ue,se,pe,de,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 V=class a{expanded=!1;codeBoxes;goLink(m){window&&(window.location.hash=m)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEac
1h(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:233,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"],["name","empty","description","\u7A7A\u72B6\u6001\u65F6\u7684\u5C55\u793A\u5360\u4F4D\u56FE\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,"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"],[1,"language-ts"],[1,"token","punctuation"],[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"),t(12,"span",9),e(13,"\u7A7A\u72B6\u6001"),n(),o(14,"span",10),t(15,"a",11),o(16,"nz-icon",12),n()(),o(17,"component-meta",13),t(18,"section",8),u(),t(19,"h2",14)(20,"span"),e(21,"\u4F55\u65F6\u4F7F\u7528"),n(),t(22,"a",15),e(23,"#"),n()(),t(24,"p"),e(25,"\u5F53\u76EE\u524D\u6CA1\u6709\u6570\u636E\u65F6\uFF0C\u7528\u4E8E\u663E\u5F0F\u7684\u7528\u6237\u63D0\u793A\u3002"),n(),s(),n(),t(26,"h2")(27,"span"),e(28,"\u4EE3\u7801\u6F14\u793A"),n(),t(29,"nz-icon",16),z("click",function(){return p.exp
1andAllCode()}),n()()(),t(30,"div",17)(31,"div",18)(32,"nz-code-box",19),o(33,"nz-demo-empty-basic",20),t(34,"div",21),u(),t(35,"p"),e(36,"\u7B80\u5355\u7684\u5C55\u793A\u3002"),n(),s(),n()(),t(37,"nz-code-box",22),o(38,"nz-demo-empty-simple",20),t(39,"div",21),u(),t(40,"p"),e(41,"\u53EF\u4EE5\u901A\u8FC7\u8BBE\u7F6E "),t(42,"code"),e(43,"nzNotFoundImage"),n(),e(44," \u4E3A "),t(45,"code"),e(46,"simple"),n(),e(47," \u9009\u62E9\u53E6\u4E00\u79CD\u98CE\u683C\u7684\u56FE\u7247\u3002"),n(),s(),n()(),t(48,"nz-code-box",23),o(49,"nz-demo-empty-customize",20),t(50,"div",21),u(),t(51,"p"),e(52,"\u81EA\u5B9A\u4E49\u56FE\u7247\u3001\u63CF\u8FF0\u3001\u9644\u5C5E\u5185\u5BB9\u3002"),n(),s(),n()(),t(53,"nz-code-box",24),o(54,"nz-demo-empty-config",20),t(55,"div",21),u(),t(56,"p"),e(57,"\u81EA\u5B9A\u4E49\u5168\u5C40\u7EC4\u4EF6\u7684 Empty \u6837\u5F0F\u3002"),n(),s(),n()(),t(58,"nz-code-box",25),o(59,"nz-demo-empty-description",20),t(60,"div",21),u(),t(61,"p"),e(62,"\u65E0\u63CF\u8FF0\u5C55\u793A\u3002"),n(),s(),n()()()(),t(63,"section",26),u(),t(64,"h2",27)(65,"span"),e(66,"API"),n(),t(67,"a",28),e(68,"#"),n()(),t(69,"h3",29)(70,"span"),e(71,"nz-empty"),n(),t(72,"label",30),e(73,"component"),n(),t(74,"a",31),e(75,"#"),n()(),t(76,"table")(77,"thead")(78,"tr")(79,"th"),e(80,"\u53C2\u6570"),n(),t(81,"th"),e(82,"\u8BF4\u660E"),n(),t(83,"th"),e(84,"\u7C7B\u578B"),n(),t(85,"th"),e(86,"\u9ED8\u8BA4\u503C"),n()()(),t(87,"tbody")(88,"tr")(89,"td")(90,"code"),e(91,"[nzNotFoundImage]"),n()(),t(92,"td"),e(93,"\u8BBE\u7F6E\u663E\u793A\u56FE\u7247\uFF0C\u4E3A "),t(94,"code"),e(95,"string"),n(),e(96," \u65F6\u8868\u793A\u81EA\u5B9A\u4E49\u56FE\u7247\u5730\u5740"),n(),t(97,"td")(98,"code"),e(99,"string | TemplateRef<void>"),n()(),t(100,"td"),e(101,"-"),n()(),t(102,"tr")(103,"td")(104,"code"),e(105,"[nzNotFoundContent]"),n()(),t(106,"td"),e(107,"\u81EA\u5B9A\u4E49\u63CF\u8FF0\u5185\u5BB9"),n(),t(108,"td")(109,"code"),e(110,"string | TemplateRef<void> | null"),n()(),t(111,"td"),e(112,"-"),n()(),t(113,"tr")(114,"td")(115,"code"),e(116,"[nzNotFoundFooter]"),n()(),t(117,"td"),e(118,"\u8BBE\u7F6E\u81EA\u5B9A\u4E49 footer"),n(),t(119,"td")(120,"code"),e(121,"string | TemplateRef<void>"),n()(),t(122,"td"),e(123,"-"),n()()()(),t(124,"h3",32)(125,"span")(126,"code"),e(127,"NZ_CONFIG"),n()(),t(128,"a",33),e(129,"#"),n()(),t(130,"p")(131,"code"),e(132,"nzEmpty"),n(),e(133," \u63A5\u53E3\u6709\u5982\u4E0B\u5B57\u6BB5\uFF1A"),n(),t(134,"table")(135,"thead")(136,"tr")(137,"th"),e(138,"\u53C2\u6570"),n(),t(139,"th"),e(140,"\u8BF4\u660E"),n(),t(141,"th"),e(142,"\u7C7B\u578B"),n()()(),t(143,"tbody")(144,"tr")(145,"td")(146,"code"),e(147,"nzDefaultEmptyContent"),n()(),t(148,"td"),e(149,"\u7528\u6237\u81EA\u5B9A\u4E49\u7684\u5168\u5C40\u7A7A\u7EC4\u4EF6\uFF0C\u53EF\u901A\u8FC7 "),t(150,"code"),e(151,"undefined"),n(),e(152," \u6765\u53D6\u6D88\u81EA\u5B9A\u4E49\u7684\u5168\u5C40\u7A7A\u7EC4\u4EF6"),n(),t(153,"td")(154,"code"),e(155,"Type<any>|TemplateRef<string>|string|undefined"),n()()()()(),t(156,"h3",34)(157,"span"),e(158,"InjectionToken"),n(),t(159,"a",35),e(160,"#"),n()(),t(161,"table")(162,"thead")(163,"tr")(164,"th"),e(165,"Token"),n(),t(166,"th"),e(167,"\u8BF4\u660E"),n(),t(168,"th"),e(169,"\u53C2\u6570"),n()()(),t(170,"tbody")(171,"tr")(172,"td")(173,"code"),e(174,"NZ_EMPTY_COMPONENT_NAME"),n()(),t(175,"td"),e(176,"\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(177,"td")(178,"code"),e(179,"string"),n()()()()(),t(180,"h3",36)(181,"span"),e(182,"\u5168\u5C40\u81EA\u5B9A\u4E49\u7A7A\u7EC4\u4EF6"),n(),t(183,"a",37),e(184,"#"),n()(),t(185,"p"),e(186,"\u4F60\u6216\u8BB8\u77E5\u9053\u6216\u8005\u7528\u8FC7\u4E00\u4E9B\u7C7B\u4F3C "),t(187,"code"),e(188,"nzNotFoundContent"),n(),e(189," \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(190,"code"),e(191,"Empty"),n(),e(192," \u7EC4\u4EF6\u3002\u4F60\u53EF\u4EE5\u901A\u8FC7\u5728 "),t(193,"code"),e(194,"NZ_CONFIG"),n(),e(195," \u4E2D\u63D0\u4F9B "),t(196,"code"),e(197,"{ empty: { nzDefaultEmptyContent: something } }"),n(),e(198," \u6765\u5B9A\u4E49\u4E00\u4E2A\u81EA\u5B9A\u4E49\u7684\u5168\u5C40\u7A7A\u7EC4\u4EF6\u3002"),n(),t(199,"pre")(200,"code",38)(201,"span",39),e(202,"{"),n(),e(203,`
2  provide`),t(204,"span",40),e(205,":"),n(),e(206," "),t(207,"span",41),e(208,"NZ_CONFIG"),n(),t(209,"span",39),e(210,","),n(),e(211,`
3  useValue`),t(212,"span",40),e(213,":"),n(),e(214," "),t(215,"span",39),e(216,"{"),n(),e(217,`
4    empty`),t(218,"span",40),e(219,":"),n(),e(220," "),t(221,"span",39),e(222,"{"),n(),e(223,`
5      nzDefaultEmptyContent
6    `),t(224,"span",39),e(225,"}"),n(),e(226,`
7  `),t(227,"span",39),e(228,"}"),n(),e(229,`
8`),t(230,"span",39),e(231,"}"),n(),e(232,`
9`),n()(),s(),n()()),i&2&&(l(),r("nzOffsetTop",16),l(),r("nzAffix",!1),l(28),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:[Q,C,P,G,Z,L,O,R,M,h,N,b,v,T,B],encapsulation:2})};var j=class a{expanded=!1;codeBoxes;goLink(m){window&&(window.location.hash=m)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEac
9h(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:235,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"],["name","empty","description","Empty state placeholder.","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,"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,"language-ts"],[1,"token","punctuation"],[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()(),o(16,"component-meta",13),t(17,"section",8),u(),t(18,"h2",14)(19,"span"),e(20,"When To Use"),n(),t(21,"a",15),e(22,"#"),n()(),t(23,"p"),e(24,"When there is no data provided, display for friendly tips."),n(),s(),n(),t(25,"h2")(26,"span"),e(27,"Examples"),n(),t(28,"nz-icon",16),z("click",function(){return p.expandAllCode()}),n()()(),t(29,"div",17)(30,"div",18)(31,"nz-code-box",19),o(32,"nz-demo-empty-basic",20),t(33,"div",21),u(),t(34,"p"),e(35,"Simplest usage."),n(),s(),n()(),t(36,"nz-code-box",22),o(37,"nz-demo-empty-simple",20),t(38,"div",21),u(
9),t(39,"p"),e(40,"You can choose another style of "),t(41,"code"),e(42,"image"),n(),e(43," by setting "),t(44,"code"),e(45,"simple"),n(),e(46," to "),t(47,"code"),e(48,"nzNotFoundImage"),n(),e(49,"."),n(),s(),n()(),t(50,"nz-code-box",23),o(51,"nz-demo-empty-customize",20),t(52,"div",21),u(),t(53,"p"),e(54,"Customize image, description and extra content."),n(),s(),n()(),t(55,"nz-code-box",24),o(56,"nz-demo-empty-config",20),t(57,"div",21),u(),t(58,"p"),e(59,"Use "),t(60,"code"),e(61,"NzEmptyService"),n(),e(62," set global Empty style."),n(),s(),n()(),t(63,"nz-code-box",25),o(64,"nz-demo-empty-description",20),t(65,"div",21),u(),t(66,"p"),e(67,"Simplest Usage with no description."),n(),s(),n()()()(),t(68,"section",26),u(),t(69,"h2",27)(70,"span"),e(71,"API"),n(),t(72,"a",28),e(73,"#"),n()(),t(74,"h3",29)(75,"span"),e(76,"nz-empty"),n(),t(77,"label",30),e(78,"component"),n(),t(79,"a",31),e(80,"#"),n()(),t(81,"table")(82,"thead")(83,"tr")(84,"th"),e(85,"Property"),n(),t(86,"th"),e(87,"Description"),n(),t(88,"th"),e(89,"Type"),n(),t(90,"th"),e(91,"Default"),n()()(),t(92,"tbody")(93,"tr")(94,"td")(95,"code"),e(96,"[nzNotFoundImage]"),n()(),t(97,"td"),e(98,"Customize image. Will tread as image url when string provided"),n(),t(99,"td")(100,"code"),e(101,"string | TemplateRef<void>"),n()(),t(102,"td"),e(103,"-"),n()(),t(104,"tr")(105,"td")(106,"code"),e(107,"[nzNotFoundContent]"),n()(),t(108,"td"),e(109,"Custom description"),n(),t(110,"td")(111,"code"),e(112,"string | TemplateRef<void> | null"),n()(),t(113,"td"),e(114,"-"),n()(),t(115,"tr")(116,"td")(117,"code"),e(118,"[nzNotFoundFooter]"),n()(),t(119,"td"),e(120,"Custom Footer"),n(),t(121,"td")(122,"code"),e(123,"string | TemplateRef<void>"),n()(),t(124,"td"),e(125,"-"),n()()()(),t(126,"h3",32)(127,"span")(128,"code"),e(129,"NZ_CONFIG"),n()(),t(130,"a",33),e(131,"#"),n()(),t(132,"p"),e(133,"The "),t(134,"code"),e(135,"nzEmpty"),n(),e(136," interface has properties as follows:"),n(),t(137,"table")(138,"thead")(139,"tr")(140,"th"),e(141,"Properties"),n(),t(142,"th"),e(143,"Description"),n(),t(144,"th"),e(145,"Type"),n()()(),t(146,"tbody")(147,"tr")(148,"td")(149,"code"),e(150,"nzDefaultEmptyContent"),n()(),t(151,"td"),e(152,"User default empty component. You can restore the system default empty content by providing "),t(153,"code"),e(154,"undefined"),n()(),t(155,"td")(156,"code"),e(157,"Type<any>|TemplateRef<string>|string|undefined"),n()()()()(),t(158,"h3",34)(159,"span"),e(160,"InjectionToken"),n(),t(161,"a",35),e(162,"#"),n()(),t(163,"table")(164,"thead")(165,"tr")(166,"th"),e(167,"Token"),n(),t(168,"th"),e(169,"Description"),n(),t(170,"th"),e(171,"Parameters"),n()()(),t(172,"tbody")(173,"tr")(174,"td")(175,"code"),e(176,"NZ_EMPTY_COMPONENT_NAME"),n()(),t(177,"td"),e(178,"Would be injected to "),t(179,"code"),e(180,"NZ_DEFAULT_EMPTY_CONTENT"),n(),e(181,", telling that component its parent component's name"),n(),t(182,"td")(183,"code"),e(184,"string"),n()()()()(),t(185,"h3",36)(186,"span"),e(187,"Global Customizable Empty Content"),n(),t(188,"a",37),e(189,"#"),n()(),t(190,"p"),e(191,"You may notice or used some inputs like "),t(192,"code"),e(193,"nzNotFoundContent"),n(),e(194," in some components. Now they would use "),t(195,"code"),e(196,"Empty"),n(),e(197," component. So you can provide "),t(198,"code"),e(199,"nzDefaultEmptyContent"),n(),e(200," to customize them."),n(),t(201,"pre")(202,"code",38)(203,"span",39),e(204,"{"),n(),e(205,`
10  provide`),t(206,"span",40),e(207,":"),n(),e(208," "),t(209,"span",41),e(210,"NZ_CONFIG"),n(),t(211,"span",39),e(212,","),n(),e(213,`
11  useValue`),t(214,"span",40),e(215,":"),n(),e(216," "),t(217,"span",39),e(218,"{"),n(),e(219,`
12    empty`),t(220,"span",40),e(221,":"),n(),e(222," "),t(223,"span",39),e(224,"{"),n(),e(225,`
13      nzDefaultEmptyContent
14    `),t(226,"span",39),e(227,"}"),n(),e(228,`
15  `),t(229,"span",39),e(230,"}"),n(),e(231,`
16`),t(232,"span",39),e(233,"}"),n(),e(234,`
17`),n()(),s(),n()()),i&2&&(l(),r("nzOffsetTop",16),l(),r("nzAffix",!1),l(27),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:[Q,C,P,G,Z,L,O,R,M,h,N,b,v,T,B],encapsulation:2})};var Qe=[{path:"en",component:j},{path:"zh",component:V}],Pt=Qe;export{Pt 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.