1 |
- import{r as P,B as T,aP as G,a$ as b,d as p,b1 as _,o as t,c as r,l as g,a,b6 as L,a2 as h,W as m,b3 as w,b7 as W,F as k,k as $,aF as x,i as j,ai as S,aG as q,b4 as z,b8 as A,__tla as C}from"./index-afaf388d.js";let B,D=Promise.all([(()=>{try{return C}catch{}})()]).then(async()=>{const E=b({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),N=b({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),F=p({name:"ElSkeletonItem"});var u=w(p({...F,props:N,setup(d){const i=_("skeleton");return(o,s)=>(t(),r("div",{class:m([a(i).e("item"),a(i).e(o.variant)])},[o.variant==="image"?(t(),g(a(L),{key:0})):h("v-if",!0)],2))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const I=p({name:"ElSkeleton"});B=z(w(p({...I,props:E,setup(d,{expose:i}){const o=d,s=_("skeleton"),v=((e,c=0)=>{if(c===0)return e;const l=P(!1);let n=0;const y=()=>{n&&clearTimeout(n),n=window.setTimeout(()=>{l.value=e.value},c)};return T(y),G(()=>e.value,f=>{f?y():l.value=f}),l})(W(o,"loading"),o.throttle);return i({uiLoading:v}),(e,c)=>a(v)?(t(),r("div",S({key:0,class:[a(s).b(),a(s).is("animated",e.animated)]},e.$attrs),[(t(!0),r(k,null,$(e.count,l=>(t(),r(k,{key:l},[e.loading?x(e.$slots,"template",{key:l},()=>[j(u,{class:m(a(s).is("first")),variant:"p"},null,8,["class"]),(t(!0),r(k,null,$(e.rows,n=>(t(),g(u,{key:n,class:m([a(s).e("paragraph"),a(s).is("last",n===e.rows&&e.rows>1)]),variant:"p"},null,8,["class"]))),128))]):h("v-if",!0)],64))),128))],16)):x(e.$slots,"default",q(S({key:1},e.$attrs)))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]),{SkeletonItem:u}),A(u)});export{B as E,D as __tla};
|