import{B as e}from"./index127.js?v=1761009159";import{r as a,w as s,c as l,e as t}from"./base-lib.js?v=1761009159";const o=({key:o,name:n,options:i,event:u,ignore:d,field:g,showEdit:p=!0})=>{const r=a(),v=a("all"),c=a(i instanceof Function?i():i),f={getClassList:u.get,addClass:u.add,editClass:u.update,deleteClass:u.delete},m=e=>{v.value=e},y=e=>{c.value=e};return{init:({ref:a,param:i,columns:C,config:h,refresh:b})=>(s(v,e=>{o&&(i.value[o]=v.value,h.pageKeys.page&&1!==i.value[h.pageKeys.page]?i.value[h.pageKeys.page]=1:b())}),u.get&&u.get().then(e=>{c.value=e}),{BtTableCategory:l(()=>()=>t(e,{ref:r,modelValue:v.value,"onUpdate:modelValue":e=>v.value=e,name:n,options:c.value,config:f,showEdit:p,"onUpdate:options":y,onChange:m,ignore:d||[],field:g||"ps"},null)),classList:c,categoryRef:()=>r.value}),classList:c}};export{o as u};
