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.
2 lines
9.5 KiB
2 lines
9.5 KiB
8 months ago
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[816],{32708:function(He,ee,r){r.r(ee),r.d(ee,{default:function(){return De}});var ce=r(15009),T=r.n(ce),de=r(99289),X=r.n(de),ue=r(5574),Z=r.n(ue),ve=r(35312),b=r(8232),i=r(67294),fe=r(62208),ge=r(93967),ne=r.n(ge),re=r(98787),me=r(69760),he=r(45353),te=r(53124),ae=r(54548),pe=r(10274),Ce=r(14747),be=r(45503),G=r(91945);const ye=e=>{const{paddingXXS:l,lineWidth:o,tagPaddingHorizontal:n,componentCls:t,calc:p}=e,u=p(n).sub(o).equal(),y=p(l).sub(o).equal();return{[t]:Object.assign(Object.assign({},(0,Ce.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:u,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,ae.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${t}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${t}-close-icon`]:{marginInlineStart:y,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${t}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${t}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:u}}),[`${t}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},w=e=>{const{lineWidth:l,fontSizeIcon:o,calc:n}=e,t=e.fontSizeSM;return(0,be.TS)(e,{tagFontSize:t,tagLineHeight:(0,ae.bf)(n(e.lineHeightSM).mul(t).equal()),tagIconSize:n(o).sub(n(l).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Q=e=>({defaultBg:new pe.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var le=(0,G.I$)("Tag",e=>{const l=w(e);return ye(l)},Q),Se=function(e,l){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&l.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,n=Object.getOwnPropertySymbols(e);t<n.length;t++)l.indexOf(n[t])<0&&Object.prototype.propertyIsEnumerable.call(e,n[t])&&(o[n[t]]=e[n[t]]);return o},xe=i.forwardRef((e,l)=>{const{prefixCls:o,style:n,className:t,checked:p,onChange:u,onClick:y}=e,g=Se(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:$,tag:m}=i.useContext(te.E_),I=N=>{u==null||u(!p),y==null||y(N)},S=$("tag",o),[x,E,F]=le(S),f=ne()(S,`${S}-checkable`,{[`${S}-checkable-checked`]:p},m==null?void 0:m.className,t,E,F);return x(i.createElement("span",Object.assign({},g,{ref:l,style:Object.assign(Object.assign({},n),m==null?void 0:m.style),className:f,onClick:I})))}),je=r(98719);const $e=e=>(0,je.Z)(e,(l,o)=>{let{textColor:n,lightBorderColor:t,lightColor:p,darkColor:u}=o;return{[`${e.componentCls}${e.componentCls}-${l}`]:{color:n,background:p,borderColor:t,"&-inverse":{color:e.colorTextLightSolid,background:u,borderColor:u},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Ie=(0,G.bk)(["Tag","preset"],e=>{const l=w(e);return $e(l)},Q);function Oe(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const z=(e,l,o)=>{const n=Oe(o);return{[`${e.componentCls}${e.componentCls}-${l}`]:{color:e[`color${o}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Te=(0,G.bk)(["Tag","status"],e=>{const l=w(e);return[z(l,"success","Success"),z(l,"processing","Info"),z(l,"error","Error"),z(l,"warning","Warning")]},Q),Ze=function(e,l){var o
|