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
11 KiB
10 lines
11 KiB
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8588],{18283:function(N,v,d){d.d(v,{Z:function(){return oe}});var i=d(79685),b=d(68591),x=d.n(b),L=d(3139),f=d(99248),c=d(73064),C=d(57196),p=d(55095),O=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]]);return t},D=e=>{var{prefixCls:n,className:t,hoverable:r=!0}=e,a=O(e,["prefixCls","className","hoverable"]);const{getPrefixCls:s}=i.useContext(f.E_),g=s("card",n),h=x()(`${g}-grid`,t,{[`${g}-grid-hoverable`]:r});return i.createElement("div",Object.assign({},a,{className:h}))},o=d(26477),$=d(4614),Z=d(44244),X=d(25830);const U=e=>{const{antCls:n,componentCls:t,headerHeight:r,cardPaddingBase:a,tabsMarginBottom:s}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${(0,o.bf)(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,o.bf)(e.borderRadiusLG)} ${(0,o.bf)(e.borderRadiusLG)} 0 0`},(0,$.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},$.vS),{[`
|
|
> ${t}-typography,
|
|
> ${t}-typography-edit-content
|
|
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${n}-tabs-top`]:{clear:"both",marginBottom:s,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},V=e=>{const{cardPaddingBase:n,colorBorderSecondary:t,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:n,border:0,borderRadius:0,boxShadow:`
|
|
${(0,o.bf)(a)} 0 0 0 ${t},
|
|
0 ${(0,o.bf)(a)} 0 0 ${t},
|
|
${(0,o.bf)(a)} ${(0,o.bf)(a)} 0 0 ${t},
|
|
${(0,o.bf)(a)} 0 0 0 ${t} inset,
|
|
0 ${(0,o.bf)(a)} 0 0 ${t} inset;
|
|
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},J=e=>{const{componentCls:n,iconCls:t,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:s,actionsBg:g}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:g,borderTop:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${s}`,display:"flex",borderRadius:`0 0 ${(0,o.bf)(e.borderRadiusLG)} ${(0,o.bf)(e.borderRadiusLG)}`},(0,$.dF)()),{"& > li":{margin:r,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(${n}-btn), > ${t}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,o.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${t}`]:{fontSize:a,lineHeight:(0,o.bf)(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${s}`}}})},Q=e=>Object.assign(Object.assign({margin:`${(0,o.bf)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,$.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},$.vS),"&-description":{color:e.colorTextDescription}}),Y=e=>{const{componentCls:n,cardPaddingBase:t,colorFillAlter:r}=e;return{[`${n}-head`]:{padding:`0 ${(0,o.bf)(t)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${n}-body`]:{padding:`${(0,o.bf)(e.padding)} ${(0,o.bf)(t)}`}}},q=e=>{const{componentCls:n}=e;return{overflow:"hidden",[`${n}-body`]:{userSelect:"none"}}},_=e=>{const{antCls:n,componentCls:t,cardShadow:r,cardHeadPadding:a,colorBorderSecondary:s,boxShadowTertiary:g,cardPaddingBase:h,extraColor:u}=e;return{[t]:Object.assign(Object.assign({},(0,$.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:g},[`${t}-head`]:U(e),[`${t}-extra`]:{marginInlineStart:"auto",color:u,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:h,borderRadius:` 0 0 ${(0,o.bf)(e.borderRadiusLG)} ${(0,o.bf)(e.borderRadiusLG)}`},(0,$.dF)()),[`${t}-grid`]:V(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${n}-image-mask`]:{borderRadius:`${(0,o.bf)(e.borderRadiusLG)} ${(0,o.bf)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:J(e),[`${t}-meta`]:Q(e)}),[`${t}-bordered`]:{border:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${s}`,[`${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:r}},[`${t}-contain-grid`]:{borderRadius:`${(0,o.bf)(e.borderRadiusLG)} ${(0,o.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:a}}},[`${t}-type-inner`]:Y(e),[`${t}-loading`]:q(e),[`${t}-rtl`]:{direction:"rtl"}}},k=e=>{const{componentCls:n,cardPaddingSM:t,headerHeightSM:r,headerFontSizeSM:a}=e;return{[`${n}-small`]:{[`> ${n}-head`]:{minHeight:r,padding:`0 ${(0,o.bf)(t)}`,fontSize:a,[`> ${n}-head-wrapper`]:{[`> ${n}-extra`]:{fontSize:e.fontSize}}},[`> ${n}-body`]:{padding:t}},[`${n}-small${n}-contain-tabs`]:{[`> ${n}-head`]:{[`${n}-head-title, ${n}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},ee=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 te=(0,Z.I$)("Card",e=>{const n=(0,X.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[_(n),k(n)]},ee),I=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]]);return t};const re=e=>{const{prefixCls:n,actions:t=[]}=e;return i.createElement("ul",{className:`${n}-actions`},t.map((r,a)=>{const s=`action-${a}`;return i.createElement("li",{style:{width:`${100/t.length}%`},key:s},i.createElement("span",null,r))}))};var ae=i.forwardRef((e,n)=>{const{prefixCls:t,className:r,rootClassName:a,style:s,extra:g,headStyle:h={},bodyStyle:u={},title:z,loading:j,bordered:P=!0,size:T,type:w,cover:R,actions:H,tabList:B,children:M,activeTabKey:W,defaultActiveTabKey:de,tabBarExtraContent:le,hoverable:se,tabProps:ce={}}=e,ge=I(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:be,direction:fe,card:S}=i.useContext(f.E_),ue=y=>{var m;(m=e.onTabChange)===null||m===void 0||m.call(e,y)},me=i.useMemo(()=>{let y=!1;return i.Children.forEach(M,m=>{m&&m.type&&m.type===D&&(y=!0)}),y},[M]),l=be("card",t),[pe,$e]=te(l),he=i.createElement(C.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},M),A=W!==void 0,ye=Object.assign(Object.assign({},ce),{[A?"activeKey":"defaultActiveKey"]:A?W:de,tabBarExtraContent:le});let F;const E=(0,c.Z)(T),Se=!E||E==="default"?"large":E,K=B?i.createElement(p.Z,Object.assign({size:Se},ye,{className:`${l}-head-tabs`,onChange:ue,items:B.map(y=>{var{tab:m}=y,je=I(y,["tab"]);return Object.assign({label:m},je)})})):null;(z||g||K)&&(F=i.createElement("div",{className:`${l}-head`,style:h},i.createElement("div",{className:`${l}-head-wrapper`},z&&i.createElement("div",{className:`${l}-head-title`},z),g&&i.createElement("div",{className:`${l}-extra`},g)),K));const ve=R?i.createElement("div",{className:`${l}-cover`},R):null,xe=i.createElement("div",{className:`${l}-body`,style:u},j?he:M),Ce=H&&H.length?i.createElement(re,{prefixCls:l,actions:H}):null,Oe=(0,L.Z)(ge,["onTabChange"]),ze=x()(l,S==null?void 0:S.className,{[`${l}-loading`]:j,[`${l}-bordered`]:P,[`${l}-hoverable`]:se,[`${l}-contain-grid`]:me,[`${l}-contain-tabs`]:B&&B.length,[`${l}-${E}`]:E,[`${l}-type-${w}`]:!!w,[`${l}-rtl`]:fe==="rtl"},r,a,$e),Ee=Object.assign(Object.assign({},S==null?void 0:S.style),s);return pe(i.createElement("div",Object.assign({ref:n},Oe,{className:ze,style:Ee}),F,ve,xe,Ce))}),ne=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]]);return t},ie=e=>{const{prefixCls:n,className:t,avatar:r,title:a,description:s}=e,g=ne(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:h}=i.useContext(f.E_),u=h("card",n),z=x()(`${u}-meta`,t),j=r?i.createElement("div",{className:`${u}-meta-avatar`},r):null,P=a?i.createElement("div",{className:`${u}-meta-title`},a):null,T=s?i.createElement("div",{className:`${u}-meta-description`},s):null,w=P||T?i.createElement("div",{className:`${u}-meta-detail`},P,T):null;return i.createElement("div",Object.assign({},g,{className:z}),j,w)};const G=ae;G.Grid=D,G.Meta=ie;var oe=G},40325:function(N,v,d){d.d(v,{N:function(){return i}});const i=b=>({color:b.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${b.motionDurationSlow}`,"&:focus, &:hover":{color:b.colorLinkHover},"&:active":{color:b.colorLinkActive}})},68786:function(N,v,d){d.d(v,{G:function(){return L}});var i=d(68450),b=function(c){if((0,i.Z)()&&window.document.documentElement){var C=Array.isArray(c)?c:[c],p=window.document.documentElement;return C.some(function(O){return O in p.style})}return!1},x=function(c,C){if(!b(c))return!1;var p=document.createElement("div"),O=p.style[c];return p.style[c]=C,p.style[c]!==O};function L(f,c){return!Array.isArray(f)&&c!==void 0?x(f,c):b(f)}}}]);
|
|
|