👨🏻‍💻👩🏻‍💻 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.
 
 
 

10 lines
14 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2140],{64943:function(A,b,n){n.d(b,{Z:function(){return $}});var o=n(93264),h=n(79685),v={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},O=v,y=n(64507),p=function(j,N){return h.createElement(y.Z,(0,o.Z)((0,o.Z)({},j),{},{ref:N,icon:O}))};p.displayName="CloseCircleOutlined";var $=h.forwardRef(p)},79586:function(A,b,n){n.d(b,{f:function(){return l}});var o=n(6346),h=n(89543),v=n(68591),O=n.n(v),y=n(79685),p=n(34435),$=n(93264),T=n(33298),j=function(g){return(0,o.Z)({},g.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function N(u){return(0,T.Xj)("ProLayoutGridContent",function(g){var d=(0,$.Z)((0,$.Z)({},g),{},{componentCls:".".concat(u)});return[j(d)]})}var E=n(63342),l=function(g){var d=(0,y.useContext)(p.X),D=g.children,x=g.contentWidth,f=g.className,B=g.style,J=(0,y.useContext)(h.ZP.ConfigContext),Q=J.getPrefixCls,F=g.prefixCls||Q("pro"),Y=x||d.contentWidth,G="".concat(F,"-grid-content"),W=N(G),I=W.wrapSSR,Z=W.hashId,_=Y==="Fixed"&&d.layout==="top";return I((0,E.jsx)("div",{className:O()(G,Z,f,(0,o.Z)({},"".concat(G,"-wide"),_)),style:B,children:(0,E.jsx)("div",{className:"".concat(F,"-grid-content-children ").concat(Z).trim(),children:D})}))}},34435:function(A,b,n){n.d(b,{X:function(){return h}});var o=n(79685),h=(0,o.createContext)({})},98942:function(A,b,n){n.r(b),n.d(b,{default:function(){return D}});var o=n(64943),h=n(93264),v=n(79685),O=n(20590),y=n(64507),p=function(f,B){return v.createElement(y.Z,(0,h.Z)((0,h.Z)({},f),{},{ref:B,icon:O.Z}))};p.displayName="RightOutlined";var $=v.forwardRef(p),T=n(79586),j=n(18283),N=n(94154),E=n(10951),l=n(24507),u=(0,l.kc)(function(x){var f=x.token;return{error_icon:{color:f.colorBgTextActive},title:{marginBottom:"16px",color:f.colorTextHeading,fontWeight:"500",fontSize:"16px"}}}),g=u,d=n(63342),D=function(){var x=g(),f=x.styles,B=(0,d.jsxs)(v.Fragment,{children:[(0,d.jsx)("div",{className:f.title,children:(0,d.jsx)("span",{children:"\u60A8\u63D0\u4EA4\u7684\u5185\u5BB9\u6709\u5982\u4E0B\u9519\u8BEF\uFF1A"})}),(0,d.jsxs)("div",{style:{marginBottom:16},children:[(0,d.jsx)(o.Z,{style:{marginRight:8},className:f.error_icon}),(0,d.jsx)("span",{children:"\u60A8\u7684\u8D26\u6237\u5DF2\u88AB\u51BB\u7ED3"}),(0,d.jsxs)("a",{style:{marginLeft:16},children:[(0,d.jsx)("span",{children:"\u7ACB\u5373\u89E3\u51BB"}),(0,d.jsx)($,{})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(o.Z,{style:{marginRight:8},className:f.error_icon}),(0,d.jsx)("span",{children:"\u60A8\u7684\u8D26\u6237\u8FD8\u4E0D\u5177\u5907\u7533\u8BF7\u8D44\u683C"}),(0,d.jsxs)("a",{style:{marginLeft:16},children:[(0,d.jsx)("span",{children:"\u7ACB\u5373\u5347\u7EA7"}),(0,d.jsx)($,{})]})]})]});return(0,d.jsx)(T.f,{children:(0,d.jsx)(j.Z,{bordered:!1,children:(0,d.jsx)(N.ZP,{status:"error",title:"\u63D0\u4EA4\u5931\u8D25",subTitle:"\u8BF7\u6838\u5BF9\u5E76\u4FEE\u6539\u4EE5\u4E0B\u4FE1\u606F\u540E\uFF0C\u518D\u91CD\u65B0\u63D0\u4EA4\u3002",extra:(0,d.jsx)(E.ZP,{type:"primary",children:(0,d.jsx)("span",{children:"\u8FD4\u56DE\u4FEE\u6539"})}),style:{marginTop:48,marginBottom:16},children:B})})})}},18283:function(A,b,n){n.d(b,{Z:function(){return de}});var o=n(79685),h=n(68591),v=n.n(h),O=n(3139),y=n(99248),p=n(73064),$=n(57196),T=n(55095),j=function(e,i){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&i.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)i.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(t[a[r]]=e[a[r]]);return t},E=e=>{var{prefixCls:i,className:t,hoverable:a=!0}=e,r=j(e,["prefixCls","className","hoverable"]);const{getPrefixCls:c}=o.useContext(y.E_),m=c("card",i),z=v()(`${m}-grid`,t,{[`${m}-grid-hoverable`]:a});return o.createElement("div",Object.assign({},r,{className:z}))},l=n(26477),u=n(4614),g=n(44244),d=n(25830);const D=e=>{const{antCls:i,componentCls:t,headerHeight:a,cardPaddingBase:r,tabsMarginBottom:c}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${(0,l.bf)(r)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)} 0 0`},(0,u.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},u.vS),{[`
> ${t}-typography,
> ${t}-typography-edit-content
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${i}-tabs-top`]:{clear:"both",marginBottom:c,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},x=e=>{const{cardPaddingBase:i,colorBorderSecondary:t,cardShadow:a,lineWidth:r}=e;return{width:"33.33%",padding:i,border:0,borderRadius:0,boxShadow:`
${(0,l.bf)(r)} 0 0 0 ${t},
0 ${(0,l.bf)(r)} 0 0 ${t},
${(0,l.bf)(r)} ${(0,l.bf)(r)} 0 0 ${t},
${(0,l.bf)(r)} 0 0 0 ${t} inset,
0 ${(0,l.bf)(r)} 0 0 ${t} inset;
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},f=e=>{const{componentCls:i,iconCls:t,actionsLiMargin:a,cardActionsIconSize:r,colorBorderSecondary:c,actionsBg:m}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:m,borderTop:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${c}`,display:"flex",borderRadius:`0 0 ${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)}`},(0,u.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(${i}-btn), > ${t}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,l.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${t}`]:{fontSize:r,lineHeight:(0,l.bf)(e.calc(r).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${c}`}}})},B=e=>Object.assign(Object.assign({margin:`${(0,l.bf)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,u.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},u.vS),"&-description":{color:e.colorTextDescription}}),J=e=>{const{componentCls:i,cardPaddingBase:t,colorFillAlter:a}=e;return{[`${i}-head`]:{padding:`0 ${(0,l.bf)(t)}`,background:a,"&-title":{fontSize:e.fontSize}},[`${i}-body`]:{padding:`${(0,l.bf)(e.padding)} ${(0,l.bf)(t)}`}}},Q=e=>{const{componentCls:i}=e;return{overflow:"hidden",[`${i}-body`]:{userSelect:"none"}}},F=e=>{const{antCls:i,componentCls:t,cardShadow:a,cardHeadPadding:r,colorBorderSecondary:c,boxShadowTertiary:m,cardPaddingBase:z,extraColor:C}=e;return{[t]:Object.assign(Object.assign({},(0,u.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:m},[`${t}-head`]:D(e),[`${t}-extra`]:{marginInlineStart:"auto",color:C,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:z,borderRadius:` 0 0 ${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)}`},(0,u.dF)()),[`${t}-grid`]:x(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${i}-image-mask`]:{borderRadius:`${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:f(e),[`${t}-meta`]:B(e)}),[`${t}-bordered`]:{border:`${(0,l.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,l.bf)(e.borderRadiusLG)} ${(0,l.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:r}}},[`${t}-type-inner`]:J(e),[`${t}-loading`]:Q(e),[`${t}-rtl`]:{direction:"rtl"}}},Y=e=>{const{componentCls:i,cardPaddingSM:t,headerHeightSM:a,headerFontSizeSM:r}=e;return{[`${i}-small`]:{[`> ${i}-head`]:{minHeight:a,padding:`0 ${(0,l.bf)(t)}`,fontSize:r,[`> ${i}-head-wrapper`]:{[`> ${i}-extra`]:{fontSize:e.fontSize}}},[`> ${i}-body`]:{padding:t}},[`${i}-small${i}-contain-tabs`]:{[`> ${i}-head`]:{[`${i}-head-title, ${i}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},G=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 W=(0,g.I$)("Card",e=>{const i=(0,d.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[F(i),Y(i)]},G),I=function(e,i){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&i.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)i.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(t[a[r]]=e[a[r]]);return t};const Z=e=>{const{prefixCls:i,actions:t=[]}=e;return o.createElement("ul",{className:`${i}-actions`},t.map((a,r)=>{const c=`action-${r}`;return o.createElement("li",{style:{width:`${100/t.length}%`},key:c},o.createElement("span",null,a))}))};var ie=o.forwardRef((e,i)=>{const{prefixCls:t,className:a,rootClassName:r,style:c,extra:m,headStyle:z={},bodyStyle:C={},title:L,loading:H,bordered:w=!0,size:K,type:X,cover:ee,actions:k,tabList:U,children:V,activeTabKey:te,defaultActiveTabKey:se,tabBarExtraContent:ce,hoverable:ue,tabProps:ge={}}=e,fe=I(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:me,direction:he,card:R}=o.useContext(y.E_),ve=P=>{var S;(S=e.onTabChange)===null||S===void 0||S.call(e,P)},be=o.useMemo(()=>{let P=!1;return o.Children.forEach(V,S=>{S&&S.type&&S.type===E&&(P=!0)}),P},[V]),s=me("card",t),[ye,pe]=W(s),$e=o.createElement($.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},V),ae=te!==void 0,Ce=Object.assign(Object.assign({},ge),{[ae?"activeKey":"defaultActiveKey"]:ae?te:se,tabBarExtraContent:ce});let ne;const M=(0,p.Z)(K),Se=!M||M==="default"?"large":M,re=U?o.createElement(T.Z,Object.assign({size:Se},Ce,{className:`${s}-head-tabs`,onChange:ve,items:U.map(P=>{var{tab:S}=P,Pe=I(P,["tab"]);return Object.assign({label:S},Pe)})})):null;(L||m||re)&&(ne=o.createElement("div",{className:`${s}-head`,style:z},o.createElement("div",{className:`${s}-head-wrapper`},L&&o.createElement("div",{className:`${s}-head-title`},L),m&&o.createElement("div",{className:`${s}-extra`},m)),re));const xe=ee?o.createElement("div",{className:`${s}-cover`},ee):null,Oe=o.createElement("div",{className:`${s}-body`,style:C},H?$e:V),je=k&&k.length?o.createElement(Z,{prefixCls:s,actions:k}):null,Ee=(0,O.Z)(fe,["onTabChange"]),Be=v()(s,R==null?void 0:R.className,{[`${s}-loading`]:H,[`${s}-bordered`]:w,[`${s}-hoverable`]:ue,[`${s}-contain-grid`]:be,[`${s}-contain-tabs`]:U&&U.length,[`${s}-${M}`]:M,[`${s}-type-${X}`]:!!X,[`${s}-rtl`]:he==="rtl"},a,r,pe),ze=Object.assign(Object.assign({},R==null?void 0:R.style),c);return ye(o.createElement("div",Object.assign({ref:i},Ee,{className:Be,style:ze}),ne,xe,Oe,je))}),oe=function(e,i){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&i.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)i.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(t[a[r]]=e[a[r]]);return t},le=e=>{const{prefixCls:i,className:t,avatar:a,title:r,description:c}=e,m=oe(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:z}=o.useContext(y.E_),C=z("card",i),L=v()(`${C}-meta`,t),H=a?o.createElement("div",{className:`${C}-meta-avatar`},a):null,w=r?o.createElement("div",{className:`${C}-meta-title`},r):null,K=c?o.createElement("div",{className:`${C}-meta-description`},c):null,X=w||K?o.createElement("div",{className:`${C}-meta-detail`},w,K):null;return o.createElement("div",Object.assign({},m,{className:L}),H,X)};const q=ie;q.Grid=E,q.Meta=le;var de=q}}]);