-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathchunk-4IS5ZADH.js
1 lines (1 loc) · 34.7 KB
/
chunk-4IS5ZADH.js
1
import{a as c,b as s}from"./chunk-YW3NVUV5.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 h,g as G,h as L,j as Z}from"./chunk-PNYJKZIQ.js";import"./chunk-UJZP7RYT.js";import{Ca as H,Hc as A,Ic as M,Lc as O,ec as R}from"./chunk-YWVGY2C2.js";import{Aa as z,Ac as F,Ba as D,Bc as v,Ca as T,Cc as y,Gc as P,Hc as n,Ib as u,Ic as te,Jc as B,Lc as ne,Mc as k,Nc as _,Oc as w,Pb as b,Wb as a,_c as I,dc as K,ic as e,jc as t,kc as r,oc as X,rb as l,rc as N,tc as ee,za as p}from"./chunk-GBKJFEQZ.js";import"./chunk-EQDQRRRY.js";var j=(()=>{class i{static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=u({type:i,selectors:[["nz-demo-pagination-basic"]],decls:1,vars:2,consts:[[3,"nzPageIndex","nzTotal"]],template:function(o,d){o&1&&r(0,"nz-pagination",0),o&2&&a("nzPageIndex",1)("nzTotal",50)},dependencies:[s,c],encapsulation:2})}}return i})();var J=(()=>{class i{static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=u({type:i,selectors:[["nz-demo-pagination-changer"]],decls:3,vars:6,consts:[["nzShowSizeChanger","",3,"nzPageIndex","nzTotal","nzPageSize"],["nzShowSizeChanger","","nzDisabled","",3,"nzPageIndex","nzTotal","nzPageSize"]],template:function(o,d){o&1&&r(0,"nz-pagination",0)(1,"br")(2,"nz-pagination",1),o&2&&(a("nzPageIndex",3)("nzTotal",500)("nzPageSize",10),l(2),a("nzPageIndex",3)("nzTotal",500)("nzPageSize",10))},dependencies:[s,c],encapsulation:2})}}return i})();var Q=(()=>{class i{static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=u({type:i,selectors:[["nz-demo-pagination-controlled"]],decls:1,vars:2,consts:[[3,"nzPageIndex","nzTotal"]],template:function(o,d){o&1&&r(0,"nz-pagination",0),o&2&&a("nzPageIndex",3)("nzTotal",50)},dependencies:[s,c],encapsulation:2})}}return i})();function ae(i,x){if(i&1&&(e(0,"a"),n(1),t()),i&2){let m=ee().page;l(),te(m)}}function me(i,x){i&1&&(e(0,"a"),n(1,"Previous"),t())}function re(i,x){i&1&&(e(0,"a"),n(1,"Next"),t())}function le(i,x){i&1&&(e(0,"a"),n(1,"<<"),t())}function de(i,x){i&1&&(e(0,"a"),n(1,">>"),t())}function pe(i,x){if(i&1&&b(0,ae,2,1,"a")(1,me,2,0,"a")(2,re,2,0,"a")(3,le,2,0,"a")(4,de,2,0,"a"),i&2){let m,o=x.$implicit;K((m=o)==="page"?0:m==="prev"?1:m==="next"?2:m==="prev_5"?3:m==="next_5"?4:-1)}}var W=(()=>{class i{static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=u({type:i,selectors:[["nz-demo-pagination-item-render"]],decls:3,vars:3,consts:[["renderItemTemplate",""],[3,"nzPageIndex","nzTotal","nzItemRender"]],template:function(o,d){if(o&1&&(r(0,"nz-pagination",1),b(1,pe,5,1,"ng-template",null,0,I)),o&2){let g=P(2);a("nzPageIndex",1)("nzTotal",500)("nzItemRender",g)}},dependencies:[s,c],encapsulation:2})}}return i})();var V=(()=>{class i{static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=u({type:i,selectors:[["nz-demo-pagination-jump"]],decls:3,vars:4,consts:[["nzShowQuickJumper","",3,"nzPageIndex","nzTotal"],["nzShowQuickJumper","","nzDisabled","",3,"nzPageIndex","nzTotal"]],template:function(o,d){o&1&&r(0,"nz-pagination",0)(1,"br")(2,"nz-pagination",1),o&2&&(a("nzPageIndex",2)("nzTotal",500),l(2),a("nzPageIndex",2)("nzTotal",500))},dependencies:[s,c],encapsulation:2})}}return i})();function ze(i,x){if(i&1&&n(0),i&2){let m=x.$implicit;B("Total ",m," items")}}var U=(()=>{class i{constructor(){this.current=1}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=u({type:i,selectors:[["nz-demo-pagination-mini"]],decls:7,vars:10,consts:[["totalTemplate",""],[3,"nzPageIndexChange","nzPageIndex","nzTotal","nzSize"],["nzShowSizeChanger","","nzShowQuickJumper","",3,"nzPageIndexChange","nzPageIndex","nzTotal","nzSize"],[3,"nzPageIndexChange","nzPageIndex","nzTotal","nzSize","nzShowTotal"]],template:function(o,d){if(o&1){let g=X();e(0,"nz-pagination",1),w("nzPageIndexChange",function(S){return D(g),_(d.current,S)||(d.current=S),T(S)}),t(),r(1,"br"),e(2,"nz-pagination",2),w("nzPageIndexChange",function(S){return D(g),_(d.current,S)||(d.current=S),T(S)}),t(),r(3,"br"),e(4,"nz-pagination",3),w("nzPageIndexChange",function(S){return D(g),_(d.current,S)||(d.current=S),T(S)}),t(),b(5,ze,1,1,"ng-template",null,0,I)}if(o&2){let g=P(6);k("nzPageIndex",d.current),a("nzTotal",50)("nzSize","small"),l(2),k("nzPageIndex",d.current),a("nzTotal",50)("nzSize","small"),l(2),k("nzPageIndex",d.current),a("nzTotal",50)("nzSize","small")("nzShowTotal",g)}},dependencies:[s,c],encapsulation:2})}}return i})();var q=(()=>{class i{static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=u({type:i,selectors:[["nz-demo-pagination-more"]],decls:1,vars:2,consts:[[3,"nzPageIndex","nzTotal"]],template:function(o,d){o&1&&r(0,"nz-pagination",0),o&2&&a("nzPageIndex",1)("nzTotal",500)},dependencies:[s,c],encapsulation:2})}}return i})();var $=(()=>{class i{static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=u({type:i,selectors:[["nz-demo-pagination-simple"]],decls:1,vars:2,consts:[["nzSimple","",3,"nzPageIndex","nzTotal"]],template:function(o,d){o&1&&r(0,"nz-pagination",0),o&2&&a("nzPageIndex",2)("nzTotal",50)},dependencies:[s,c],encapsulation:2})}}return i})();function ue(i,x){if(i&1&&n(0),i&2){let m=x.$implicit;B("Total ",m," items")}}function ge(i,x){if(i&1&&n(0),i&2){let m=x.range,o=x.$implicit;ne(" ",m[0],"-",m[1]," of ",o," items ")}}var Y=(()=>{class i{static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=u({type:i,selectors:[["nz-demo-pagination-total"]],decls:7,vars:8,consts:[["totalTemplate",""],["rangeTemplate",""],[3,"nzPageIndex","nzTotal","nzPageSize","nzShowTotal"]],template:function(o,d){if(o&1&&(r(0,"nz-pagination",2)(1,"br")(2,"nz-pagination",2),b(3,ue,1,1,"ng-template",null,0,I)(5,ge,1,3,"ng-template",null,1,I)),o&2){let g=P(4),f=P(6);a("nzPageIndex",1)("nzTotal",85)("nzPageSize",20)("nzShowTotal",g),l(2),a("nzPageIndex",1)("nzTotal",85)("nzPageSize",20)("nzShowTotal",f)}},dependencies:[s,c],encapsulation:2})}}return i})();var ie=(()=>{class i{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(o){return new(o||i)}}static{this.\u0275cmp=u({type:i,selectors:[["nz-demo-pagination"]],viewQuery:function(o,d){if(o&1&&F(h,5),o&2){let g;v(g=y())&&(d.codeBoxes=g)}},decls:380,vars:40,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-pagination-demo-basic","nzTitle","\u57FA\u672C"],["nzHref","#components-pagination-demo-more","nzTitle","\u66F4\u591A"],["nzHref","#components-pagination-demo-changer","nzTitle","\u6539\u53D8"],["nzHref","#components-pagination-demo-jump","nzTitle","\u8DF3\u8F6C"],["nzHref","#components-pagination-demo-mini","nzTitle","\u8FF7\u4F60"],["nzHref","#components-pagination-demo-simple","nzTitle","\u7B80\u6D01"],["nzHref","#components-pagination-demo-controlled","nzTitle","\u9875\u7801"],["nzHref","#components-pagination-demo-total","nzTitle","\u603B\u6570"],["nzHref","#components-pagination-demo-item-render","nzTitle","\u4E0A\u4E00\u6B65\u548C\u4E0B\u4E00\u6B65"],["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/pagination/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,"nzSpan"],["nzTitle","\u57FA\u672C","nzSelector","nz-demo-pagination-basic","nzGenerateCommand","ng g ng-zorro-antd:pagination-basic <name>","nzComponentName","NzDemoPaginationBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","\u66F4\u591A","nzSelector","nz-demo-pagination-more","nzGenerateCommand","ng g ng-zorro-antd:pagination-more <name>","nzComponentName","NzDemoPaginationMoreComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u6539\u53D8","nzSelector","nz-demo-pagination-changer","nzGenerateCommand","ng g ng-zorro-antd:pagination-changer <name>","nzComponentName","NzDemoPaginationChangerComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u8DF3\u8F6C","nzSelector","nz-demo-pagination-jump","nzGenerateCommand","ng g ng-zorro-antd:pagination-jump <name>","nzComponentName","NzDemoPaginationJumpComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u8FF7\u4F60","nzSelector","nz-demo-pagination-mini","nzGenerateCommand","ng g ng-zorro-antd:pagination-mini <name>","nzComponentName","NzDemoPaginationMiniComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u7B80\u6D01","nzSelector","nz-demo-pagination-simple","nzGenerateCommand","ng g ng-zorro-antd:pagination-simple <name>","nzComponentName","NzDemoPaginationSimpleComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u9875\u7801","nzSelector","nz-demo-pagination-controlled","nzGenerateCommand","ng g ng-zorro-antd:pagination-controlled <name>","nzComponentName","NzDemoPaginationControlledComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u603B\u6570","nzSelector","nz-demo-pagination-total","nzGenerateCommand","ng g ng-zorro-antd:pagination-total <name>","nzComponentName","NzDemoPaginationTotalComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u4E0A\u4E00\u6B65\u548C\u4E0B\u4E00\u6B65","nzSelector","nz-demo-pagination-item-render","nzGenerateCommand","ng g ng-zorro-antd:pagination-item-render <name>","nzComponentName","NzDemoPaginationItemRenderComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],[1,"language-html"],[1,"token","tag"],[1,"token","attr-name"],[1,"token","attr-value"],["id","nz-pagination"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-pagination'",1,"anchor"]],template:function(o,d){o&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),N("nzClick",function(f){return d.goLink(f)}),r(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7)(9,"nz-link",8)(10,"nz-link",9)(11,"nz-link",10)(12,"nz-link",11),t()(),e(13,"section",12)(14,"h1"),n(15,"Pagination"),e(16,"span",13),n(17,"\u5206\u9875"),t(),r(18,"span",14),e(19,"a",15),r(20,"nz-icon",16),t()(),e(21,"section",12),z(),e(22,"p"),n(23,"\u91C7\u7528\u5206\u9875\u7684\u5F62\u5F0F\u5206\u9694\u957F\u5217\u8868\uFF0C\u6BCF\u6B21\u53EA\u52A0\u8F7D\u4E00\u4E2A\u9875\u9762\u3002"),t(),e(24,"h2",17)(25,"span"),n(26,"\u4F55\u65F6\u4F7F\u7528"),t(),e(27,"a",18),n(28,"#"),t()(),e(29,"ul")(30,"li"),n(31,"\u5F53\u52A0\u8F7D/\u6E32\u67D3\u6240\u6709\u6570\u636E\u5C06\u82B1\u8D39\u5F88\u591A\u65F6\u95F4\u65F6\uFF1B"),t(),e(32,"li"),n(33,"\u53EF\u5207\u6362\u9875\u7801\u6D4F\u89C8\u6570\u636E\u3002"),t()(),e(34,"pre",19)(35,"code")(36,"span",20),n(37,"import"),t(),n(38," "),e(39,"span",21),n(40,"{"),t(),n(41," NzPaginationModule "),e(42,"span",21),n(43,"}"),t(),n(44," "),e(45,"span",20),n(46,"from"),t(),n(47," "),e(48,"span",22),n(49,"'ng-zorro-antd/pagination'"),t(),e(50,"span",21),n(51,";"),t()()(),p(),t(),e(52,"h2")(53,"span"),n(54,"\u4EE3\u7801\u6F14\u793A"),t(),e(55,"span",23),N("click",function(){return d.expandAllCode()}),t()()(),e(56,"div",24)(57,"div",25)(58,"nz-code-box",26),r(59,"nz-demo-pagination-basic",27),e(60,"div",28),z(),e(61,"p"),n(62,"\u57FA\u7840\u5206\u9875\u3002"),t(),p(),t()(),e(63,"nz-code-box",29),r(64,"nz-demo-pagination-more",27),e(65,"div",28),z(),e(66,"p"),n(67,"\u66F4\u591A\u5206\u9875\u3002"),t(),p(),t()(),e(68,"nz-code-box",30),r(69,"nz-demo-pagination-changer",27),e(70,"div",28),z(),e(71,"p"),n(72,"\u6539\u53D8\u6BCF\u9875\u663E\u793A\u6761\u76EE\u6570\u3002"),t(),p(),t()(),e(73,"nz-code-box",31),r(74,"nz-demo-pagination-jump",27),e(75,"div",28),z(),e(76,"p"),n(77,"\u5FEB\u901F\u8DF3\u8F6C\u5230\u67D0\u4E00\u9875\u3002"),t(),p(),t()(),e(78,"nz-code-box",32),r(79,"nz-demo-pagination-mini",27),e(80,"div",28),z(),e(81,"p"),n(82,"\u8FF7\u4F60\u7248\u672C\u3002"),t(),p(),t()(),e(83,"nz-code-box",33),r(84,"nz-demo-pagination-simple",27),e(85,"div",28),z(),e(86,"p"),n(87,"\u7B80\u5355\u7684\u7FFB\u9875\u3002"),t(),p(),t()(),e(88,"nz-code-box",34),r(89,"nz-demo-pagination-controlled",27),e(90,"div",28),z(),e(91,"p"),n(92,"\u6539\u53D8\u9875\u7801\u3002"),t(),p(),t()(),e(93,"nz-code-box",35),r(94,"nz-demo-pagination-total",27),e(95,"div",28),z(),e(96,"p"),n(97,"\u901A\u8FC7\u8BBE\u7F6E "),e(98,"code"),n(99,"nzShowTotal"),t(),n(100," \u5C55\u793A\u603B\u5171\u6709\u591A\u5C11\u6570\u636E\u3002"),t(),p(),t()(),e(101,"nz-code-box",36),r(102,"nz-demo-pagination-item-render",27),e(103,"div",28),z(),e(104,"p"),n(105,"\u4FEE\u6539\u4E0A\u4E00\u6B65\u548C\u4E0B\u4E00\u6B65\u4E3A\u6587\u5B57\u94FE\u63A5\u3002"),t(),p(),t()()()(),e(106,"section",37),z(),e(107,"h2",38)(108,"span"),n(109,"API"),t(),e(110,"a",39),n(111,"#"),t()(),e(112,"pre",40)(113,"code")(114,"span",41)(115,"span",41)(116,"span",21),n(117,"<"),t(),n(118,"nz-pagination"),t(),n(119," "),e(120,"span",42),n(121,"[nzPageIndex]"),t(),e(122,"span",43)(123,"span",21),n(124,"="),t(),e(125,"span",21),n(126,'"'),t(),n(127,"1"),e(128,"span",21),n(129,'"'),t()(),n(130," "),e(131,"span",42),n(132,"[nzTotal]"),t(),e(133,"span",43)(134,"span",21),n(135,"="),t(),e(136,"span",21),n(137,'"'),t(),n(138,"50"),e(139,"span",21),n(140,'"'),t()(),e(141,"span",21),n(142,">"),t()(),e(143,"span",41)(144,"span",41)(145,"span",21),n(146,"</"),t(),n(147,"nz-pagination"),t(),e(148,"span",21),n(149,">"),t()()()(),e(150,"h3",44)(151,"span"),n(152,"nz-pagination"),t(),e(153,"label",45),n(154,"component"),t(),e(155,"a",46),n(156,"#"),t()(),e(157,"table")(158,"thead")(159,"tr")(160,"th"),n(161,"\u53C2\u6570"),t(),e(162,"th"),n(163,"\u8BF4\u660E"),t(),e(164,"th"),n(165,"\u7C7B\u578B"),t(),e(166,"th"),n(167,"\u9ED8\u8BA4\u503C"),t(),e(168,"th"),n(169,"\u5168\u5C40\u914D\u7F6E"),t()()(),e(170,"tbody")(171,"tr")(172,"td")(173,"code"),n(174,"[nzTotal]"),t()(),e(175,"td"),n(176,"\u6570\u636E\u603B\u6570"),t(),e(177,"td")(178,"code"),n(179,"number"),t()(),e(180,"td"),n(181,"-"),t(),e(182,"td"),n(183,"-"),t()(),e(184,"tr")(185,"td")(186,"code"),n(187,"[nzPageIndex]"),t()(),e(188,"td"),n(189,"\u5F53\u524D\u9875\u6570\uFF0C\u53EF\u53CC\u5411\u7ED1\u5B9A"),t(),e(190,"td")(191,"code"),n(192,"number"),t()(),e(193,"td")(194,"code"),n(195,"1"),t()(),e(196,"td"),n(197,"-"),t()(),e(198,"tr")(199,"td")(200,"code"),n(201,"[nzPageSize]"),t()(),e(202,"td"),n(203,"\u6BCF\u9875\u6761\u6570 \uFF0C\u53EF\u53CC\u5411\u7ED1\u5B9A"),t(),e(204,"td")(205,"code"),n(206,"number"),t()(),e(207,"td")(208,"code"),n(209,"10"),t()(),e(210,"td"),n(211,"-"),t()(),e(212,"tr")(213,"td")(214,"code"),n(215,"[nzDisabled]"),t()(),e(216,"td"),n(217,"\u662F\u5426\u7981\u7528"),t(),e(218,"td")(219,"code"),n(220,"boolean"),t()(),e(221,"td")(222,"code"),n(223,"false"),t()(),e(224,"td"),n(225,"-"),t()(),e(226,"tr")(227,"td")(228,"code"),n(229,"[nzShowQuickJumper]"),t()(),e(230,"td"),n(231,"\u662F\u5426\u53EF\u4EE5\u5FEB\u901F\u8DF3\u8F6C\u81F3\u67D0\u9875"),t(),e(232,"td")(233,"code"),n(234,"boolean"),t()(),e(235,"td")(236,"code"),n(237,"false"),t()(),e(238,"td"),n(239,"\u2705"),t()(),e(240,"tr")(241,"td")(242,"code"),n(243,"[nzShowSizeChanger]"),t()(),e(244,"td"),n(245,"\u662F\u5426\u53EF\u4EE5\u6539\u53D8 "),e(246,"code"),n(247,"nzPageSize"),t()(),e(248,"td")(249,"code"),n(250,"boolean"),t()(),e(251,"td")(252,"code"),n(253,"false"),t()(),e(254,"td"),n(255,"\u2705"),t()(),e(256,"tr")(257,"td")(258,"code"),n(259,"[nzSimple]"),t()(),e(260,"td"),n(261,"\u5F53\u6DFB\u52A0\u8BE5\u5C5E\u6027\u65F6\uFF0C\u663E\u793A\u4E3A\u7B80\u5355\u5206\u9875"),t(),e(262,"td")(263,"code"),n(264,"boolean"),t()(),e(265,"td"),n(266,"-"),t(),e(267,"td"),n(268,"\u2705"),t()(),e(269,"tr")(270,"td")(271,"code"),n(272,"[nzSize]"),t()(),e(273,"td"),n(274,"\u5F53\u4E3A\u300Csmall\u300D\u65F6\uFF0C\u662F\u5C0F\u5C3A\u5BF8\u5206\u9875"),t(),e(275,"td")(276,"code"),n(277,"'small' | 'default'"),t()(),e(278,"td")(279,"code"),n(280,"'default'"),t()(),e(281,"td"),n(282,"\u2705"),t()(),e(283,"tr")(284,"td")(285,"code"),n(286,"[nzResponsive]"),t()(),e(287,"td"),n(288,"\u5F53 "),e(289,"code"),n(290,"nzSize"),t(),n(291," \u672A\u6307\u5B9A\u65F6\uFF0C\u6839\u636E\u5C4F\u5E55\u5BBD\u5EA6\u81EA\u52A8\u8C03\u6574\u5C3A\u5BF8"),t(),e(292,"td")(293,"code"),n(294,"boolean"),t()(),e(295,"td")(296,"code"),n(297,"false"),t()(),e(298,"td"),n(299,"-"),t()(),e(300,"tr")(301,"td")(302,"code"),n(303,"[nzPageSizeOptions]"),t()(),e(304,"td"),n(305,"\u6307\u5B9A\u6BCF\u9875\u53EF\u4EE5\u663E\u793A\u591A\u5C11\u6761"),t(),e(306,"td")(307,"code"),n(308,"number[]"),t()(),e(309,"td")(310,"code"),n(311,"[10, 20, 30, 40]"),t()(),e(312,"td"),n(313,"\u2705"),t()(),e(314,"tr")(315,"td")(316,"code"),n(317,"[nzItemRender]"),t()(),e(318,"td"),n(319,"\u7528\u4E8E\u81EA\u5B9A\u4E49\u9875\u7801\u7684\u7ED3\u6784"),t(),e(320,"td")(321,"code"),n(322,"TemplateRef<{ $implicit: 'page' | 'prev' | 'next'| 'prev_5'| 'next_5', page: number }>"),t()(),e(323,"td"),n(324,"-"),t(),e(325,"td"),n(326,"-"),t()(),e(327,"tr")(328,"td")(329,"code"),n(330,"[nzShowTotal]"),t()(),e(331,"td"),n(332,"\u7528\u4E8E\u663E\u793A\u6570\u636E\u603B\u91CF\u548C\u5F53\u524D\u6570\u636E\u8303\u56F4\uFF0C\u5177\u4F53\u4F7F\u7528\u65B9\u5F0F\u89C1\u4EE3\u7801\u6F14\u793A\u90E8\u5206"),t(),e(333,"td")(334,"code"),n(335,"TemplateRef<{ $implicit: number, range: [ number, number ] }>"),t()(),e(336,"td"),n(337,"-"),t(),e(338,"td"),n(339,"-"),t()(),e(340,"tr")(341,"td")(342,"code"),n(343,"[nzHideOnSinglePage]"),t()(),e(344,"td"),n(345,"\u53EA\u6709\u4E00\u9875\u65F6\u662F\u5426\u9690\u85CF\u5206\u9875\u5668"),t(),e(346,"td")(347,"code"),n(348,"boolean"),t()(),e(349,"td")(350,"code"),n(351,"false"),t()(),e(352,"td"),n(353,"-"),t()(),e(354,"tr")(355,"td")(356,"code"),n(357,"(nzPageIndexChange)"),t()(),e(358,"td"),n(359,"\u9875\u7801\u6539\u53D8\u7684\u56DE\u8C03"),t(),e(360,"td")(361,"code"),n(362,"EventEmitter<number>"),t()(),e(363,"td"),n(364,"-"),t(),e(365,"td"),n(366,"-"),t()(),e(367,"tr")(368,"td")(369,"code"),n(370,"(nzPageSizeChange)"),t()(),e(371,"td"),n(372,"\u6BCF\u9875\u6761\u6570\u6539\u53D8\u7684\u56DE\u8C03"),t(),e(373,"td")(374,"code"),n(375,"EventEmitter<number>"),t()(),e(376,"td"),n(377,"-"),t(),e(378,"td"),n(379,"-"),t()()()(),p(),t()()),o&2&&(l(),a("nzOffsetTop",16),l(),a("nzAffix",!1),l(54),a("nzGutter",8),l(),a("nzSpan",24),l(),a("nzId","components-pagination-demo-basic")("nzLink","components-pagination-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pagination/demo/basic.md"),l(5),a("nzId","components-pagination-demo-more")("nzLink","components-pagination-demo-more")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pagination/demo/more.md"),l(5),a("nzId","components-pagination-demo-changer")("nzLink","components-pagination-demo-changer")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pagination/demo/changer.md"),l(5),a("nzId","components-pagination-demo-jump")("nzLink","components-pagination-demo-jump")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pagination/demo/jump.md"),l(5),a("nzId","components-pagination-demo-mini")("nzLink","components-pagination-demo-mini")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pagination/demo/mini.md"),l(5),a("nzId","components-pagination-demo-simple")("nzLink","components-pagination-demo-simple")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pagination/demo/simple.md"),l(5),a("nzId","components-pagination-demo-controlled")("nzLink","components-pagination-demo-controlled")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pagination/demo/controlled.md"),l(5),a("nzId","components-pagination-demo-total")("nzLink","components-pagination-demo-total")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pagination/demo/total.md"),l(8),a("nzId","components-pagination-demo-item-render")("nzLink","components-pagination-demo-item-render")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pagination/demo/item-render.md"))},dependencies:[Z,h,G,L,O,M,A,R,H,j,J,Q,W,V,U,q,$,Y],encapsulation:2})}}return i})();var oe=(()=>{class i{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(o){return new(o||i)}}static{this.\u0275cmp=u({type:i,selectors:[["nz-demo-pagination"]],viewQuery:function(o,d){if(o&1&&F(h,5),o&2){let g;v(g=y())&&(d.codeBoxes=g)}},decls:391,vars:40,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-pagination-demo-basic","nzTitle","Basic"],["nzHref","#components-pagination-demo-more","nzTitle","More"],["nzHref","#components-pagination-demo-changer","nzTitle","Changer"],["nzHref","#components-pagination-demo-jump","nzTitle","Jumper"],["nzHref","#components-pagination-demo-mini","nzTitle","Mini size"],["nzHref","#components-pagination-demo-simple","nzTitle","Simple mode"],["nzHref","#components-pagination-demo-controlled","nzTitle","Page Index"],["nzHref","#components-pagination-demo-total","nzTitle","Total number"],["nzHref","#components-pagination-demo-item-render","nzTitle","Prev and next"],["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/pagination/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,"nzSpan"],["nzTitle","Basic","nzSelector","nz-demo-pagination-basic","nzGenerateCommand","ng g ng-zorro-antd:pagination-basic <name>","nzComponentName","NzDemoPaginationBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","More","nzSelector","nz-demo-pagination-more","nzGenerateCommand","ng g ng-zorro-antd:pagination-more <name>","nzComponentName","NzDemoPaginationMoreComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Changer","nzSelector","nz-demo-pagination-changer","nzGenerateCommand","ng g ng-zorro-antd:pagination-changer <name>","nzComponentName","NzDemoPaginationChangerComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Jumper","nzSelector","nz-demo-pagination-jump","nzGenerateCommand","ng g ng-zorro-antd:pagination-jump <name>","nzComponentName","NzDemoPaginationJumpComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Mini size","nzSelector","nz-demo-pagination-mini","nzGenerateCommand","ng g ng-zorro-antd:pagination-mini <name>","nzComponentName","NzDemoPaginationMiniComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Simple mode","nzSelector","nz-demo-pagination-simple","nzGenerateCommand","ng g ng-zorro-antd:pagination-simple <name>","nzComponentName","NzDemoPaginationSimpleComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Page Index","nzSelector","nz-demo-pagination-controlled","nzGenerateCommand","ng g ng-zorro-antd:pagination-controlled <name>","nzComponentName","NzDemoPaginationControlledComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Total number","nzSelector","nz-demo-pagination-total","nzGenerateCommand","ng g ng-zorro-antd:pagination-total <name>","nzComponentName","NzDemoPaginationTotalComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Prev and next","nzSelector","nz-demo-pagination-item-render","nzGenerateCommand","ng g ng-zorro-antd:pagination-item-render <name>","nzComponentName","NzDemoPaginationItemRenderComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],[1,"language-html"],[1,"token","tag"],[1,"token","attr-name"],[1,"token","attr-value"],["id","nz-pagination"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-pagination'",1,"anchor"]],template:function(o,d){o&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),N("nzClick",function(f){return d.goLink(f)}),r(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7)(9,"nz-link",8)(10,"nz-link",9)(11,"nz-link",10)(12,"nz-link",11),t()(),e(13,"section",12)(14,"h1"),n(15,"Pagination"),r(16,"span",13)(17,"span",14),e(18,"a",15),r(19,"nz-icon",16),t()(),e(20,"section",12),z(),e(21,"p"),n(22,"A long list can be divided into several pages by "),e(23,"code"),n(24,"Pagination"),t(),n(25,", and only one page will be loaded at a time."),t(),e(26,"h2",17)(27,"span"),n(28,"When To Use"),t(),e(29,"a",18),n(30,"#"),t()(),e(31,"ul")(32,"li"),n(33,"When it will take a long time to load/render all items."),t(),e(34,"li"),n(35,"If you want to browse the data by navigating through pages."),t()(),e(36,"pre",19)(37,"code")(38,"span",20),n(39,"import"),t(),n(40," "),e(41,"span",21),n(42,"{"),t(),n(43," NzPaginationModule "),e(44,"span",21),n(45,"}"),t(),n(46," "),e(47,"span",20),n(48,"from"),t(),n(49," "),e(50,"span",22),n(51,"'ng-zorro-antd/pagination'"),t(),e(52,"span",21),n(53,";"),t()()(),p(),t(),e(54,"h2")(55,"span"),n(56,"Examples"),t(),e(57,"span",23),N("click",function(){return d.expandAllCode()}),t()()(),e(58,"div",24)(59,"div",25)(60,"nz-code-box",26),r(61,"nz-demo-pagination-basic",27),e(62,"div",28),z(),e(63,"p"),n(64,"Basic pagination."),t(),p(),t()(),e(65,"nz-code-box",29),r(66,"nz-demo-pagination-more",27),e(67,"div",28),z(),e(68,"p"),n(69,"More pages."),t(),p(),t()(),e(70,"nz-code-box",30),r(71,"nz-demo-pagination-changer",27),e(72,"div",28),z(),e(73,"p"),n(74,"Change "),e(75,"code"),n(76,"nzPageSize"),t(),n(77,"."),t(),p(),t()(),e(78,"nz-code-box",31),r(79,"nz-demo-pagination-jump",27),e(80,"div",28),z(),e(81,"p"),n(82,"Jump to a page directly."),t(),p(),t()(),e(83,"nz-code-box",32),r(84,"nz-demo-pagination-mini",27),e(85,"div",28),z(),e(86,"p"),n(87,"Mini size pagination."),t(),p(),t()(),e(88,"nz-code-box",33),r(89,"nz-demo-pagination-simple",27),e(90,"div",28),z(),e(91,"p"),n(92,"Simple mode."),t(),p(),t()(),e(93,"nz-code-box",34),r(94,"nz-demo-pagination-controlled",27),e(95,"div",28),z(),e(96,"p"),n(97,"Change page index number."),t(),p(),t()(),e(98,"nz-code-box",35),r(99,"nz-demo-pagination-total",27),e(100,"div",28),z(),e(101,"p"),n(102,"You can show the total number of data by setting "),e(103,"code"),n(104,"nzShowTotal"),t(),n(105,"."),t(),p(),t()(),e(106,"nz-code-box",36),r(107,"nz-demo-pagination-item-render",27),e(108,"div",28),z(),e(109,"p"),n(110,"Use text link for prev and next button."),t(),p(),t()()()(),e(111,"section",37),z(),e(112,"h2",38)(113,"span"),n(114,"API"),t(),e(115,"a",39),n(116,"#"),t()(),e(117,"pre",40)(118,"code")(119,"span",41)(120,"span",41)(121,"span",21),n(122,"<"),t(),n(123,"nz-pagination"),t(),n(124," "),e(125,"span",42),n(126,"[nzPageIndex]"),t(),e(127,"span",43)(128,"span",21),n(129,"="),t(),e(130,"span",21),n(131,'"'),t(),n(132,"1"),e(133,"span",21),n(134,'"'),t()(),n(135," "),e(136,"span",42),n(137,"[nzTotal]"),t(),e(138,"span",43)(139,"span",21),n(140,"="),t(),e(141,"span",21),n(142,'"'),t(),n(143,"50"),e(144,"span",21),n(145,'"'),t()(),e(146,"span",21),n(147,">"),t()(),e(148,"span",41)(149,"span",41)(150,"span",21),n(151,"</"),t(),n(152,"nz-pagination"),t(),e(153,"span",21),n(154,">"),t()()()(),e(155,"h3",44)(156,"span"),n(157,"nz-pagination"),t(),e(158,"label",45),n(159,"component"),t(),e(160,"a",46),n(161,"#"),t()(),e(162,"table")(163,"thead")(164,"tr")(165,"th"),n(166,"Property"),t(),e(167,"th"),n(168,"Description"),t(),e(169,"th"),n(170,"Type"),t(),e(171,"th"),n(172,"Default"),t(),e(173,"th"),n(174,"Global Config"),t()()(),e(175,"tbody")(176,"tr")(177,"td")(178,"code"),n(179,"[nzTotal]"),t()(),e(180,"td"),n(181,"total number of data items"),t(),e(182,"td")(183,"code"),n(184,"number"),t()(),e(185,"td")(186,"code"),n(187,"0"),t()(),e(188,"td"),n(189,"-"),t()(),e(190,"tr")(191,"td")(192,"code"),n(193,"[nzPageIndex]"),t()(),e(194,"td"),n(195,"current page number\uFF0Cdouble binding"),t(),e(196,"td")(197,"code"),n(198,"number"),t()(),e(199,"td")(200,"code"),n(201,"1"),t()(),e(202,"td"),n(203,"-"),t()(),e(204,"tr")(205,"td")(206,"code"),n(207,"[nzPageSize]"),t()(),e(208,"td"),n(209,"number of data items per page, double binding"),t(),e(210,"td")(211,"code"),n(212,"number"),t()(),e(213,"td")(214,"code"),n(215,"10"),t()(),e(216,"td"),n(217,"-"),t()(),e(218,"tr")(219,"td")(220,"code"),n(221,"[nzDisabled]"),t()(),e(222,"td"),n(223,"disable pagination"),t(),e(224,"td")(225,"code"),n(226,"boolean"),t()(),e(227,"td")(228,"code"),n(229,"false"),t()(),e(230,"td"),n(231,"-"),t()(),e(232,"tr")(233,"td")(234,"code"),n(235,"[nzShowQuickJumper]"),t()(),e(236,"td"),n(237,"determine whether you can jump to pages directly"),t(),e(238,"td")(239,"code"),n(240,"boolean"),t()(),e(241,"td")(242,"code"),n(243,"false"),t()(),e(244,"td"),n(245,"\u2705"),t()(),e(246,"tr")(247,"td")(248,"code"),n(249,"[nzShowSizeChanger]"),t()(),e(250,"td"),n(251,"determine whether "),e(252,"code"),n(253,"nzPageSize"),t(),n(254," can be changed"),t(),e(255,"td")(256,"code"),n(257,"boolean"),t()(),e(258,"td")(259,"code"),n(260,"false"),t()(),e(261,"td"),n(262,"\u2705"),t()(),e(263,"tr")(264,"td")(265,"code"),n(266,"[nzSimple]"),t()(),e(267,"td"),n(268,"whether to use simple mode"),t(),e(269,"td")(270,"code"),n(271,"boolean"),t()(),e(272,"td"),n(273,"-"),t(),e(274,"td"),n(275,"\u2705"),t()(),e(276,"tr")(277,"td")(278,"code"),n(279,"[nzSize]"),t()(),e(280,"td"),n(281,"specify the size of "),e(282,"code"),n(283,"nz-pagination"),t(),n(284,", can be set to "),e(285,"code"),n(286,"small"),t()(),e(287,"td")(288,"code"),n(289,"'small' | 'default'"),t()(),e(290,"td")(291,"code"),n(292,"'default'"),t()(),e(293,"td"),n(294,"\u2705"),t()(),e(295,"tr")(296,"td")(297,"code"),n(298,"[nzResponsive]"),t()(),e(299,"td")(300,"code"),n(301,"Pagination"),t(),n(302," would resize according to the width of the window"),t(),e(303,"td")(304,"code"),n(305,"boolean"),t()(),e(306,"td")(307,"code"),n(308,"false"),t()(),e(309,"td"),n(310,"-"),t()(),e(311,"tr")(312,"td")(313,"code"),n(314,"[nzPageSizeOptions]"),t()(),e(315,"td"),n(316,"specify the sizeChanger options"),t(),e(317,"td")(318,"code"),n(319,"number[]"),t()(),e(320,"td")(321,"code"),n(322,"[10, 20, 30, 40]"),t()(),e(323,"td"),n(324,"\u2705"),t()(),e(325,"tr")(326,"td")(327,"code"),n(328,"[nzItemRender]"),t()(),e(329,"td"),n(330,"to customize item"),t(),e(331,"td")(332,"code"),n(333,"TemplateRef<{ $implicit: 'page' | 'prev' | 'next'| 'prev_5'| 'next_5', page: number }>"),t()(),e(334,"td"),n(335,"-"),t(),e(336,"td"),n(337,"-"),t()(),e(338,"tr")(339,"td")(340,"code"),n(341,"[nzShowTotal]"),t()(),e(342,"td"),n(343,"to display the total number and range"),t(),e(344,"td")(345,"code"),n(346,"TemplateRef<{ $implicit: number, range: [ number, number ] }>"),t()(),e(347,"td"),n(348,"-"),t(),e(349,"td"),n(350,"-"),t()(),e(351,"tr")(352,"td")(353,"code"),n(354,"[nzHideOnSinglePage]"),t()(),e(355,"td"),n(356,"Whether to hide pager on single page"),t(),e(357,"td")(358,"code"),n(359,"boolean"),t()(),e(360,"td")(361,"code"),n(362,"false"),t()(),e(363,"td"),n(364,"-"),t()(),e(365,"tr")(366,"td")(367,"code"),n(368,"(nzPageIndexChange)"),t()(),e(369,"td"),n(370,"current page number change callback"),t(),e(371,"td")(372,"code"),n(373,"EventEmitter<number>"),t()(),e(374,"td"),n(375,"-"),t(),e(376,"td"),n(377,"-"),t()(),e(378,"tr")(379,"td")(380,"code"),n(381,"(nzPageSizeChange)"),t()(),e(382,"td"),n(383,"number of data items per page change callback"),t(),e(384,"td")(385,"code"),n(386,"EventEmitter<number>"),t()(),e(387,"td"),n(388,"-"),t(),e(389,"td"),n(390,"-"),t()()()(),p(),t()()),o&2&&(l(),a("nzOffsetTop",16),l(),a("nzAffix",!1),l(56),a("nzGutter",8),l(),a("nzSpan",24),l(),a("nzId","components-pagination-demo-basic")("nzLink","components-pagination-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pagination/demo/basic.md"),l(5),a("nzId","components-pagination-demo-more")("nzLink","components-pagination-demo-more")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pagination/demo/more.md"),l(5),a("nzId","components-pagination-demo-changer")("nzLink","components-pagination-demo-changer")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pagination/demo/changer.md"),l(8),a("nzId","components-pagination-demo-jump")("nzLink","components-pagination-demo-jump")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pagination/demo/jump.md"),l(5),a("nzId","components-pagination-demo-mini")("nzLink","components-pagination-demo-mini")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pagination/demo/mini.md"),l(5),a("nzId","components-pagination-demo-simple")("nzLink","components-pagination-demo-simple")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pagination/demo/simple.md"),l(5),a("nzId","components-pagination-demo-controlled")("nzLink","components-pagination-demo-controlled")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pagination/demo/controlled.md"),l(5),a("nzId","components-pagination-demo-total")("nzLink","components-pagination-demo-total")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pagination/demo/total.md"),l(8),a("nzId","components-pagination-demo-item-render")("nzLink","components-pagination-demo-item-render")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pagination/demo/item-render.md"))},dependencies:[Z,h,G,L,O,M,A,R,H,j,J,Q,W,V,U,q,$,Y],encapsulation:2})}}return i})();var he=[{path:"en",component:oe},{path:"zh",component:ie}],zt=he;export{zt as default};