import{ref as c,createElementBlock as p,openBlock as r,createElementVNode as e,toDisplayString as l,unref as o,withDirectives as i,renderSlot as d,vShow as u}from"/vue.js";const f={class:"nc-collapse"},m={class:"nc-collapse-menu"},h=Object.assign({name:"NcCollapse"},{__name:"nc-collapse",props:{option:{type:[Object,Array,String],default:void 0},opened:{type:Boolean,default:!1},text:{type:String,default:"Collapse menu"}},setup(n){const t=c(n.opened);function s(){t.value=!t.value}return(a,_)=>(r(),p("div",f,[e("div",{class:"nc-collapse-header",onClick:s},[e("span",null,l(n.text),1),e("span",null,l(o(t)?"▼":"▶"),1)]),e("div",m,[i(e("div",null,[d(a.$slots,"default")],512),[[u,o(t)]])])]))}});export{h as default};
