import{u as p,_ as l}from"./index.js";import{d,Z as s,_ as a,F as c,a7 as u,a1 as o,a6 as _,a4 as f,a5 as m,$ as r}from"./vue-72a104e4.js";import{T as y}from"./antd-0679333d.js";const C=d({name:"MenuTypePicker",components:{Tooltip:y},props:{menuTypeList:{type:Array,default:()=>[]},handler:{type:Function,default:()=>({})},def:{type:String,default:""}},setup(){const{prefixCls:e}=p("setting-menu-type-picker");return{prefixCls:e}}});const k=["onClick"];function $(e,n,v,T,g,b){const i=_("Tooltip");return s(),a("div",{class:o(e.prefixCls)},[(s(!0),a(c,null,u(e.menuTypeList||[],t=>(s(),f(i,{key:t.title,title:t.title,placement:"bottom"},{default:m(()=>[r("div",{onClick:x=>e.handler(t),class:o([`${e.prefixCls}__item`,`${e.prefixCls}__item--${t.type}`,{[`${e.prefixCls}__item--active`]:e.def===t.type}])},n[0]||(n[0]=[r("div",{class:"mix-sidebar"},null,-1)]),10,k)]),_:2},1032,["title"]))),128))],2)}const L=l(C,[["render",$],["__scopeId","data-v-e25c4abd"]]);export{L as default};
