18 lines
18 KiB
JavaScript
18 lines
18 KiB
JavaScript
import{bd as he,be as me,aJ as o,bf as ze,bG as N,cA as ve,d as y,C as r,aQ as x,bg as Pe,aL as ae,aM as B,k as G,aR as w,b0 as be,aY as E,dx as L,bU as Ee,cV as Le,dy as De,bi as pe,du as Ge,dz as U,bh as J}from"./B3Hm6diO.js";import{T as fe}from"./B-wJLeYS.js";import{i as We}from"./SlW51Ucp.js";const ke=e=>{const{antCls:t,componentCls:n,cardHeadHeight:a,cardPaddingBase:i,cardHeadTabsMarginBottom:l}=e;return o(o({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${i}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},N()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":o(o({display:"inline-block",flex:1},ve),{[`
|
|
> ${n}-typography,
|
|
> ${n}-typography-edit-content
|
|
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:l,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},_e=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:a,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
${i}px 0 0 0 ${n},
|
|
0 ${i}px 0 0 ${n},
|
|
${i}px ${i}px 0 0 ${n},
|
|
${i}px 0 0 0 ${n} inset,
|
|
0 ${i}px 0 0 ${n} inset;
|
|
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},Oe=e=>{const{componentCls:t,iconCls:n,cardActionsLiMargin:a,cardActionsIconSize:i,colorBorderSecondary:l}=e;return o(o({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${l}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},N()),{"& > li":{margin:a,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.cardActionsIconSize*2,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:`${i*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${l}`}}})},Ne=e=>o(o({margin:`-${e.marginXXS}px 0`,display:"flex"},N()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":o({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},ve),"&-description":{color:e.colorTextDescription}}),je=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:a}=e;return{[`${t}-head`]:{padding:`0 ${n}px`,background:a,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${n}px`}}},qe=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Xe=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:a,colorBorderSecondary:i,boxShadow:l,cardPaddingBase:d}=e;return{[t]:o(o({},ze(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:l},[`${t}-head`]:ke(e),[`${t}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:o({padding:d,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},N()),[`${t}-grid`]:_e(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:Oe(e),[`${t}-meta`]:Ne(e)}),[`${t}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${i}`,[`${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:n}},[`${t}-contain-grid`]:{[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:a}}},[`${t}-type-inner`]:je(e),[`${t}-loading`]:qe(e),[`${t}-rtl`]:{direction:"rtl"}}},Ke=e=>{const{componentCls:t,cardPaddingSM:n,cardHeadHeightSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${n}px`,fontSize:e.fontSize,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:a,paddingTop:0,display:"flex",alignItems:"center"}}}}},Fe=he("Card",e=>{const t=me(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,cardHeadHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[Xe(t),Ke(t)]}),Ve=()=>({prefixCls:String,width:{type:[Number,String]}}),oe=y({compatConfig:{MODE:3},name:"SkeletonTitle",props:Ve(),setup(e){return()=>{const{prefixCls:t,width:n}=e,a=typeof n=="number"?`${n}px`:n;return r("h3",{class:t,style:{width:a}},null)}}}),Ue=()=>({prefixCls:String,width:{type:[Number,String,Array]},rows:Number}),Je=y({compatConfig:{MODE:3},name:"SkeletonParagraph",props:Ue(),setup(e){const t=n=>{const{width:a,rows:i=2}=e;if(Array.isArray(a))return a[n];if(i-1===n)return a};return()=>{const{prefixCls:n,rows:a}=e,i=[...Array(a)].map((l,d)=>{const g=t(d);return r("li",{key:d,style:{width:typeof g=="number"?`${g}px`:g}},null)});return r("ul",{class:n},[i])}}}),j=()=>({prefixCls:String,size:[String,Number],shape:String,active:{type:Boolean,default:void 0}}),W=e=>{const{prefixCls:t,size:n,shape:a}=e,i=x({[`${t}-lg`]:n==="large",[`${t}-sm`]:n==="small"}),l=x({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),d=typeof n=="number"?{width:`${n}px`,height:`${n}px`,lineHeight:`${n}px`}:{};return r("span",{class:x(t,i,l),style:d},null)};W.displayName="SkeletonElement";const Qe=new Pe("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),q=e=>({height:e,lineHeight:`${e}px`}),I=e=>o({width:e},q(e)),Ye=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:Qe,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),Q=e=>o({width:e*5,minWidth:e*5},q(e)),Ze=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:a,controlHeightLG:i,controlHeightSM:l}=e;return{[`${t}`]:o({display:"inline-block",verticalAlign:"top",background:n},I(a)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:o({},I(i)),[`${t}${t}-sm`]:o({},I(l))}},et=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:a,controlHeightLG:i,controlHeightSM:l,color:d}=e;return{[`${a}`]:o({display:"inline-block",verticalAlign:"top",background:d,borderRadius:n},Q(t)),[`${a}-lg`]:o({},Q(i)),[`${a}-sm`]:o({},Q(l))}},$e=e=>o({width:e},q(e)),tt=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:a,borderRadiusSM:i}=e;return{[`${t}`]:o(o({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:a,borderRadius:i},$e(n*2)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:o(o({},$e(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Y=(e,t,n)=>{const{skeletonButtonCls:a}=e;return{[`${n}${a}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${a}-round`]:{borderRadius:t}}},Z=e=>o({width:e*2,minWidth:e*2},q(e)),nt=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:a,controlHeightLG:i,controlHeightSM:l,color:d}=e;return o(o(o(o(o({[`${n}`]:o({display:"inline-block",verticalAlign:"top",background:d,borderRadius:t,width:a*2,minWidth:a*2},Z(a))},Y(e,a,n)),{[`${n}-lg`]:o({},Z(i))}),Y(e,i,`${n}-lg`)),{[`${n}-sm`]:o({},Z(l))}),Y(e,l,`${n}-sm`))},at=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:a,skeletonParagraphCls:i,skeletonButtonCls:l,skeletonInputCls:d,skeletonImageCls:g,controlHeight:T,controlHeightLG:f,controlHeightSM:m,color:v,padding:p,marginSM:u,borderRadius:s,skeletonTitleHeight:h,skeletonBlockRadius:b,skeletonParagraphLineHeight:S,controlHeightXS:H,skeletonParagraphMarginTop:A}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[`${n}`]:o({display:"inline-block",verticalAlign:"top",background:v},I(T)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:o({},I(f)),[`${n}-sm`]:o({},I(m))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${a}`]:{width:"100%",height:h,background:v,borderRadius:b,[`+ ${i}`]:{marginBlockStart:m}},[`${i}`]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:v,borderRadius:b,"+ li":{marginBlockStart:H}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${a}, ${i} > li`]:{borderRadius:s}}},[`${t}-with-avatar ${t}-content`]:{[`${a}`]:{marginBlockStart:u,[`+ ${i}`]:{marginBlockStart:A}}},[`${t}${t}-element`]:o(o(o(o({display:"inline-block",width:"auto"},nt(e)),Ze(e)),et(e)),tt(e)),[`${t}${t}-block`]:{width:"100%",[`${l}`]:{width:"100%"},[`${d}`]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
${a},
|
|
${i} > li,
|
|
${n},
|
|
${l},
|
|
${d},
|
|
${g}
|
|
`]:o({},Ye(e))}}},k=he("Skeleton",e=>{const{componentCls:t}=e,n=me(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[at(n)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}),ot=()=>({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}});function ee(e){return e&&typeof e=="object"?e:{}}function it(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function rt(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function lt(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const $=y({compatConfig:{MODE:3},name:"ASkeleton",props:ae(ot(),{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:n}=t;const{prefixCls:a,direction:i}=B("skeleton",e),[l,d]=k(a);return()=>{var g;const{loading:T,avatar:f,title:m,paragraph:v,active:p,round:u}=e,s=a.value;if(T||e.loading===void 0){const h=!!f||f==="",b=!!m||m==="",S=!!v||v==="";let H;if(h){const M=o(o({prefixCls:`${s}-avatar`},it(b,S)),ee(f));H=r("div",{class:`${s}-header`},[r(W,M,null)])}let A;if(b||S){let M;if(b){const C=o(o({prefixCls:`${s}-title`},rt(h,S)),ee(m));M=r(oe,C,null)}let R;if(S){const C=o(o({prefixCls:`${s}-paragraph`},lt(h,b)),ee(v));R=r(Je,C,null)}A=r("div",{class:`${s}-content`},[M,R])}const _=x(s,{[`${s}-with-avatar`]:h,[`${s}-active`]:p,[`${s}-rtl`]:i.value==="rtl",[`${s}-round`]:u,[d.value]:!0});return l(r("div",{class:_},[H,A]))}return(g=n.default)===null||g===void 0?void 0:g.call(n)}}}),st=()=>o(o({},j()),{size:String,block:Boolean}),Se=y({compatConfig:{MODE:3},name:"ASkeletonButton",props:ae(st(),{size:"default"}),setup(e){const{prefixCls:t}=B("skeleton",e),[n,a]=k(t),i=G(()=>x(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},a.value));return()=>n(r("div",{class:i.value},[r(W,w(w({},e),{},{prefixCls:`${t.value}-button`}),null)]))}}),ye=y({compatConfig:{MODE:3},name:"ASkeletonInput",props:o(o({},be(j(),["shape"])),{size:String,block:Boolean}),setup(e){const{prefixCls:t}=B("skeleton",e),[n,a]=k(t),i=G(()=>x(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},a.value));return()=>n(r("div",{class:i.value},[r(W,w(w({},e),{},{prefixCls:`${t.value}-input`}),null)]))}}),dt="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",Ce=y({compatConfig:{MODE:3},name:"ASkeletonImage",props:be(j(),["size","shape","active"]),setup(e){const{prefixCls:t}=B("skeleton",e),[n,a]=k(t),i=G(()=>x(t.value,`${t.value}-element`,a.value));return()=>n(r("div",{class:i.value},[r("div",{class:`${t.value}-image`},[r("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",class:`${t.value}-image-svg`},[r("path",{d:dt,class:`${t.value}-image-path`},null)])])]))}}),ct=()=>o(o({},j()),{shape:String}),xe=y({compatConfig:{MODE:3},name:"ASkeletonAvatar",props:ae(ct(),{size:"default",shape:"circle"}),setup(e){const{prefixCls:t}=B("skeleton",e),[n,a]=k(t),i=G(()=>x(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active},a.value));return()=>n(r("div",{class:i.value},[r(W,w(w({},e),{},{prefixCls:`${t.value}-avatar`}),null)]))}});$.Button=Se;$.Avatar=xe;$.Input=ye;$.Image=Ce;$.Title=oe;$.install=function(e){return e.component($.name,$),e.component($.Button.name,Se),e.component($.Avatar.name,xe),e.component($.Input.name,ye),e.component($.Image.name,Ce),e.component($.Title.name,oe),e};const{TabPane:ut}=fe,gt=()=>({prefixCls:String,title:E.any,extra:E.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:E.any,tabList:{type:Array},tabBarExtraContent:E.any,activeTabKey:String,defaultActiveTabKey:String,cover:E.any,onTabChange:{type:Function}}),D=y({compatConfig:{MODE:3},name:"ACard",inheritAttrs:!1,props:gt(),slots:Object,setup(e,t){let{slots:n,attrs:a}=t;const{prefixCls:i,direction:l,size:d}=B("card",e),[g,T]=Fe(i),f=p=>p.map((s,h)=>pe(s)&&!Ge(s)||!pe(s)?r("li",{style:{width:`${100/p.length}%`},key:`action-${h}`},[r("span",null,[s])]):null),m=p=>{var u;(u=e.onTabChange)===null||u===void 0||u.call(e,p)},v=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u;return p.forEach(s=>{s&&We(s.type)&&s.type.__ANT_CARD_GRID&&(u=!0)}),u};return()=>{var p,u,s,h,b,S;const{headStyle:H={},bodyStyle:A={},loading:_,bordered:M=!0,type:R,tabList:C,hoverable:we,activeTabKey:ie,defaultActiveTabKey:Be,tabBarExtraContent:re=L((p=n.tabBarExtraContent)===null||p===void 0?void 0:p.call(n)),title:X=L((u=n.title)===null||u===void 0?void 0:u.call(n)),extra:K=L((s=n.extra)===null||s===void 0?void 0:s.call(n)),actions:F=L((h=n.actions)===null||h===void 0?void 0:h.call(n)),cover:le=L((b=n.cover)===null||b===void 0?void 0:b.call(n))}=e,z=Ee((S=n.default)===null||S===void 0?void 0:S.call(n)),c=i.value,Te={[`${c}`]:!0,[T.value]:!0,[`${c}-loading`]:_,[`${c}-bordered`]:M,[`${c}-hoverable`]:!!we,[`${c}-contain-grid`]:v(z),[`${c}-contain-tabs`]:C&&C.length,[`${c}-${d.value}`]:d.value,[`${c}-type-${R}`]:!!R,[`${c}-rtl`]:l.value==="rtl"},He=r($,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[z]}),se=ie!==void 0,Ae={size:"large",[se?"activeKey":"defaultActiveKey"]:se?ie:Be,onChange:m,class:`${c}-head-tabs`};let de;const ce=C&&C.length?r(fe,Ae,{default:()=>[C.map(P=>{const{tab:ue,slots:O}=P,ge=O==null?void 0:O.tab;Le(!O,"Card","tabList slots is deprecated, Please use `customTab` instead.");let V=ue!==void 0?ue:n[ge]?n[ge](P):null;return V=De(n,"customTab",P,()=>[V]),r(ut,{tab:V,key:P.key,disabled:P.disabled},null)})],rightExtra:re?()=>re:null}):null;(X||K||ce)&&(de=r("div",{class:`${c}-head`,style:H},[r("div",{class:`${c}-head-wrapper`},[X&&r("div",{class:`${c}-head-title`},[X]),K&&r("div",{class:`${c}-extra`},[K])]),ce]));const Me=le?r("div",{class:`${c}-cover`},[le]):null,Ie=r("div",{class:`${c}-body`,style:A},[_?He:z]),Re=F&&F.length?r("ul",{class:`${c}-actions`},[f(F)]):null;return g(r("div",w(w({ref:"cardContainerRef"},a),{},{class:[Te,a.class]}),[de,Me,z&&z.length?Ie:null,Re]))}}}),pt=()=>({prefixCls:String,title:U(),description:U(),avatar:U()}),te=y({compatConfig:{MODE:3},name:"ACardMeta",props:pt(),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:a}=B("card",e);return()=>{const i={[`${a.value}-meta`]:!0},l=J(n,e,"avatar"),d=J(n,e,"title"),g=J(n,e,"description"),T=l?r("div",{class:`${a.value}-meta-avatar`},[l]):null,f=d?r("div",{class:`${a.value}-meta-title`},[d]):null,m=g?r("div",{class:`${a.value}-meta-description`},[g]):null,v=f||m?r("div",{class:`${a.value}-meta-detail`},[f,m]):null;return r("div",{class:i},[T,v])}}}),$t=()=>({prefixCls:String,hoverable:{type:Boolean,default:!0}}),ne=y({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:$t(),setup(e,t){let{slots:n}=t;const{prefixCls:a}=B("card",e),i=G(()=>({[`${a.value}-grid`]:!0,[`${a.value}-grid-hoverable`]:e.hoverable}));return()=>{var l;return r("div",{class:i.value},[(l=n.default)===null||l===void 0?void 0:l.call(n)])}}});D.Meta=te;D.Grid=ne;D.install=function(e){return e.component(D.name,D),e.component(te.name,te),e.component(ne.name,ne),e};export{D as C};
|