import{u as o}from"./useTable-BFClY0KQ.js";import{a as e}from"./guild-BH8jkqDq.js";import{_ as i}from"./index-C4WacTPc.js";import{_ as r}from"./index-BVNligJO.js";import{d as s,aD as t,o as n,e as p,f as a,p as m,u as l,I as j}from"./index-ip5gDR6L.js";import"./useTableColumns-C9X2IKmh.js";/* empty css               *//* empty css                  *//* empty css                  *//* empty css                     *//* empty css                  *//* empty css                 *//* empty css                    */import"./el-tooltip-l0sNRNKZ.js";import"./index-DbRz3Zuu.js";import"./index-fnD_mPvE.js";import"./index-C9KXwj2c.js";import"./index-CHAf6FpU.js";import"./use-form-item-BDb3ZgPk.js";import"./use-form-common-props-BwBs_jod.js";import"./_initCloneObject-DwsgJamq.js";import"./isArrayLikeObject-OMLaZ5Za.js";import"./index-Br3btmwp.js";import"./index-D1xXI5gl.js";import"./token-DWNpOE8r.js";import"./index-D-10FtUD.js";import"./scroll-ChxXkPhM.js";import"./debounce-B9s63_mG.js";import"./index-Jz5GfFad.js";import"./vnode-6FKeug3R.js";import"./index-KXWZe8V3.js";import"./index-D-iZIej9.js";import"./index-DfrOVkw6.js";import"./_plugin-vue_export-helper-BCo6x5W8.js";import"./el-popover-Do33geGb.js";import"./el-dropdown-item-DEgPCg9g.js";import"./index-opP5No9I.js";import"./refs-Cw5r5QN8.js";/* empty css                  */import"./index.vue_vue_type_script_setup_true_lang-CCGboj8m.js";/* empty css                  */const d=s({__name:"index",setup(s){const d=t(),u=Number(d.query.guildId||1),{data:g,loading:c,columns:x,pagination:b,handleSizeChange:_,handleCurrentChange:f,getData:h}=o({core:{apiFn:o=>e({guildId:u,page:o.current,pageSize:o.size}),apiParams:{current:1,size:20},columnsFactory:()=>[{prop:"id",label:"ID"},{prop:"userId",label:"用户ID"},{prop:"role",label:"角色"},{prop:"startTime",label:"加入时间"}]}});return n(()=>{h()}),(o,e)=>(a(),p("div",null,[m(r,{columns:l(x),"onUpdate:columns":e[0]||(e[0]=o=>j(x)?x.value=o:null),loading:l(c),onRefresh:l(h)},null,8,["columns","loading","onRefresh"]),m(i,{loading:l(c),data:l(g),columns:l(x),pagination:l(b),"onPagination:sizeChange":l(_),"onPagination:currentChange":l(f)},null,8,["loading","data","columns","pagination","onPagination:sizeChange","onPagination:currentChange"])]))}});export{d as default};
