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.
10 lines
12 KiB
10 lines
12 KiB
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[557],{82947:function(K,x){var s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};x.Z=s},24099:function(K,x,s){s.r(x),s.d(x,{default:function(){return ve}});var Z=s(90930),X=s(35312),o=s(67294),U=s(93967),m=s.n(U),V=s(98423),P=s(53124),J=s(98675),Q=s(99559),Y=s(13169),q=function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)r.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(t[a[n]]=e[a[n]]);return t},w=e=>{var{prefixCls:r,className:t,hoverable:a=!0}=e,n=q(e,["prefixCls","className","hoverable"]);const{getPrefixCls:c}=o.useContext(P.E_),b=c("card",r),v=m()(`${b}-grid`,t,{[`${b}-grid-hoverable`]:a});return o.createElement("div",Object.assign({},n,{className:v}))},i=s(54548),h=s(14747),_=s(91945),k=s(45503);const ee=e=>{const{antCls:r,componentCls:t,headerHeight:a,cardPaddingBase:n,tabsMarginBottom:c}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${(0,i.bf)(n)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,i.bf)(e.borderRadiusLG)} ${(0,i.bf)(e.borderRadiusLG)} 0 0`},(0,h.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},h.vS),{[`
|
|
> ${t}-typography,
|
|
> ${t}-typography-edit-content
|
|
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${r}-tabs-top`]:{clear:"both",marginBottom:c,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},te=e=>{const{cardPaddingBase:r,colorBorderSecondary:t,cardShadow:a,lineWidth:n}=e;return{width:"33.33%",padding:r,border:0,borderRadius:0,boxShadow:`
|
|
${(0,i.bf)(n)} 0 0 0 ${t},
|
|
0 ${(0,i.bf)(n)} 0 0 ${t},
|
|
${(0,i.bf)(n)} ${(0,i.bf)(n)} 0 0 ${t},
|
|
${(0,i.bf)(n)} 0 0 0 ${t} inset,
|
|
0 ${(0,i.bf)(n)} 0 0 ${t} inset;
|
|
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},ae=e=>{const{componentCls:r,iconCls:t,actionsLiMargin:a,cardActionsIconSize:n,colorBorderSecondary:c,actionsBg:b}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:b,borderTop:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${c}`,display:"flex",borderRadius:`0 0 ${(0,i.bf)(e.borderRadiusLG)} ${(0,i.bf)(e.borderRadiusLG)}`},(0,h.dF)()),{"& > li":{margin:a,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${r}-btn), > ${t}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,i.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${t}`]:{fontSize:n,lineHeight:(0,i.bf)(e.calc(n).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${c}`}}})},re=e=>Object.assign(Object.assign({margin:`${(0,i.bf)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,h.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},h.vS),"&-description":{color:e.colorTextDescription}}),ne=e=>{const{componentCls:r,cardPaddingBase:t,colorFillAlter:a}=e;return{[`${r}-head`]:{padding:`0 ${(0,i.bf)(t)}`,background:a,"&-title":{fontSize:e.fontSize}},[`${r}-body`]:{padding:`${(0,i.bf)(e.padding)} ${(0,i.bf)(t)}`}}},ie=e=>{const{componentCls:r}=e;return{overflow:"hidden",[`${r}-body`]:{userSelect:"none"}}},oe=e=>{const{antCls:r,componentCls:t,cardShadow:a,cardHeadPadding:n,colorBorderSecondary:c,boxShadowTertiary:b,cardPaddingBase:v,extraColor:f}=e;return{[t]:Object.assign(Object.assign({},(0,h.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:b},[`${t}-head`]:ee(e),[`${t}-extra`]:{marginInlineStart:"auto",color:f,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:v,borderRadius:` 0 0 ${(0,i.bf)(e.borderRadiusLG)} ${(0,i.bf)(e.borderRadiusLG)}`},(0,h.dF)()),[`${t}-grid`]:te(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${r}-image-mask`]:{borderRadius:`${(0,i.bf)(e.borderRadiusLG)} ${(0,i.bf)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:ae(e),[`${t}-meta`]:re(e)}),[`${t}-bordered`]:{border:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${c}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:a}},[`${t}-contain-grid`]:{borderRadius:`${(0,i.bf)(e.borderRadiusLG)} ${(0,i.bf)(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:n}}},[`${t}-type-inner`]:ne(e),[`${t}-loading`]:ie(e),[`${t}-rtl`]:{direction:"rtl"}}},se=e=>{const{componentCls:r,cardPaddingSM:t,headerHeightSM:a,headerFontSizeSM:n}=e;return{[`${r}-small`]:{[`> ${r}-head`]:{minHeight:a,padding:`0 ${(0,i.bf)(t)}`,fontSize:n,[`> ${r}-head-wrapper`]:{[`> ${r}-extra`]:{fontSize:e.fontSize}}},[`> ${r}-body`]:{padding:t}},[`${r}-small${r}-contain-tabs`]:{[`> ${r}-head`]:{[`${r}-head-title, ${r}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},le=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText});var de=(0,_.I$)("Card",e=>{const r=(0,k.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[oe(r),se(r)]},le),R=function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)r.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(t[a[n]]=e[a[n]]);return t};const ce=e=>{const{actionClasses:r,actions:t=[],actionStyle:a}=e;return o.createElement("ul",{className:r,style:a},t.map((n,c)=>{const b=`action-${c}`;return o.createElement("li",{style:{width:`${100/t.length}%`},key:b},o.createElement("span",null,n))}))};var ge=o.forwardRef((e,r)=>{const{prefixCls:t,className:a,rootClassName:n,style:c,extra:b,headStyle:v={},bodyStyle:f={},title:$,loading:O,bordered:j=!0,size:z,type:B,cover:I,actions:N,tabList:E,children:T,activeTabKey:W,defaultActiveTabKey:ye,tabBarExtraContent:pe,hoverable:$e,tabProps:Se={},classNames:G,styles:H}=e,xe=R(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:Ce,direction:Oe,card:u}=o.useContext(P.E_),je=g=>{var l;(l=e.onTabChange)===null||l===void 0||l.call(e,g)},y=g=>{var l;return m()((l=u==null?void 0:u.classNames)===null||l===void 0?void 0:l[g],G==null?void 0:G[g])},p=g=>{var l;return Object.assign(Object.assign({},(l=u==null?void 0:u.styles)===null||l===void 0?void 0:l[g]),H==null?void 0:H[g])},ze=o.useMemo(()=>{let g=!1;return o.Children.forEach(T,l=>{l&&l.type&&l.type===w&&(g=!0)}),g},[T]),d=Ce("card",t),[Be,Ee,Te]=de(d),Pe=o.createElement(Q.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},T),D=W!==void 0,Me=Object.assign(Object.assign({},Se),{[D?"activeKey":"defaultActiveKey"]:D?W:ye,tabBarExtraContent:pe});let A;const S=(0,J.Z)(z),Ne=!S||S==="default"?"large":S,F=E?o.createElement(Y.Z,Object.assign({size:Ne},Me,{className:`${d}-head-tabs`,onChange:je,items:E.map(g=>{var{tab:l}=g,L=R(g,["tab"]);return Object.assign({label:l},L)})})):null;if($||b||F){const g=m()(`${d}-head`,y("header")),l=m()(`${d}-head-title`,y("title")),L=m()(`${d}-extra`,y("extra")),Ke=Object.assign(Object.assign({},v),p("header"));A=o.createElement("div",{className:g,style:Ke},o.createElement("div",{className:`${d}-head-wrapper`},$&&o.createElement("div",{className:l,style:p("title")},$),b&&o.createElement("div",{className:L,style:p("extra")},b)),F)}const Ge=m()(`${d}-cover`,y("cover")),He=I?o.createElement("div",{className:Ge,style:p("cover")},I):null,Le=m()(`${d}-body`,y("body")),we=Object.assign(Object.assign({},f),p("body")),Re=o.createElement("div",{className:Le,style:we},O?Pe:T),Ie=m()(`${d}-actions`,y("actions")),We=N&&N.length?o.createElement(ce,{actionClasses:Ie,actionStyle:p("actions"),actions:N}):null,De=(0,V.Z)(xe,["onTabChange"]),Ae=m()(d,u==null?void 0:u.className,{[`${d}-loading`]:O,[`${d}-bordered`]:j,[`${d}-hoverable`]:$e,[`${d}-contain-grid`]:ze,[`${d}-contain-tabs`]:E&&E.length,[`${d}-${S}`]:S,[`${d}-type-${B}`]:!!B,[`${d}-rtl`]:Oe==="rtl"},a,n,Ee,Te),Fe=Object.assign(Object.assign({},u==null?void 0:u.style),c);return Be(o.createElement("div",Object.assign({ref:r},De,{className:Ae,style:Fe}),A,He,Re,We))}),be=function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)r.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(t[a[n]]=e[a[n]]);return t},ue=e=>{const{prefixCls:r,className:t,avatar:a,title:n,description:c}=e,b=be(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:v}=o.useContext(P.E_),f=v("card",r),$=m()(`${f}-meta`,t),O=a?o.createElement("div",{className:`${f}-meta-avatar`},a):null,j=n?o.createElement("div",{className:`${f}-meta-title`},n):null,z=c?o.createElement("div",{className:`${f}-meta-description`},c):null,B=j||z?o.createElement("div",{className:`${f}-meta-detail`},j,z):null;return o.createElement("div",Object.assign({},b,{className:$}),O,B)};const M=ge;M.Grid=w,M.Meta=ue;var me=M,fe=s(10397),C=s(85893),he=function(){var r=(0,X.useModel)("@@initialState"),t=r.initialState,a=t==null?void 0:t.currentUser;return(0,C.jsx)(Z._z,{children:(0,C.jsxs)(me,{children:[(0,C.jsx)(fe.Z,{style:{margin:"auto"},value:(a==null?void 0:a.name)||""}),(0,C.jsx)("p",{style:{textAlign:"center",marginTop:"20px"},children:"\u8BF7\u4F7F\u7528\u6E38\u620Fapp\u626B\u7801\u7ED1\u5B9A\u8BBE\u5907"})]})})},ve=he}}]);
|
|
|