1 |
- import{_ as c}from"./index.c8cfbd6c.js";import{e as r,o as d,g as l,l as t,F as e,H as h,b as _,X as p}from"./@vue.e84e1286.js";import{p as s}from"./preview.2bfe2f00.js";import"./vue-router.54876e93.js";import"./bus.f1893518.js";import"./mitt.550594b0.js";/* empty css */const u={},g=t("span",null,"\u9875\u6570\u8F83\u5C11\u65F6\u7684\u6548\u679C",-1),f=t("span",null,"\u9875\u6570\u8F83\u591A\u65F6\u7684\u6548\u679C",-1);function b(a,n){const o=r("m-pagination");return d(),l(h,null,[t("div",null,[g,e(o,{total:50})]),t("div",null,[f,e(o,{total:200})])],64)}var v=c(u,[["render",b]]);const w={};function N(a,n){const o=r("m-pagination");return d(),_(o,{total:200,background:""})}var z=c(w,[["render",N]]);const $={};function x(a,n){const o=r("m-pagination");return d(),_(o,{total:50,size:"small"})}var k=c($,[["render",x]]);const y={};function C(a,n){const o=r("m-pagination");return d(),_(o,{total:200,"show-total":""})}var B=c(y,[["render",C]]);const S={__name:"demo5",setup(a){const n=o=>{console.log(o)};return(o,m)=>{const i=r("m-pagination");return d(),_(i,{total:200,"show-sizer":"",onSizeChange:n})}}},V={__name:"demo6",setup(a){const n=o=>{console.log(o)};return(o,m)=>{const i=r("m-pagination");return d(),_(i,{total:200,"show-elevator":"",onCurrentChange:n})}}},E={};function F(a,n){const o=r("m-pagination");return d(),l(h,null,[e(o,{total:200,"show-total":"","show-sizer":"","show-elevator":""}),e(o,{total:200,background:"","show-total":"","show-sizer":"","show-elevator":"",style:{"margin-top":"10px"}})],64)}var P=c(E,[["render",F]]);const A={class:"markdown-body"},H=t("h1",null,"Pagination \u5206\u9875",-1),X=t("h4",null,"\u5F53\u6570\u636E\u91CF\u8FC7\u591A\u65F6\uFF0C\u4F7F\u7528\u5206\u9875\u5206\u89E3\u6570\u636E\u3002",-1),j=t("br",null,null,-1),q=t("h2",null,"\u57FA\u7840\u7528\u6CD5",-1),D=t("h4",null,"\u57FA\u672C\u7684\u5206\u9875\uFF0C\u9875\u6570\u8FC7\u591A\u65F6\u4F1A\u81EA\u52A8\u6298\u53E0\u3002",-1),G={class:"source"},I=t("h2",null,"\u5E26\u6709\u80CC\u666F\u8272\u7684\u5206\u9875",-1),J=t("h4",null,"\u8BBE\u7F6Ebackground\u5C5E\u6027\u53EF\u4EE5\u4E3A\u5206\u9875\u6309\u94AE\u6DFB\u52A0\u80CC\u666F\u8272\u3002",-1),K={class:"source"},L=t("h2",null,"\u5C0F\u578B\u5206\u9875",-1),M=t("h4",null,"\u5728\u7A7A\u95F4\u6709\u9650\u7684\u60C5\u51B5\u4E0B\uFF0C\u53EF\u4EE5\u4F7F\u7528\u7B80\u5355\u7684\u5C0F\u578B\u5206\u9875\u3002\u8BBE\u7F6Esize\u4E3Asmall\u5373\u53EF\u3002",-1),O={class:"source"},Q=t("h2",null,"\u663E\u793A\u603B\u6570",-1),R=t("h4",null,"\u663E\u793A\u603B\u5171\u591A\u5C11\u6761\u6570\u636E\uFF0C\u4F20\u9012total\uFF0C\u5E76\u8BBE\u7F6Eshow-total \u4E3Atrue\u5373\u53EF\u3002",-1),T={class:"source"},U=t("h2",null,"\u6BCF\u9875\u6570\u91CF",-1),W=t("h4",null,"\u53EF\u4EE5\u5207\u6362\u6BCF\u9875\u663E\u793A\u7684\u6570\u91CF\u3002\u8BBE\u7F6Eshow-sizer \u4E3A true",-1),Y={class:"source"},Z=t("h2",null,"\u7535\u68AF",-1),tt=t("h4",null,"\u5FEB\u901F\u8DF3\u8F6C\u5230\u67D0\u4E00\u9875\u3002\u8BBE\u7F6Eshow-elevator \u4E3A true",-1),ot={class:"source"},et=t("h2",null,"\u5B8C\u6574\u529F\u80FD",-1),nt={class:"source"},dt=p("<br><h2>Attributes</h2><table><thead><tr><th>\u53C2\u6570</th><th>\u8BF4\u660E</th><th>\u7C7B\u578B</th><th>\u53EF\u9009\u503C</th><th>\u9ED8\u8BA4\u503C</th></tr></thead><tbody><tr><td>total</td><td>\u603B\u6761\u76EE\u6570</td><td>number</td><td>\u2014</td><td>\u2014</td></tr><tr><td>background</td><td>\u662F\u5426\u4E3A\u5206\u9875\u6309\u94AE\u6DFB\u52A0\u80CC\u666F\u8272</td><td>boolean</td><td>\u2014</td><td>false</td></tr><tr><td>small</td><td>\u53EF\u9009\u503C\u4E3Asmall\u6216\u4E0D\u586B\uFF08\u9ED8\u8BA4\uFF09</td><td>string</td><td>\u2014</td><td>\u2014</td></tr><tr><td>current-page</td><td>\u5F53\u524D\u9875\u6570</td><td>number</td><td>\u2014</td><td>1</td></tr><tr><td>page-size</td><td>\u6BCF\u9875\u663E\u793A\u6761\u76EE\u4E2A\u6570</td><td>number</td><td>\u2014</td><td>10</td></tr><tr><td>page-size-opts</td><td>\u6BCF\u9875\u663E\u793A\u4E2A\u6570\u9009\u62E9\u5668\u7684\u9009\u9879\u8BBE\u7F6E</td><td>array</td><td>\u2014</td><td>[10, 20, 30, 40]</td></tr><tr><td>show-total</td><td>\u663E\u793A\u603B\u6570</td><td>boolean</td><td>\u2014</td><td>false</td></tr><tr><td>show-elevator</td><td>\u663E\u793A\u7535\u68AF\uFF0C\u53EF\u4EE5\u5FEB\u901F\u5207\u6362\u5230\u67D0\u4E00\u9875</td><td>boolean</td><td>\u2014</td><td>false</td></tr><tr><td>show-sizer</td><td>\u663E\u793A\u5206\u9875\uFF0C\u7528\u6765\u6539\u53D8page-size</td><td>boolean</td><td>\u2014</td><td>false</td></tr></tbody></table><br><h2>Events</h2><table><thead><tr><th>\u4E8B\u4EF6\u540D\u79F0</th><th>\u8BF4\u660E</th><th>\u56DE\u8C03\u53C2\u6570</th></tr></thead><tbody><tr><td>size-change</td><td>pageSize \u6539\u53D8\u65F6\u4F1A\u89E6\u53D1</td><td>\u6BCF\u9875\u6761\u6570</td></tr><tr><td>current-change</td><td>currentPage \u6539\u53D8\u65F6\u4F1A\u89E6\u53D1</td><td>\u5F53\u524D\u9875</td></tr></tbody></table><br>",7),mt={__name:"doc",setup(a,{expose:n}){return n({frontmatter:{}}),(m,i)=>(d(),l("div",A,[H,X,j,q,D,t("div",G,[e(v)]),e(s,{compName:"pagination",demoName:"demo1"}),I,J,t("div",K,[e(z)]),e(s,{compName:"pagination",demoName:"demo2"}),L,M,t("div",O,[e(k)]),e(s,{compName:"pagination",demoName:"demo3"}),Q,R,t("div",T,[e(B)]),e(s,{compName:"pagination",demoName:"demo4"}),U,W,t("div",Y,[e(S)]),e(s,{compName:"pagination",demoName:"demo5"}),Z,tt,t("div",ot,[e(V)]),e(s,{compName:"pagination",demoName:"demo6"}),et,t("div",nt,[e(P)]),e(s,{compName:"pagination",demoName:"demo7"}),dt]))}};export{mt as default};
|