System.register(["./base-lib-legacy.js?v=1761009159","./utils-lib-legacy.js?v=1761009159"],function(e,t){"use strict";var a,l,n,u,r,o,i,s,c,p,d,g,v,f,x,b,h,y,k;return{setters:[function(e){a=e.c,l=e.X,n=e.Y,u=e.b,r=e.au,o=e.g,i=e.w,s=e.q,c=e.v,p=e.x,d=e.N,g=e.m,v=e.y,f=e.D,x=e.z,b=e.A,h=e.F,y=e.av},function(e){k=e._}],execute:function(){var t={key:1,class:"flex items-center h-[28px]"},m={class:"!border-solid !border-1 !border-light !px-[10px] !h-[28px] leading-[28px] text-center"},w=a({__name:"index",props:l({row:{},page:{},total:{},type:{default:"default"},name:{default:"row"},layout:{default:"prev, pager, next, sizes, total, jumper"},rowList:{default:function(){return[10,20,50,100]}},useStorage:{type:Boolean,default:!0}},{row:{default:10},rowModifiers:{},page:{default:1},pageModifiers:{},total:{default:0},totalModifiers:{}}),emits:l(["change"],["update:row","update:page","update:total"]),setup:function(e,a){var l=a.emit,k=n(e,"row"),w=n(e,"page"),z=n(e,"total"),_=e,C=u(),S="".concat(null==C?void 0:C.fullPath.replace(/\//g,"_"),"_").concat(null==_?void 0:_.name),$=r(S,k.value||_.rowList[0]),j=l,L=o(function(){return k.value=_.useStorage?$.value:k.value,_.useStorage?$.value:k.value});i(function(){return $.value},function(e){e!==k.value&&(k.value=e,j("change",w.value,e))});var M=function(e){w.value=1,e!==k.value&&(k.value=e),$.value=e,j("change",w.value,e)},q=function(e){w.value=e,j("change",e,L.value)};return s(function(){}),function(e,a){var l=y;return c(),p(h,null,["default"===e.type?(c(),d(l,g({key:0,background:"",size:"small"},e.$attrs,{total:z.value,"page-size":v(L),"page-sizes":e.rowList,"current-page":w.value,"pager-count":5,layout:e.layout,onSizeChange:M,onCurrentChange:q}),null,16,["total","page-size","page-sizes","current-page","layout"])):f("",!0),"unknown"===e.type?(c(),p("div",t,[w.value>1?(c(),p("span",{key:0,class:"bt-link !border-solid !border-1 !border-light !px-[10px] !h-[28px] leading-[28px] text-center",onClick:a[0]||(a[0]=function(t){return e.$emit("change",1,t)})}," 首页 ")):f("",!0),w.value>1?(c(),p("span",{key:1,class:"bt-link !border-solid !border-1 !border-light !px-[10px] !h-[28px] leading-[28px] text-center",onClick:a[1]||(a[1]=function(t){return e.$emit("change",w.value-1,t)})}," 上一页 ")):f("",!0),k.value>=z.value?(c(),p("span",{key:2,class:"bt-link !border-solid !border-1 !border-light !px-[10px] !h-[28px] leading-[28px] text-center",onClick:a[2]||(a[2]=function(t){return e.$emit("change",w.value+1,t)})}," 下一页 ")):f("",!0),x("span",m," 第 "+b(w.value)+" 页 ",1)])):f("",!0)],64)}}});e("_",k(w,[["__scopeId","data-v-2b0b56a9"]]))}}});
