import e from"../_util/classNames.mjs";import t from"../_util/vue-types/index.mjs";import{createVNode as n,defineComponent as r}from"vue";var i=r({compatConfig:{MODE:3},name:`Pager`,inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:t.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:[`click`,`keypress`],setup(t,{emit:r,attrs:i}){let a=()=>{r(`click`,t.page)},o=e=>{r(`keypress`,e,a,t.page)};return()=>{let{showTitle:r,page:s,itemRender:c}=t,{class:l,style:u}=i,d=`${t.rootPrefixCls}-item`,f=e(d,`${d}-${t.page}`,{[`${d}-active`]:t.active,[`${d}-disabled`]:!t.page},l);return n(`li`,{onClick:a,onKeypress:o,title:r?String(s):null,tabindex:`0`,class:f,style:u},[c({page:s,type:`page`,originalElement:n(`a`,{rel:`nofollow`},[s])})])}}});export{i as default};