集成,总结MES功能
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.
 
 
 
 

11 rivejä
11 KiB

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