import{defineComponent as l,computed as p,createVNode as r}from"vue";import{getPropsSlot as m}from"../../_util/props-util/index.mjs";import{objectType as a}from"../../_util/type.mjs";import f from"../../_util/vue-types/index.mjs";import{useMeasure as c}from"./hooks/useKeyPath.mjs";import{useInjectMenu as d}from"./hooks/useMenuContext.mjs";const g=()=>({title:f.any,originItemValue:a()}),j=l({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:g(),slots:Object,setup(e,{slots:t,attrs:i}){const{prefixCls:u}=d(),o=p(()=>`${u.value}-item-group`),n=c();return()=>n?t.default?.():r("li",{...i,onClick:s=>s.stopPropagation(),class:o.value},[r("div",{title:typeof e.title=="string"?e.title:void 0,class:`${o.value}-title`},[m(t,e,"title")]),r("ul",{class:`${o.value}-list`},[t.default?.()])])}});export{j as default,g as menuItemGroupProps};
