filesbox/web/dist/39396.cd7551f6.async.js

2 lines
11 KiB
JavaScript
Raw Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[39396],{70347:function(){},18067:function(){},91894:function(se,F,r){"use strict";r.d(F,{Z:function(){return xe}});var c=r(96156),m=r(22122),T=r(94184),w=r.n(T),b=r(98423),t=r(67294),z=r(53124),J=r(97647),ie=r(90860),G=r(95562),oe=function(a,v){var C={};for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&v.indexOf(n)<0&&(C[n]=a[n]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(a);s<n.length;s++)v.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(a,n[s])&&(C[n[s]]=a[n[s]]);return C},ve=function(v){var C=v.prefixCls,n=v.className,s=v.hoverable,$=s===void 0?!0:s,B=oe(v,["prefixCls","className","hoverable"]);return t.createElement(z.C,null,function(I){var k=I.getPrefixCls,A=k("card",C),N=w()("".concat(A,"-grid"),n,(0,c.Z)({},"".concat(A,"-grid-hoverable"),$));return t.createElement("div",(0,m.Z)({},B,{className:N}))})},Y=ve,de=function(a,v){var C={};for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&v.indexOf(n)<0&&(C[n]=a[n]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(a);s<n.length;s++)v.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(a,n[s])&&(C[n[s]]=a[n[s]]);return C};function q(a){var v=a.map(function(C,n){return t.createElement("li",{style:{width:"".concat(100/a.length,"%")},key:"action-".concat(n)},t.createElement("span",null,C))});return v}var fe=t.forwardRef(function(a,v){var C,n,s=t.useContext(z.E_),$=s.getPrefixCls,B=s.direction,I=t.useContext(J.Z),k=function(S){var U;(U=a.onTabChange)===null||U===void 0||U.call(a,S)},A=function(){var S;return t.Children.forEach(a.children,function(U){U&&U.type&&U.type===Y&&(S=!0)}),S},N=a.prefixCls,X=a.className,K=a.extra,R=a.headStyle,_=R===void 0?{}:R,p=a.bodyStyle,ye=p===void 0?{}:p,f=a.title,e=a.loading,l=a.bordered,u=l===void 0?!0:l,x=a.size,h=a.type,E=a.cover,o=a.actions,i=a.tabList,d=a.children,g=a.activeTabKey,y=a.defaultActiveTabKey,Z=a.tabBarExtraContent,D=a.hoverable,H=a.tabProps,te=H===void 0?{}:H,Ee=de(a,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),P=$("card",N),O=t.createElement(ie.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},d),M=g!==void 0,V=(0,m.Z)((0,m.Z)({},te),(C={},(0,c.Z)(C,M?"activeKey":"defaultActiveKey",M?g:y),(0,c.Z)(C,"tabBarExtraContent",Z),C)),L,j=i&&i.length?t.createElement(G.Z,(0,m.Z)({size:"large"},V,{className:"".concat(P,"-head-tabs"),onChange:k,items:i.map(function(W){var S;return{label:W.tab,key:W.key,disabled:(S=W.disabled)!==null&&S!==void 0?S:!1}})})):null;(f||K||j)&&(L=t.createElement("div",{className:"".concat(P,"-head"),style:_},t.createElement("div",{className:"".concat(P,"-head-wrapper")},f&&t.createElement("div",{className:"".concat(P,"-head-title")},f),K&&t.createElement("div",{className:"".concat(P,"-extra")},K)),j));var ae=E?t.createElement("div",{className:"".concat(P,"-cover")},E):null,he=t.createElement("div",{className:"".concat(P,"-body"),style:ye},e?O:d),ne=o&&o.length?t.createElement("ul",{className:"".concat(P,"-actions")},q(o)):null,re=(0,b.Z)(Ee,["onTabChange"]),le=x||I,ce=w()(P,(n={},(0,c.Z)(n,"".concat(P,"-loading"),e),(0,c.Z)(n,"".concat(P,"-bordered"),u),(0,c.Z)(n,"".concat(P,"-hoverable"),D),(0,c.Z)(n,"".concat(P,"-contain-grid"),A()),(0,c.Z)(n,"".concat(P,"-contain-tabs"),i&&i.length),(0,c.Z)(n,"".concat(P,"-").concat(le),le),(0,c.Z)(n,"".concat(P,"-type-").concat(h),!!h),(0,c.Z)(n,"".concat(P,"-rtl"),B==="rtl"),n),X);return t.createElement("div",(0,m.Z)({ref:v},re,{className:ce}),L,ae,he,ne)}),ue=fe,me=function(a,v){var C={};for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&v.indexOf(n)<0&&(C[n]=a[n]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(a);s<n.length;s++)v.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(a,n[s])&&(C[n[s]]=a[