UserBasicInfo-c27bb436.js 2.4 KB

1
  1. import{d as c,o as _,A as h,B as a,aL as v,f as l,a as r,G as u,D as t,J as y,M as E}from"./index-39d329c4.js";import{E as D}from"./el-card-5cc80b8a.js";import{E as I,a as g}from"./el-descriptions-item-a2a4aeac.js";import{_ as S}from"./DictTag.vue_vue_type_script_lang-b95bb985.js";import{E as T}from"./el-avatar-2446e325.js";import{D as x}from"./dict-0856c143.js";import{f as n}from"./formatTime-4c4af720.js";import"./Descriptions.vue_vue_type_style_index_0_scoped_59d56eec_lang-9eff3c3e.js";import{D as o}from"./DescriptionsItemLabel-271bfdec.js";import{_ as k}from"./_plugin-vue_export-helper-1b428a4d.js";import"./color-6e929987.js";const B=k(c({__name:"UserBasicInfo",props:{user:{}},setup:M=>(e,U)=>{const p=T,i=y,s=I,d=S,f=g,m=E,b=D;return _(),h(b,{shadow:"never"},{header:a(()=>[v(e.$slots,"header",{},void 0,!0)]),default:a(()=>[l(m,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(f,{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{B as default};