"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("element-plus"),c=require("../../node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.4.21/node_modules/@element-plus/icons-vue/dist/index.js"),a=["src"],u={key:1},i=e.defineComponent({__name:"person",props:{nickname:String,avatar:{type:Object,default(){return{}}},moreActions:{type:Array}},setup(r){const o=r;return(s,d)=>(e.openBlock(),e.createBlock(e.unref(t.ElSpace),{style:{cursor:"pointer"}},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElAvatar)),e.createVNode(e.unref(t.ElDropdown),{trigger:"click"},{dropdown:e.withCtx(()=>[e.createVNode(e.unref(t.ElDropdownMenu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.moreActions,(n,l)=>(e.openBlock(),e.createBlock(e.unref(t.ElDropdownItem),{key:l},{default:e.withCtx(()=>[n.icon||n.iconSrc?(e.openBlock(),e.createBlock(e.unref(t.ElSpace),{key:0},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElIcon),{size:16},{default:e.withCtx(()=>[n.iconSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.iconSrc,width:"16",height:"16"},null,8,a)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{key:1}))]),_:2},1024),e.createElementVNode("span",null,e.toDisplayString(n.label),1)]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",u,e.toDisplayString(n.label),1))]),_:2},1024))),128))]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSpace),null,{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(o.nickname||"未登录"),1),e.createVNode(e.unref(t.ElIcon),null,{default:e.withCtx(()=>[e.createVNode(e.unref(c.CaretBottom))]),_:1})]),_:1})]),_:1})]),_:1}))}});exports.default=i;
