-
Notifications
You must be signed in to change notification settings - Fork 12
/
chunk-7R3UNZT7.js
1 lines (1 loc) · 35 KB
/
chunk-7R3UNZT7.js
1
import{a as g,b as me}from"./chunk-ZRZEHLRF.js";import"./chunk-BJ3MSG6P.js";import"./chunk-4YNB6IUB.js";import"./chunk-FIRHRBIN.js";import"./chunk-IODZHREK.js";import"./chunk-OT5GAY2Z.js";import{f as R,g as A,i as h,j as ae}from"./chunk-MVBTB2OL.js";import"./chunk-QH77Q77Q.js";import{B as oe,Gb as _,Hc as G,Ib as O,Jb as L,Rb as M}from"./chunk-SBXTKZGS.js";import{Ba as z,Ca as u,Da as N,Db as b,Ea as F,Fb as m,Hc as P,Ob as X,Tb as e,Ub as t,Vb as r,Zb as ee,ac as T,cc as te,ga as Y,jc as D,kb as l,kc as v,lc as y,mc as I,nc as n,oc as ne,pc as k,qa as c,ra as K,rc as ie,sc as B,tc as w,uc as H}from"./chunk-WVUROUXZ.js";import"./chunk-RKLIRILV.js";var re=[me];var Z=(()=>{let i=class i{};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=c({type:i,selectors:[["nz-demo-pagination-basic"]],decls:1,vars:2,consts:[[3,"nzPageIndex","nzTotal"]],template:function(a,p){a&1&&r(0,"nz-pagination",0),a&2&&m("nzPageIndex",1)("nzTotal",50)},dependencies:[g],encapsulation:2});let o=i;return o})();var j=(()=>{let i=class i{};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=c({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(a,p){a&1&&r(0,"nz-pagination",0)(1,"br")(2,"nz-pagination",1),a&2&&(m("nzPageIndex",3)("nzTotal",500)("nzPageSize",10),l(2),m("nzPageIndex",3)("nzTotal",500)("nzPageSize",10))},dependencies:[g],encapsulation:2});let o=i;return o})();var J=(()=>{let i=class i{};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=c({type:i,selectors:[["nz-demo-pagination-controlled"]],decls:1,vars:2,consts:[[3,"nzPageIndex","nzTotal"]],template:function(a,p){a&1&&r(0,"nz-pagination",0),a&2&&m("nzPageIndex",3)("nzTotal",50)},dependencies:[g],encapsulation:2});let o=i;return o})();function fe(o,i){if(o&1&&(e(0,"a"),n(1),t()),o&2){let x=te().page;l(),ne(x)}}function he(o,i){o&1&&(e(0,"a"),n(1,"Previous"),t())}function Ce(o,i){o&1&&(e(0,"a"),n(1,"Next"),t())}function be(o,i){o&1&&(e(0,"a"),n(1,"<<"),t())}function Ie(o,i){o&1&&(e(0,"a"),n(1,">>"),t())}function Pe(o,i){if(o&1&&b(0,fe,2,1,"a")(1,he,2,0,"a")(2,Ce,2,0,"a")(3,be,2,0,"a")(4,Ie,2,0,"a"),o&2){let x,d=i.$implicit;X((x=d)==="page"?0:x==="prev"?1:x==="next"?2:x==="prev_5"?3:x==="next_5"?4:-1)}}var Q=(()=>{let i=class i{};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=c({type:i,selectors:[["nz-demo-pagination-item-render"]],decls:3,vars:3,consts:[["renderItemTemplate",""],[3,"nzPageIndex","nzTotal","nzItemRender"]],template:function(a,p){if(a&1&&(r(0,"nz-pagination",1),b(1,Pe,5,1,"ng-template",null,0,P)),a&2){let s=I(2);m("nzPageIndex",1)("nzTotal",500)("nzItemRender",s)}},dependencies:[g],encapsulation:2});let o=i;return o})();var W=(()=>{let i=class i{};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=c({type:i,selectors:[["nz-demo-pagination-jump"]],decls:3,vars:4,consts:[["nzShowQuickJumper","",3,"nzPageIndex","nzTotal"],["nzShowQuickJumper","","nzDisabled","",3,"nzPageIndex","nzTotal"]],template:function(a,p){a&1&&r(0,"nz-pagination",0)(1,"br")(2,"nz-pagination",1),a&2&&(m("nzPageIndex",2)("nzTotal",500),l(2),m("nzPageIndex",2)("nzTotal",500))},dependencies:[g],encapsulation:2});let o=i;return o})();function Te(o,i){if(o&1&&n(0),o&2){let x=i.$implicit;k("Total ",x," items")}}var V=(()=>{let i=class i{constructor(){this.current=1}};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=c({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(a,p){if(a&1){let s=ee();e(0,"nz-pagination",1),H("nzPageIndexChange",function(S){return N(s),w(p.current,S)||(p.current=S),F(S)}),t(),r(1,"br"),e(2,"nz-pagination",2),H("nzPageIndexChange",function(S){return N(s),w(p.current,S)||(p.current=S),F(S)}),t(),r(3,"br"),e(4,"nz-pagination",3),H("nzPageIndexChange",function(S){return N(s),w(p.current,S)||(p.current=S),F(S)}),t(),b(5,Te,1,1,"ng-template",null,0,P)}if(a&2){let s=I(6);B("nzPageIndex",p.current),m("nzTotal",50)("nzSize","small"),l(2),B("nzPageIndex",p.current),m("nzTotal",50)("nzSize","small"),l(2),B("nzPageIndex",p.current),m("nzTotal",50)("nzSize","small")("nzShowTotal",s)}},dependencies:[g],encapsulation:2});let o=i;return o})();var U=(()=>{let i=class i{};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=c({type:i,selectors:[["nz-demo-pagination-more"]],decls:1,vars:2,consts:[[3,"nzPageIndex","nzTotal"]],template:function(a,p){a&1&&r(0,"nz-pagination",0),a&2&&m("nzPageIndex",1)("nzTotal",500)},dependencies:[g],encapsulation:2});let o=i;return o})();var q=(()=>{let i=class i{};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=c({type:i,selectors:[["nz-demo-pagination-simple"]],decls:1,vars:2,consts:[["nzSimple","",3,"nzPageIndex","nzTotal"]],template:function(a,p){a&1&&r(0,"nz-pagination",0),a&2&&m("nzPageIndex",2)("nzTotal",50)},dependencies:[g],encapsulation:2});let o=i;return o})();function Ne(o,i){if(o&1&&n(0),o&2){let x=i.$implicit;k("Total ",x," items")}}function Fe(o,i){if(o&1&&n(0),o&2){let x=i.range,d=i.$implicit;ie(" ",x[0],"-",x[1]," of ",d," items ")}}var $=(()=>{let i=class i{};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=c({type:i,selectors:[["nz-demo-pagination-total"]],decls:7,vars:8,consts:[["totalTemplate",""],["rangeTemplate",""],[3,"nzPageIndex","nzTotal","nzPageSize","nzShowTotal"]],template:function(a,p){if(a&1&&(r(0,"nz-pagination",2)(1,"br")(2,"nz-pagination",2),b(3,Ne,1,1,"ng-template",null,0,P)(5,Fe,1,3,"ng-template",null,1,P)),a&2){let s=I(4),f=I(6);m("nzPageIndex",1)("nzTotal",85)("nzPageSize",20)("nzShowTotal",s),l(2),m("nzPageIndex",1)("nzTotal",85)("nzPageSize",20)("nzShowTotal",f)}},dependencies:[g],encapsulation:2});let o=i;return o})();var Se=(()=>{let i=class i{constructor(){this.expanded=!1}goLink(d){window&&(window.location.hash=d)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(d=>d.expandCode(this.expanded))}};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=c({type:i,selectors:[["nz-demo-pagination"]],viewQuery:function(a,p){if(a&1&&D(h,5),a&2){let s;v(s=y())&&(p.codeBoxes=s)}},decls:382,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"],["nz-icon","","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:standalone"],[1,"api-type-label","component"],[1,"api-type-label","standalone"],["onclick","window.location.hash = 'nz-pagination:standalone'",1,"anchor"]],template:function(a,p){a&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),T("nzClick",function(f){return p.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,"span",16),t()(),e(21,"section",12),u(),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()()(),z(),t(),e(52,"h2")(53,"span"),n(54,"\u4EE3\u7801\u6F14\u793A"),t(),e(55,"span",23),T("click",function(){return p.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),u(),e(61,"p"),n(62,"\u57FA\u7840\u5206\u9875\u3002"),t(),z(),t()(),e(63,"nz-code-box",29),r(64,"nz-demo-pagination-more",27),e(65,"div",28),u(),e(66,"p"),n(67,"\u66F4\u591A\u5206\u9875\u3002"),t(),z(),t()(),e(68,"nz-code-box",30),r(69,"nz-demo-pagination-changer",27),e(70,"div",28),u(),e(71,"p"),n(72,"\u6539\u53D8\u6BCF\u9875\u663E\u793A\u6761\u76EE\u6570\u3002"),t(),z(),t()(),e(73,"nz-code-box",31),r(74,"nz-demo-pagination-jump",27),e(75,"div",28),u(),e(76,"p"),n(77,"\u5FEB\u901F\u8DF3\u8F6C\u5230\u67D0\u4E00\u9875\u3002"),t(),z(),t()(),e(78,"nz-code-box",32),r(79,"nz-demo-pagination-mini",27),e(80,"div",28),u(),e(81,"p"),n(82,"\u8FF7\u4F60\u7248\u672C\u3002"),t(),z(),t()(),e(83,"nz-code-box",33),r(84,"nz-demo-pagination-simple",27),e(85,"div",28),u(),e(86,"p"),n(87,"\u7B80\u5355\u7684\u7FFB\u9875\u3002"),t(),z(),t()(),e(88,"nz-code-box",34),r(89,"nz-demo-pagination-controlled",27),e(90,"div",28),u(),e(91,"p"),n(92,"\u6539\u53D8\u9875\u7801\u3002"),t(),z(),t()(),e(93,"nz-code-box",35),r(94,"nz-demo-pagination-total",27),e(95,"div",28),u(),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(),z(),t()(),e(101,"nz-code-box",36),r(102,"nz-demo-pagination-item-render",27),e(103,"div",28),u(),e(104,"p"),n(105,"\u4FEE\u6539\u4E0A\u4E00\u6B65\u548C\u4E0B\u4E00\u6B65\u4E3A\u6587\u5B57\u94FE\u63A5\u3002"),t(),z(),t()()()(),e(106,"section",37),u(),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,"label",46),n(156,"standalone"),t(),e(157,"a",47),n(158,"#"),t()(),e(159,"table")(160,"thead")(161,"tr")(162,"th"),n(163,"\u53C2\u6570"),t(),e(164,"th"),n(165,"\u8BF4\u660E"),t(),e(166,"th"),n(167,"\u7C7B\u578B"),t(),e(168,"th"),n(169,"\u9ED8\u8BA4\u503C"),t(),e(170,"th"),n(171,"\u5168\u5C40\u914D\u7F6E"),t()()(),e(172,"tbody")(173,"tr")(174,"td")(175,"code"),n(176,"[nzTotal]"),t()(),e(177,"td"),n(178,"\u6570\u636E\u603B\u6570"),t(),e(179,"td")(180,"code"),n(181,"number"),t()(),e(182,"td"),n(183,"-"),t(),e(184,"td"),n(185,"-"),t()(),e(186,"tr")(187,"td")(188,"code"),n(189,"[nzPageIndex]"),t()(),e(190,"td"),n(191,"\u5F53\u524D\u9875\u6570\uFF0C\u53EF\u53CC\u5411\u7ED1\u5B9A"),t(),e(192,"td")(193,"code"),n(194,"number"),t()(),e(195,"td")(196,"code"),n(197,"1"),t()(),e(198,"td"),n(199,"-"),t()(),e(200,"tr")(201,"td")(202,"code"),n(203,"[nzPageSize]"),t()(),e(204,"td"),n(205,"\u6BCF\u9875\u6761\u6570 \uFF0C\u53EF\u53CC\u5411\u7ED1\u5B9A"),t(),e(206,"td")(207,"code"),n(208,"number"),t()(),e(209,"td")(210,"code"),n(211,"10"),t()(),e(212,"td"),n(213,"-"),t()(),e(214,"tr")(215,"td")(216,"code"),n(217,"[nzDisabled]"),t()(),e(218,"td"),n(219,"\u662F\u5426\u7981\u7528"),t(),e(220,"td")(221,"code"),n(222,"boolean"),t()(),e(223,"td")(224,"code"),n(225,"false"),t()(),e(226,"td"),n(227,"-"),t()(),e(228,"tr")(229,"td")(230,"code"),n(231,"[nzShowQuickJumper]"),t()(),e(232,"td"),n(233,"\u662F\u5426\u53EF\u4EE5\u5FEB\u901F\u8DF3\u8F6C\u81F3\u67D0\u9875"),t(),e(234,"td")(235,"code"),n(236,"boolean"),t()(),e(237,"td")(238,"code"),n(239,"false"),t()(),e(240,"td"),n(241,"\u2705"),t()(),e(242,"tr")(243,"td")(244,"code"),n(245,"[nzShowSizeChanger]"),t()(),e(246,"td"),n(247,"\u662F\u5426\u53EF\u4EE5\u6539\u53D8 "),e(248,"code"),n(249,"nzPageSize"),t()(),e(250,"td")(251,"code"),n(252,"boolean"),t()(),e(253,"td")(254,"code"),n(255,"false"),t()(),e(256,"td"),n(257,"\u2705"),t()(),e(258,"tr")(259,"td")(260,"code"),n(261,"[nzSimple]"),t()(),e(262,"td"),n(263,"\u5F53\u6DFB\u52A0\u8BE5\u5C5E\u6027\u65F6\uFF0C\u663E\u793A\u4E3A\u7B80\u5355\u5206\u9875"),t(),e(264,"td")(265,"code"),n(266,"boolean"),t()(),e(267,"td"),n(268,"-"),t(),e(269,"td"),n(270,"\u2705"),t()(),e(271,"tr")(272,"td")(273,"code"),n(274,"[nzSize]"),t()(),e(275,"td"),n(276,"\u5F53\u4E3A\u300Csmall\u300D\u65F6\uFF0C\u662F\u5C0F\u5C3A\u5BF8\u5206\u9875"),t(),e(277,"td")(278,"code"),n(279,"'small' | 'default'"),t()(),e(280,"td")(281,"code"),n(282,"'default'"),t()(),e(283,"td"),n(284,"\u2705"),t()(),e(285,"tr")(286,"td")(287,"code"),n(288,"[nzResponsive]"),t()(),e(289,"td"),n(290,"\u5F53 "),e(291,"code"),n(292,"nzSize"),t(),n(293," \u672A\u6307\u5B9A\u65F6\uFF0C\u6839\u636E\u5C4F\u5E55\u5BBD\u5EA6\u81EA\u52A8\u8C03\u6574\u5C3A\u5BF8"),t(),e(294,"td")(295,"code"),n(296,"boolean"),t()(),e(297,"td")(298,"code"),n(299,"false"),t()(),e(300,"td"),n(301,"-"),t()(),e(302,"tr")(303,"td")(304,"code"),n(305,"[nzPageSizeOptions]"),t()(),e(306,"td"),n(307,"\u6307\u5B9A\u6BCF\u9875\u53EF\u4EE5\u663E\u793A\u591A\u5C11\u6761"),t(),e(308,"td")(309,"code"),n(310,"number[]"),t()(),e(311,"td")(312,"code"),n(313,"[10, 20, 30, 40]"),t()(),e(314,"td"),n(315,"\u2705"),t()(),e(316,"tr")(317,"td")(318,"code"),n(319,"[nzItemRender]"),t()(),e(320,"td"),n(321,"\u7528\u4E8E\u81EA\u5B9A\u4E49\u9875\u7801\u7684\u7ED3\u6784"),t(),e(322,"td")(323,"code"),n(324,"TemplateRef<{ $implicit: 'page' | 'prev' | 'next'| 'prev_5'| 'next_5', page: number }>"),t()(),e(325,"td"),n(326,"-"),t(),e(327,"td"),n(328,"-"),t()(),e(329,"tr")(330,"td")(331,"code"),n(332,"[nzShowTotal]"),t()(),e(333,"td"),n(334,"\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(335,"td")(336,"code"),n(337,"TemplateRef<{ $implicit: number, range: [ number, number ] }>"),t()(),e(338,"td"),n(339,"-"),t(),e(340,"td"),n(341,"-"),t()(),e(342,"tr")(343,"td")(344,"code"),n(345,"[nzHideOnSinglePage]"),t()(),e(346,"td"),n(347,"\u53EA\u6709\u4E00\u9875\u65F6\u662F\u5426\u9690\u85CF\u5206\u9875\u5668"),t(),e(348,"td")(349,"code"),n(350,"boolean"),t()(),e(351,"td")(352,"code"),n(353,"false"),t()(),e(354,"td"),n(355,"-"),t()(),e(356,"tr")(357,"td")(358,"code"),n(359,"(nzPageIndexChange)"),t()(),e(360,"td"),n(361,"\u9875\u7801\u6539\u53D8\u7684\u56DE\u8C03"),t(),e(362,"td")(363,"code"),n(364,"EventEmitter<number>"),t()(),e(365,"td"),n(366,"-"),t(),e(367,"td"),n(368,"-"),t()(),e(369,"tr")(370,"td")(371,"code"),n(372,"(nzPageSizeChange)"),t()(),e(373,"td"),n(374,"\u6BCF\u9875\u6761\u6570\u6539\u53D8\u7684\u56DE\u8C03"),t(),e(375,"td")(376,"code"),n(377,"EventEmitter<number>"),t()(),e(378,"td"),n(379,"-"),t(),e(380,"td"),n(381,"-"),t()()()(),z(),t()()),a&2&&(l(),m("nzOffsetTop",16),l(),m("nzAffix",!1),l(54),m("nzGutter",8),l(),m("nzSpan",24),l(),m("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),m("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),m("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),m("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),m("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),m("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),m("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),m("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),m("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:[h,R,A,_,L,O,G,M,Z,j,J,Q,W,V,U,q,$],encapsulation:2});let o=i;return o})();var Ee=(()=>{let i=class i{constructor(){this.expanded=!1}goLink(d){window&&(window.location.hash=d)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(d=>d.expandCode(this.expanded))}};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=c({type:i,selectors:[["nz-demo-pagination"]],viewQuery:function(a,p){if(a&1&&D(h,5),a&2){let s;v(s=y())&&(p.codeBoxes=s)}},decls:393,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"],["nz-icon","","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:standalone"],[1,"api-type-label","component"],[1,"api-type-label","standalone"],["onclick","window.location.hash = 'nz-pagination:standalone'",1,"anchor"]],template:function(a,p){a&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),T("nzClick",function(f){return p.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,"span",16),t()(),e(20,"section",12),u(),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()()(),z(),t(),e(54,"h2")(55,"span"),n(56,"Examples"),t(),e(57,"span",23),T("click",function(){return p.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),u(),e(63,"p"),n(64,"Basic pagination."),t(),z(),t()(),e(65,"nz-code-box",29),r(66,"nz-demo-pagination-more",27),e(67,"div",28),u(),e(68,"p"),n(69,"More pages."),t(),z(),t()(),e(70,"nz-code-box",30),r(71,"nz-demo-pagination-changer",27),e(72,"div",28),u(),e(73,"p"),n(74,"Change "),e(75,"code"),n(76,"nzPageSize"),t(),n(77,"."),t(),z(),t()(),e(78,"nz-code-box",31),r(79,"nz-demo-pagination-jump",27),e(80,"div",28),u(),e(81,"p"),n(82,"Jump to a page directly."),t(),z(),t()(),e(83,"nz-code-box",32),r(84,"nz-demo-pagination-mini",27),e(85,"div",28),u(),e(86,"p"),n(87,"Mini size pagination."),t(),z(),t()(),e(88,"nz-code-box",33),r(89,"nz-demo-pagination-simple",27),e(90,"div",28),u(),e(91,"p"),n(92,"Simple mode."),t(),z(),t()(),e(93,"nz-code-box",34),r(94,"nz-demo-pagination-controlled",27),e(95,"div",28),u(),e(96,"p"),n(97,"Change page index number."),t(),z(),t()(),e(98,"nz-code-box",35),r(99,"nz-demo-pagination-total",27),e(100,"div",28),u(),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(),z(),t()(),e(106,"nz-code-box",36),r(107,"nz-demo-pagination-item-render",27),e(108,"div",28),u(),e(109,"p"),n(110,"Use text link for prev and next button."),t(),z(),t()()()(),e(111,"section",37),u(),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,"label",46),n(161,"standalone"),t(),e(162,"a",47),n(163,"#"),t()(),e(164,"table")(165,"thead")(166,"tr")(167,"th"),n(168,"Property"),t(),e(169,"th"),n(170,"Description"),t(),e(171,"th"),n(172,"Type"),t(),e(173,"th"),n(174,"Default"),t(),e(175,"th"),n(176,"Global Config"),t()()(),e(177,"tbody")(178,"tr")(179,"td")(180,"code"),n(181,"[nzTotal]"),t()(),e(182,"td"),n(183,"total number of data items"),t(),e(184,"td")(185,"code"),n(186,"number"),t()(),e(187,"td")(188,"code"),n(189,"0"),t()(),e(190,"td"),n(191,"-"),t()(),e(192,"tr")(193,"td")(194,"code"),n(195,"[nzPageIndex]"),t()(),e(196,"td"),n(197,"current page number\uFF0Cdouble binding"),t(),e(198,"td")(199,"code"),n(200,"number"),t()(),e(201,"td")(202,"code"),n(203,"1"),t()(),e(204,"td"),n(205,"-"),t()(),e(206,"tr")(207,"td")(208,"code"),n(209,"[nzPageSize]"),t()(),e(210,"td"),n(211,"number of data items per page, double binding"),t(),e(212,"td")(213,"code"),n(214,"number"),t()(),e(215,"td")(216,"code"),n(217,"10"),t()(),e(218,"td"),n(219,"-"),t()(),e(220,"tr")(221,"td")(222,"code"),n(223,"[nzDisabled]"),t()(),e(224,"td"),n(225,"disable pagination"),t(),e(226,"td")(227,"code"),n(228,"boolean"),t()(),e(229,"td")(230,"code"),n(231,"false"),t()(),e(232,"td"),n(233,"-"),t()(),e(234,"tr")(235,"td")(236,"code"),n(237,"[nzShowQuickJumper]"),t()(),e(238,"td"),n(239,"determine whether you can jump to pages directly"),t(),e(240,"td")(241,"code"),n(242,"boolean"),t()(),e(243,"td")(244,"code"),n(245,"false"),t()(),e(246,"td"),n(247,"\u2705"),t()(),e(248,"tr")(249,"td")(250,"code"),n(251,"[nzShowSizeChanger]"),t()(),e(252,"td"),n(253,"determine whether "),e(254,"code"),n(255,"nzPageSize"),t(),n(256," can be changed"),t(),e(257,"td")(258,"code"),n(259,"boolean"),t()(),e(260,"td")(261,"code"),n(262,"false"),t()(),e(263,"td"),n(264,"\u2705"),t()(),e(265,"tr")(266,"td")(267,"code"),n(268,"[nzSimple]"),t()(),e(269,"td"),n(270,"whether to use simple mode"),t(),e(271,"td")(272,"code"),n(273,"boolean"),t()(),e(274,"td"),n(275,"-"),t(),e(276,"td"),n(277,"\u2705"),t()(),e(278,"tr")(279,"td")(280,"code"),n(281,"[nzSize]"),t()(),e(282,"td"),n(283,"specify the size of "),e(284,"code"),n(285,"nz-pagination"),t(),n(286,", can be set to "),e(287,"code"),n(288,"small"),t()(),e(289,"td")(290,"code"),n(291,"'small' | 'default'"),t()(),e(292,"td")(293,"code"),n(294,"'default'"),t()(),e(295,"td"),n(296,"\u2705"),t()(),e(297,"tr")(298,"td")(299,"code"),n(300,"[nzResponsive]"),t()(),e(301,"td")(302,"code"),n(303,"Pagination"),t(),n(304," would resize according to the width of the window"),t(),e(305,"td")(306,"code"),n(307,"boolean"),t()(),e(308,"td")(309,"code"),n(310,"false"),t()(),e(311,"td"),n(312,"-"),t()(),e(313,"tr")(314,"td")(315,"code"),n(316,"[nzPageSizeOptions]"),t()(),e(317,"td"),n(318,"specify the sizeChanger options"),t(),e(319,"td")(320,"code"),n(321,"number[]"),t()(),e(322,"td")(323,"code"),n(324,"[10, 20, 30, 40]"),t()(),e(325,"td"),n(326,"\u2705"),t()(),e(327,"tr")(328,"td")(329,"code"),n(330,"[nzItemRender]"),t()(),e(331,"td"),n(332,"to customize item"),t(),e(333,"td")(334,"code"),n(335,"TemplateRef<{ $implicit: 'page' | 'prev' | 'next'| 'prev_5'| 'next_5', page: number }>"),t()(),e(336,"td"),n(337,"-"),t(),e(338,"td"),n(339,"-"),t()(),e(340,"tr")(341,"td")(342,"code"),n(343,"[nzShowTotal]"),t()(),e(344,"td"),n(345,"to display the total number and range"),t(),e(346,"td")(347,"code"),n(348,"TemplateRef<{ $implicit: number, range: [ number, number ] }>"),t()(),e(349,"td"),n(350,"-"),t(),e(351,"td"),n(352,"-"),t()(),e(353,"tr")(354,"td")(355,"code"),n(356,"[nzHideOnSinglePage]"),t()(),e(357,"td"),n(358,"Whether to hide pager on single page"),t(),e(359,"td")(360,"code"),n(361,"boolean"),t()(),e(362,"td")(363,"code"),n(364,"false"),t()(),e(365,"td"),n(366,"-"),t()(),e(367,"tr")(368,"td")(369,"code"),n(370,"(nzPageIndexChange)"),t()(),e(371,"td"),n(372,"current page number change callback"),t(),e(373,"td")(374,"code"),n(375,"EventEmitter<number>"),t()(),e(376,"td"),n(377,"-"),t(),e(378,"td"),n(379,"-"),t()(),e(380,"tr")(381,"td")(382,"code"),n(383,"(nzPageSizeChange)"),t()(),e(384,"td"),n(385,"number of data items per page change callback"),t(),e(386,"td")(387,"code"),n(388,"EventEmitter<number>"),t()(),e(389,"td"),n(390,"-"),t(),e(391,"td"),n(392,"-"),t()()()(),z(),t()()),a&2&&(l(),m("nzOffsetTop",16),l(),m("nzAffix",!1),l(56),m("nzGutter",8),l(),m("nzSpan",24),l(),m("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),m("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),m("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),m("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),m("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),m("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),m("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),m("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),m("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:[h,R,A,_,L,O,G,M,Z,j,J,Q,W,V,U,q,$],encapsulation:2});let o=i;return o})();var dt=(()=>{let i=class i{};i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=K({type:i}),i.\u0275inj=Y({imports:[ae,re,oe.forChild([{path:"en",component:Ee},{path:"zh",component:Se}])]});let o=i;return o})();export{dt as NzDemoPaginationModule};