/
home
/
liman
/
app
/
assets
/
File Upload :
llllll
Current File: //home/liman/app/assets/Skeleton.f7ad9040.js
import{m as $,c as h,k as c,u as A,v as I,_ as p,h as T}from"./collapseMotion.b5168aa1.js";import{d as x,h as u}from"./index.f21e11d7.js";var D=function(){return{prefixCls:String,width:{type:[Number,String]}}},H=x({name:"SkeletonTitle",props:D(),setup:function(e){return function(){var n=e.prefixCls,a=e.width,r=typeof a=="number"?"".concat(a,"px"):a;return u("h3",{class:n,style:{width:r}},null)}}}),L=H,N=function(){return{prefixCls:String,width:{type:[Number,String,Array]},rows:Number}},V=x({name:"SkeletonParagraph",props:N(),setup:function(e){var n=function(r){var i=e.width,s=e.rows,o=s===void 0?2:s;if(Array.isArray(i))return i[r];if(o-1===r)return i};return function(){var a=e.prefixCls,r=e.rows,i=$(Array(r)).map(function(s,o){var f=n(o);return u("li",{key:o,style:{width:typeof f=="number"?"".concat(f,"px"):f}},null)});return u("ul",{class:a},[i])}}}),F=V,Y=function(){return{prefixCls:String,size:[String,Number],shape:String,active:{type:Boolean,default:void 0}}},z=function(e){var n,a,r=e.prefixCls,i=e.size,s=e.shape,o=h((n={},c(n,"".concat(r,"-lg"),i==="large"),c(n,"".concat(r,"-sm"),i==="small"),n)),f=h((a={},c(a,"".concat(r,"-circle"),s==="circle"),c(a,"".concat(r,"-square"),s==="square"),c(a,"".concat(r,"-round"),s==="round"),a)),v=typeof i=="number"?{width:"".concat(i,"px"),height:"".concat(i,"px"),lineHeight:"".concat(i,"px")}:{};return u("span",{class:h(r,o,f),style:v},null)};z.displayName="SkeletonElement";var G=z,J=function(){return{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 k(t){return t&&T(t)==="object"?t:{}}function K(t,e){return t&&!e?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function M(t,e){return!t&&e?{width:"38%"}:t&&e?{width:"50%"}:{}}function Q(t,e){var n={};return(!t||!e)&&(n.width="61%"),!t&&e?n.rows=3:n.rows=2,n}var R=x({name:"ASkeleton",props:A(J(),{avatar:!1,title:!0,paragraph:!0}),setup:function(e,n){var a=n.slots,r=I("skeleton",e),i=r.prefixCls,s=r.direction;return function(){var o,f=e.loading,v=e.avatar,w=e.title,C=e.paragraph,E=e.active,j=e.round,l=i.value;if(f||e.loading===void 0){var d,g=!!v||v==="",m=!!w||w==="",y=!!C||C==="",S;if(g){var _=p(p({prefixCls:"".concat(l,"-avatar")},K(m,y)),k(v));S=u("div",{class:"".concat(l,"-header")},[u(G,_,null)])}var P;if(m||y){var b;if(m){var q=p(p({prefixCls:"".concat(l,"-title")},M(g,y)),k(w));b=u(L,q,null)}var B;if(y){var O=p(p({prefixCls:"".concat(l,"-paragraph")},Q(g,m)),k(C));B=u(F,O,null)}P=u("div",{class:"".concat(l,"-content")},[b,B])}var W=h(l,(d={},c(d,"".concat(l,"-with-avatar"),g),c(d,"".concat(l,"-active"),E),c(d,"".concat(l,"-rtl"),s.value==="rtl"),c(d,"".concat(l,"-round"),j),d));return u("div",{class:W},[S,P])}return(o=a.default)===null||o===void 0?void 0:o.call(a)}}}),Z=R;export{G as E,Z as S,L as a,Y as s};
Copyright ©2k19 -
Hexid
|
Tex7ure