import{n as e,Q as a,_ as s}from"./utils-lib.js?v=1761009159";import{c as l,X as t,Y as o,y as d,g as i,v as n,N as u,B as r,z as p,x as m,D as c,A as f,K as v,b0 as b,F as g,m as C,al as _,ak as y}from"./base-lib.js?v=1761009159";const h={key:0},V=s(l({__name:"index",props:t({name:{default:"bt-table-type"},size:{default:"default"},options:{default:()=>[{label:"全部分类",value:"all"}]},ignore:{default:()=>[]},config:{default:()=>({getClassList:()=>Promise.resolve([]),addClass:()=>Promise.resolve(),editClass:()=>Promise.resolve(),deleteClass:()=>Promise.resolve(),field:"ps"})},field:{default:"ps"},showEdit:{type:Boolean,default:!0}},{modelValue:{default:()=>"all",type:String},modelModifiers:{}}),emits:t(["change","update:options"],["update:modelValue"]),setup(s,{expose:l,emit:t}){const V=s,x=t,E=o(s,"modelValue"),{getClassList:P,addClass:k,editClass:w,deleteClass:L}=d(V.config),j=i(()=>"all"!==E.value),z=i(()=>"small"===V.size),B=e=>{x("change",e)},D=async e=>{x("update:options",e)},A=()=>{e({title:"分类管理",area:"54",compData:{ignore:V.ignore,field:V.field,getClassList:P,addClass:k,editClass:w,deleteClass:L,updateOptions:D,showEdit:V.showEdit},component:()=>a(()=>import("./class-manage.js?v=1761009159"),__vite__mapDeps([]),import.meta.url)})};return l({setClassManage:A}),(e,a)=>{const s=y,l=_;return n(),u(l,C({modelValue:E.value,"onUpdate:modelValue":a[0]||(a[0]=e=>E.value=e),class:[{"select-active":d(j),"!w-[11rem]":d(z)}]},e.$attrs,{onChange:B}),{label:r(({label:e})=>[p("div",{class:v([{"text-primary":d(j)},"flex items-center "])},[d(j)&&d(z)?(n(),m("span",h,"分类：")):c("",!0),p("span",null,f(e),1)],2)]),footer:r(()=>[p("span",{class:"select-type-line",onClick:A},"分类管理")]),default:r(()=>[(n(!0),m(g,null,b(e.options,(e,a)=>(n(),u(s,{key:a,label:e.label,value:e.value,disabled:null==e?void 0:e.disabled,class:"select-custom-hover"},null,8,["label","value","disabled"]))),128))]),_:1},16,["modelValue","class"])}}}),[["__scopeId","data-v-390ae901"]]);export{V as B};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = []
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
