UserBasicInfo-3aaf4e42.js 2.4 KB

1
  1. import{d as c,o as _,j as h,w as a,aE as E,i as l,a as r,m as u,t,E as v,s as y}from"./index-df709923.js";import{E as D}from"./el-card-91c2276d.js";import{E as I,a as g}from"./el-descriptions-item-cc479a39.js";import{_ as S}from"./DictTag.vue_vue_type_script_lang-6753827b.js";import{E as T}from"./el-avatar-4550c324.js";import{D as x}from"./dict-017bf708.js";import{f as n}from"./formatTime-c6262bd7.js";import"./Descriptions.vue_vue_type_style_index_0_scoped_59d56eec_lang-777aded1.js";import{D as o}from"./DescriptionsItemLabel-65dbbcaa.js";import{_ as j}from"./_plugin-vue_export-helper-1b428a4d.js";import"./color-6e929987.js";const k=j(c({__name:"UserBasicInfo",props:{user:{}},setup:w=>(e,U)=>{const p=T,i=v,s=I,d=S,m=g,f=y,b=D;return _(),h(b,{shadow:"never"},{header:a(()=>[E(e.$slots,"header",{},void 0,!0)]),default:a(()=>[l(f,null,{default:a(()=>[l(i,{span:4},{default:a(()=>[l(p,{shape:"square",size:140,src:e.user.avatar||void 0},null,8,["src"])]),_:1}),l(i,{span:20},{default:a(()=>[l(m,{column:2},{default:a(()=>[l(s,null,{label:a(()=>[l(r(o),{label:"\u7528\u6237\u540D",icon:"ep:user"})]),default:a(()=>[u(" "+t(e.user.name||"\u7A7A"),1)]),_:1}),l(s,null,{label:a(()=>[l(r(o),{label:"\u6635\u79F0",icon:"ep:user"})]),default:a(()=>[u(" "+t(e.user.nickname),1)]),_:1}),l(s,{label:"\u624B\u673A\u53F7"},{label:a(()=>[l(r(o),{label:"\u624B\u673A\u53F7",icon:"ep:phone"})]),default:a(()=>[u(" "+t(e.user.mobile),1)]),_:1}),l(s,null,{label:a(()=>[l(r(o),{label:"\u6027\u522B",icon:"fa:mars-double"})]),default:a(()=>[l(d,{type:r(x).SYSTEM_USER_SEX,value:e.user.sex},null,8,["type","value"])]),_:1}),l(s,null,{label:a(()=>[l(r(o),{label:"\u6240\u5728\u5730",icon:"ep:location"})]),default:a(()=>[u(" "+t(e.user.areaName),1)]),_:1}),l(s,null,{label:a(()=>[l(r(o),{label:"\u6CE8\u518C IP",icon:"ep:position"})]),default:a(()=>[u(" "+t(e.user.registerIp),1)]),_:1}),l(s,null,{label:a(()=>[l(r(o),{label:"\u751F\u65E5",icon:"fa:birthday-cake"})]),default:a(()=>[u(" "+t(e.user.birthday?r(n)(e.user.birthday):"\u7A7A"),1)]),_:1}),l(s,null,{label:a(()=>[l(r(o),{label:"\u6CE8\u518C\u65F6\u95F4",icon:"ep:calendar"})]),default:a(()=>[u(" "+t(e.user.createTime?r(n)(e.user.createTime):"\u7A7A"),1)]),_:1}),l(s,null,{label:a(()=>[l(r(o),{label:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",icon:"ep:calendar"})]),default:a(()=>[u(" "+t(e.user.loginDate?r(n)(e.user.loginDate):"\u7A7A"),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:3})}}),[["__scopeId","data-v-846f0d14"]]);export{k as default};