import{aP as o,a as p,ba as s,b as c,aQ as _,o as i,h as a,F as m,aW as u,n,aR as l,p as v,i as r,fa as b,fb as f}from"./index.0d073eaa.js";const g=p({name:"MenuTypePicker",components:{Tooltip:s},props:{menuTypeList:{type:Array,defualt:()=>[]},handler:{type:Function,default:()=>({})},def:{type:String,default:""}},setup(){const{prefixCls:e}=c("setting-menu-type-picker");return{prefixCls:e}}}),h=e=>(b("data-v-119d0732"),e=e(),f(),e),k=["onClick"],y=h(()=>r("div",{class:"mix-sidebar"},null,-1)),x=[y];function w(e,C,$,T,z,B){const d=_("Tooltip");return i(),a("div",{class:n(e.prefixCls)},[(i(!0),a(m,null,u(e.menuTypeList||[],t=>(i(),l(d,{key:t.title,title:t.title,placement:"bottom"},{default:v(()=>[r("div",{onClick:I=>e.handler(t),class:n([`${e.prefixCls}__item`,`${e.prefixCls}__item--${t.type}`,{[`${e.prefixCls}__item--active`]:e.def===t.type}])},x,10,k)]),_:2},1032,["title"]))),128))],2)}var S=o(g,[["render",w],["__scopeId","data-v-119d0732"]]);export{S as default};
