"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("@ant-design/icons-vue"),c=require("@aplus-frontend/antdv"),i={style:{display:"flex","align-items":"center"}},p=e.defineComponent({__name:"MenuItemGroup",props:{selectedRows:{},buttonProps:{},menuList:{}},setup(u){const l=u,o=e.ref({});async function a(r,s){const t=r?.id||s;o.value[t]=!0;try{await r?.onClick?.({selectedRows:l?.selectedRows})}finally{o.value[t]=void 0}}return(r,s)=>(e.openBlock(),e.createBlock(e.unref(c.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.menuList,(t,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t==="divider"?`divider-${n}`:t?.id||n},[t==="divider"?(e.openBlock(),e.createBlock(e.unref(c.Menu).Divider,{key:0})):(e.openBlock(),e.createBlock(e.unref(c.MenuItem),e.mergeProps({key:t?.id||n},{ref_for:!0},{...t,onClick:()=>a(t,n),disabled:o.value[t?.id||n]??(typeof t?.disabled=="function"?t?.disabled({selectedRows:l?.selectedRows}):t?.disabled)??!1}),{default:e.withCtx(()=>[e.createElementVNode("div",i,[e.withDirectives(e.createVNode(e.unref(d.LoadingOutlined),{style:{"margin-right":"10px"}},null,512),[[e.vShow,o.value[t?.id||n]]]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h(e.Fragment,[t?.content]))))])]),_:2},1040))],64))),128))]),_:1}))}});exports.default=p;
