👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2 lines
16 KiB

(("undefined"!=typeof globalThis?globalThis:self)["makoChunk_ant-design-pro"]=("undefined"!=typeof globalThis?globalThis:self)["makoChunk_ant-design-pro"]||[]).push([["047382c4"],{"2e99cc00":function(e,t,a){a.d(t,"__esModule",{value:!0}),a.e(t,{default:function(){return eL;}});var l=a("777fffbe"),i=a("852bbaa9"),r=a("dac8af92"),s=a("7cfeda15"),n=l._(s),c=a("609f48be"),d=i._(c),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 680h-54V540H546v-92h238c8.8 0 16-7.2 16-16V168c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h238v92H190v140h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8zM256 805.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zm288 0c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM288 384V216h448v168H288zm544 421.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM360 300a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"cluster",theme:"outlined"},h=a("887aaf6c"),x=l._(h),m=d.forwardRef(function(e,t){return d.createElement(x.default,(0,n.default)({},e,{ref:t,icon:o}));}),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M594.3 601.5a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1 8 8 0 008 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52zm416-354H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z"}}]},name:"contacts",theme:"outlined"},u=d.forwardRef(function(e,t){return d.createElement(x.default,(0,n.default)({},e,{ref:t,icon:f}));}),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},g=d.forwardRef(function(e,t){return d.createElement(x.default,(0,n.default)({},e,{ref:t,icon:p}));}),v=a("06ecdd39"),j=l._(v),b=a("0c1cbdee"),y=a("c7d71c0a"),z=a("60996a32"),S=l._(z),H=a("084468f6"),w=l._(H),T=a("78a22024"),L=l._(T),_=a("e6c8d689"),M=l._(_),N=a("be902df5"),k=l._(N),I=a("adf76174"),B=l._(I),C=a("61ca799d"),R=l._(C),V=a("98213865");let A=(0,V.createStyles)(({token:e})=>({avatarHolder:{marginBottom:"24px",textAlign:"center","& > img":{width:"104px",height:"104px",marginBottom:"20px"}},name:{marginBottom:"4px",color:e.colorTextHeading,fontWeight:"500",fontSize:"20px",lineHeight:"28px"},detail:{p:{position:"relative",marginBottom:"8px",paddingLeft:"26px","&:last-child":{marginBottom:"0"}},i:{position:"absolute",top:"4px",left:"0",width:"14px",height:"14px"}},tagsTitle:{marginBottom:"12px",color:e.colorTextHeading,fontWeight:"500"},teamTitle:{marginBottom:"12px",color:e.colorTextHeading,fontWeight:"500"},tags:{".ant-tag":{marginBottom:"8px"}},team:{".ant-avatar":{marginRight:"12px"},a:{display:"block",marginBottom:"24px",overflow:"hidden",color:e.colorText,whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"break-all",transition:"color 0.3s","&:hover":{color:e.colorPrimary}}},tabsCard:{".ant-card-head":{padding:"0 16px"}}}));var D=a("9b6d4c16"),E=l._(D),W=a("51882ede"),q=l._(W),$=a("d77caa33"),U=l._($),K=a("9a62f123"),Y=l._(K),G=a("61d82ba1"),P=l._(G),F=a("c5150a80"),O=l._(F),X=a("7376d2b3"),J=l._(X),Q=a("de4cb180"),Z=l._(Q);async function ee(){return(0,y.request)("/api/currentUserDetail");}async function et(e){return(0,y.request)("/api/fake_list_Detail",{params:e});}let ea=(0,V.createStyles)(({token:e})=>({filterCardList:{marginBottom:"-24px",".ant-card-meta-content":{marginTop:"0"},".ant-card-meta-avatar":{fontSize:"0"},".ant-list .ant-list-item-content-single":{maxWidth:"100%"}},cardInfo:{marginTop:"16px",marginLeft:"40px",zoom:"1","&::before, &::after":{display:"table",content:"' '"},"&::after":{clear:"both",height:"0",fontSize:"0",visibility:"hidden"},"& > div":{position:"relative",float:"left",width:"50%",textAlign:"left",p:{margin:"0",fontSize:"24px",lineHeight:"32px"},"p:first-child":{marginBottom:"4px",color:e.colorTextSecondary,fontSize:"12px",lineHeight:"20px"}}}})),el=()=>{let{styles:e}=ea(),{data:t}=(0,y.useRequest)(()=>et({count:30})),a=({activeUser:t,newUser:a})=>(0,r.jsxs)("div",{className:e.cardInfo,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{children:"\u6D3B\u8DC3\u7528\u6237"}),(0,r.jsx)("p",{children:t})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{children:"\u65B0\u589E\u7528\u6237"}),(0,r.jsx)("p",{children:a})]})]});return(0,r.jsx)(O.default,{rowKey:"id",className:e.filterCardList,grid:{gutter:24,xxl:3,xl:2,lg:2,md:2,sm:2,xs:1},dataSource:(null==t?void 0:t.list)||[],renderItem:e=>(0,r.jsx)(O.default.Item,{children:(0,r.jsxs)(w.default,{hoverable:!0,bodyStyle:{paddingBottom:20},actions:[(0,r.jsx)(J.default,{title:"\u4E0B\u8F7D",children:(0,r.jsx)(E.default,{})},"download"),(0,r.jsx)(J.default,{title:"\u7F16\u8F91",children:(0,r.jsx)(q.default,{})},"edit"),(0,r.jsx)(J.default,{title:"\u5206\u4EAB",children:(0,r.jsx)(Y.default,{})},"share"),(0,r.jsx)(P.default,{menu:{items:[{key:"1",title:"1st menu item"},{key:"2",title:"2nd menu item"}]},children:(0,r.jsx)(U.default,{})},"ellipsis")],children:[(0,r.jsx)(w.default.Meta,{avatar:(0,r.jsx)(S.default,{size:"small",src:e.avatar}),title:e.title}),(0,r.jsx)("div",{children:(0,r.jsx)(a,{activeUser:function(e){let t=1*e;if(!t||Number.isNaN(t))return"";let a=e;return e>1e4&&(a=(0,r.jsxs)("span",{children:[Math.floor(e/1e4),(0,r.jsx)("span",{style:{position:"relative",top:-2,fontSize:14,fontStyle:"normal",marginLeft:2},children:"\u4E07"})]})),a;}(e.activeUser),newUser:(0,Z.default)(e.newUser).format("0,0")})})]})},e.id)});};var ei=a("fdd8b318"),er=l._(ei),es={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.3 338.4a447.57 447.57 0 00-96.1-143.3 443.09 443.09 0 00-143-96.3A443.91 443.91 0 00512 64h-2c-60.5.3-119 12.3-174.1 35.9a444.08 444.08 0 00-141.7 96.5 445 445 0 00-95 142.8A449.89 449.89 0 0065 514.1c.3 69.4 16.9 138.3 47.9 199.9v152c0 25.4 20.6 46 45.9 46h151.8a447.72 447.72 0 00199.5 48h2.1c59.8 0 117.7-11.6 172.3-34.3A443.2 443.2 0 00827 830.5c41.2-40.9 73.6-88.7 96.3-142 23.5-55.2 35.5-113.9 35.8-174.5.2-60.9-11.6-120-34.8-175.6zM312.4 560c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.4 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48z"}}]},name:"message",theme:"filled"},en=d.forwardRef(function(e,t){return d.createElement(x.default,(0,n.default)({},e,{ref:t,icon:es}));}),ec={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512.5 190.4l-94.4 191.3-211.2 30.7 152.8 149-36.1 210.3 188.9-99.3 188.9 99.2-36.1-210.3 152.8-148.9-211.2-30.7z",fill:t}},{tag:"path",attrs:{d:"M908.6 352.8l-253.9-36.9L541.2 85.8c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L370.3 315.9l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1L239 839.4a31.95 31.95 0 0046.4 33.7l227.1-119.4 227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM665.3 561.3l36.1 210.3-188.9-99.2-188.9 99.3 36.1-210.3-152.8-149 211.2-30.7 94.4-191.3 94.4 191.3 211.2 30.7-152.8 148.9z",fill:e}}]};},name:"star",theme:"twotone"},ed=d.forwardRef(function(e,t){return d.createElement(x.default,(0,n.default)({},e,{ref:t,icon:ec}));}),eo=a("ab5f2fcc"),eh=l._(eo);let ex=(0,V.createStyles)(({token:e})=>({description:{maxWidth:"720px",lineHeight:"22px"},extra:{marginTop:"16px",color:e.colorTextSecondary,lineHeight:"22px",display:"flex",gap:"8px",alignItems:"center","& > em":{color:e.colorTextDisabled,fontStyle:"normal"},[`@media screen and (max-width: ${e.screenXS}px)`]:{"& > em":{display:"block",marginTop:"8px",marginLeft:"0"}}}})),em=({data:{content:e,updatedAt:t,avatar:a,owner:l,href:i}})=>{let{styles:s}=ex();return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:s.description,children:e}),(0,r.jsxs)("div",{className:s.extra,children:[(0,r.jsx)(S.default,{src:a,size:"small"}),(0,r.jsx)("a",{href:i,children:l})," \u53D1\u5E03\u5728 ",(0,r.jsx)("a",{href:i,children:i}),(0,r.jsx)("em",{children:(0,eh.default)(t).format("YYYY-MM-DD HH:mm")})]})]});},ef=(0,V.createStyles)(({token:e})=>({articleList:{".ant-list-item:first-child":{paddingTop:"0"}},listItemMetaTitle:{color:e.colorTextHeading}})),eu=()=>{let{styles:e}=ef(),t=({icon:e,text:t})=>(0,r.jsxs)("span",{children:[e," ",t]}),{data:a}=(0,y.useRequest)(()=>et({count:30}));return(0,r.jsx)(O.default,{size:"large",className:e.articleList,rowKey:"id",itemLayout:"vertical",dataSource:(null==a?void 0:a.list)||[],style:{margin:"0 -24px"},renderItem:a=>(0,r.jsxs)(O.default.Item,{actions:[(0,r.jsx)(t,{icon:(0,r.jsx)(ed,{}),text:a.star},"star"),(0,r.jsx)(t,{icon:(0,r.jsx)(er.default,{}),text:a.like},"like"),(0,r.jsx)(t,{icon:(0,r.jsx)(en,{}),text:a.message},"message")],children:[(0,r.jsx)(O.default.Item.Meta,{title:(0,r.jsx)("a",{className:e.listItemMetaTitle,href:a.href,children:a.title}),description:(0,r.jsxs)("span",{children:[(0,r.jsx)(R.default,{children:"Ant Design"}),(0,r.jsx)(R.default,{children:"\u8BBE\u8BA1\u8BED\u8A00"}),(0,r.jsx)(R.default,{children:"\u8682\u8681\u91D1\u670D"})]})}),(0,r.jsx)(em,{data:a})]},a.id)});};var ep=a("7e3844f3"),eg=l._(ep),ev=a("064ecd09"),ej=l._(ev);let eb=(0,V.createStyles)(({token:e})=>({avatarList:{display:"inline-block",ul:{display:"inline-block",marginLeft:"8px",fontSize:"0"}},avatarItem:{display:"inline-block",width:e.controlHeight,height:e.controlHeight,marginLeft:"-8px",fontSize:e.fontSize,".ant-avatar":{border:`1px solid ${e.colorBorder}`}},avatarItemLarge:{width:e.controlHeightLG,height:e.controlHeightLG},avatarItemSmall:{width:e.controlHeightSM,height:e.controlHeightSM},avatarItemMini:{width:"20px",height:"20px",".ant-avatar":{width:"20px",height:"20px",lineHeight:"20px",".ant-avatar-string":{fontSize:"12px",lineHeight:"18px"}}}})),ey=(e,t)=>(0,ej.default)(e.avatarItem,{[e.avatarItemLarge]:"large"===t,[e.avatarItemSmall]:"small"===t,[e.avatarItemMini]:"mini"===t}),ez=({children:e,size:t,maxLength:a=5,excessItemsStyle:l,...i})=>{let{styles:s}=eb(),n=d.default.Children.count(e),c=a>=n?n:a,o=d.default.Children.toArray(e).slice(0,c).map(e=>d.default.cloneElement(e,{size:t}));if(c<n){let e=ey(s,t);o.push((0,r.jsx)("li",{className:e,children:(0,r.jsx)(S.default,{size:t,style:l,children:`+${n-a}`})},"exceed"));}return(0,r.jsx)("div",{...i,className:s.avatarList,children:(0,r.jsxs)("ul",{children:[" ",o," "]})});};ez.Item=({src:e,size:t,tips:a,onClick:l=()=>{}})=>{let{styles:i}=eb(),s=ey(i,t);return(0,r.jsx)("li",{className:s,onClick:l,children:a?(0,r.jsx)(J.default,{title:a,children:(0,r.jsx)(S.default,{src:e,size:t,style:{cursor:"pointer"}})}):(0,r.jsx)(S.default,{src:e,size:t})});};let eS=(0,V.createStyles)(({token:e})=>({card:{".ant-card-meta-title":{marginBottom:"4px","& > a":{display:"inline-block",maxWidth:"100%",color:e.colorTextHeading}},".ant-card-meta-description":{height:"44px",overflow:"hidden",lineHeight:"22px"},"&:hover":{".ant-card-meta-title > a":{color:e.colorPrimary}}},cardItemContent:{display:"flex",height:"20px",marginTop:"16px",marginBottom:"-4px",lineHeight:"20px","& > span":{flex:"1",color:e.colorTextSecondary,fontSize:"12px"}},avatarList:{flex:"0 1 auto"},cardList:{marginTop:"24px"},coverCardList:{".ant-list .ant-list-item-content-single":{maxWidth:"100%"}}}));eh.default.extend(eg.default);let eH=()=>{let{styles:e}=eS(),{data:t}=(0,y.useRequest)(()=>et({count:30}));return(0,r.jsx)(O.default,{className:e.coverCardList,rowKey:"id",grid:{gutter:24,xxl:3,xl:2,lg:2,md:2,sm:2,xs:1},dataSource:(null==t?void 0:t.list)||[],renderItem:t=>(0,r.jsx)(O.default.Item,{children:(0,r.jsxs)(w.default,{className:e.card,hoverable:!0,cover:(0,r.jsx)("img",{alt:t.title,src:t.cover}),children:[(0,r.jsx)(w.default.Meta,{title:(0,r.jsx)("a",{children:t.title}),description:t.subDescription}),(0,r.jsxs)("div",{className:e.cardItemContent,children:[(0,r.jsx)("span",{children:(0,eh.default)(t.updatedAt).fromNow()}),(0,r.jsx)("div",{className:e.avatarList,children:(0,r.jsx)(ez,{size:"small",children:t.members.map(e=>(0,r.jsx)(ez.Item,{src:e.avatar,tips:e.name},`${t.id}-avatar-${e.id}`))})})]})]})})});},ew=[{key:"articles",tab:(0,r.jsxs)("span",{children:["\u6587\u7AE0"," ",(0,r.jsx)("span",{style:{fontSize:14},children:"(8)"})]})},{key:"applications",tab:(0,r.jsxs)("span",{children:["\u5E94\u7528"," ",(0,r.jsx)("span",{style:{fontSize:14},children:"(8)"})]})},{key:"projects",tab:(0,r.jsxs)("span",{children:["\u9879\u76EE"," ",(0,r.jsx)("span",{style:{fontSize:14},children:"(8)"})]})}],eT=({tags:e})=>{let{styles:t}=A(),a=(0,d.useRef)(null),[l,i]=(0,d.useState)([]),[s,n]=(0,d.useState)(!1),[c,o]=(0,d.useState)(""),h=()=>{let e=[...l];c&&0===e.filter(e=>e.label===c).length&&(e=[...e,{key:`new-${e.length}`,label:c}]),i(e),n(!1),o("");};return(0,r.jsxs)("div",{className:t.tags,children:[(0,r.jsx)("div",{className:t.tagsTitle,children:"\u6807\u7B7E"}),(e||[]).concat(l).map(e=>(0,r.jsx)(R.default,{children:e.label},e.key)),s&&(0,r.jsx)(k.default,{ref:a,size:"small",style:{width:78},value:c,onChange:e=>{o(e.target.value);},onBlur:h,onPressEnter:h}),!s&&(0,r.jsx)(R.default,{onClick:()=>{if(n(!0),a.current){var e;null===(e=a.current)||void 0===e||e.focus();}},style:{borderStyle:"dashed"},children:(0,r.jsx)(j.default,{})})]});},eL=()=>{var e;let{styles:t}=A(),[a,l]=(0,d.useState)("articles"),{data:i,loading:s}=(0,y.useRequest)(()=>ee());return(0,r.jsx)(b.GridContent,{children:(0,r.jsxs)(B.default,{gutter:24,children:[(0,r.jsx)(L.default,{lg:7,md:24,children:(0,r.jsx)(w.default,{bordered:!1,style:{marginBottom:24},loading:s,children:!s&&i&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:t.avatarHolder,children:[(0,r.jsx)("img",{alt:"",src:i.avatar}),(0,r.jsx)("div",{className:t.name,children:i.name}),(0,r.jsx)("div",{children:null==i?void 0:i.signature})]}),(({title:e,group:a,geographic:l})=>(0,r.jsxs)("div",{className:t.detail,children:[(0,r.jsxs)("p",{children:[(0,r.jsx)(u,{style:{marginRight:8}}),e]}),(0,r.jsxs)("p",{children:[(0,r.jsx)(m,{style:{marginRight:8}}),a]}),(0,r.jsxs)("p",{children:[(0,r.jsx)(g,{style:{marginRight:8}}),(l||{province:{label:""}}).province.label,(l||{city:{label:""}}).city.label]})]}))(i),(0,r.jsx)(M.default,{dashed:!0}),(0,r.jsx)(eT,{tags:i.tags||[]}),(0,r.jsx)(M.default,{style:{marginTop:16},dashed:!0}),(0,r.jsxs)("div",{className:t.team,children:[(0,r.jsx)("div",{className:t.teamTitle,children:"\u56E2\u961F"}),(0,r.jsx)(B.default,{gutter:36,children:null===(e=i.notice)||void 0===e?void 0:e.map(e=>(0,r.jsx)(L.default,{lg:24,xl:12,children:(0,r.jsxs)("a",{href:e.href,children:[(0,r.jsx)(S.default,{size:"small",src:e.logo}),e.member]})},e.id))})]})]})})}),(0,r.jsx)(L.default,{lg:17,md:24,children:(0,r.jsx)(w.default,{className:t.tabsCard,variant:"borderless",tabList:ew,activeTabKey:a,onTabChange:e=>{l(e);},children:"projects"===a?(0,r.jsx)(eH,{}):"applications"===a?(0,r.jsx)(el,{}):"articles"===a?(0,r.jsx)(eu,{}):null})})]})});};}}]);
//# sourceMappingURL=047382c4-async.dc97f4f2.js.map