import{d as p,U as l,a2 as s,a3 as o,F as d,ae as f,ad as c,af as m,a4 as n,a6 as r}from"./vue-vendor-CxLCUzY4.js";import{T as u}from"./antd-vue-vendor-CDWW6V_M.js";import{C as _,_ as y}from"./index-B_2CoVdl.js";import"./vxe-table-vendor-B5h3MVdD.js";const C=p({name:"MenuTypePicker",components:{Tooltip:u},props:{menuTypeList:{type:Array,defualt:()=>[]},handler:{type:Function,default:()=>({})},def:{type:String,default:""}},setup(){const{prefixCls:e}=_("setting-menu-type-picker");return{prefixCls:e}}}),k=["onClick"];function $(e,a,T,v,g,B){const i=l("Tooltip");return s(),o("div",{class:r(e.prefixCls)},[(s(!0),o(d,null,f(e.menuTypeList||[],t=>(s(),c(i,{key:t.title,title:t.title,placement:"bottom"},{default:m(()=>[n("div",{onClick:b=>e.handler(t),class:r([`${e.prefixCls}__item`,`${e.prefixCls}__item--${t.type}`,{[`${e.prefixCls}__item--active`]:e.def===t.type}])},a[0]||(a[0]=[n("div",{class:"mix-sidebar"},null,-1)]),10,k)]),_:2},1032,["title"]))),128))],2)}const P=y(C,[["render",$],["__scopeId","data-v-f40323b7"]]);export{P as default};
