1 |
- System.register(["./index-legacy-e6be1dcb.js"],(function(t,a){"use strict";var r,e,n,o,l,i,s,u,d,p,v,h;return{setters:[t=>{r=t.c,e=t.d,n=t.a,o=t.o,l=t.n,i=t.k,s=t.aC,u=t.m,d=t.b,p=t.t,v=t.h,h=t.F}],execute:function(){const[a,c]=r("skeleton-title"),m={round:Boolean,titleWidth:l};var S=e({name:a,props:m,setup:t=>()=>n("h3",{class:c([{round:t.round}]),style:{width:o(t.titleWidth)}},null)}),y=t("c",i(S));const[w,W]=r("skeleton-avatar"),f={avatarSize:l,avatarShape:u("round")};var g=e({name:w,props:f,setup:t=>()=>n("div",{class:W([t.avatarShape]),style:s(t.avatarSize)},null)}),k=t("b",i(g));const z="100%",A={round:Boolean,rowWidth:{type:l,default:z}},[B,b]=r("skeleton-paragraph");var x=e({name:B,props:A,setup:t=>()=>n("div",{class:b([{round:t.round}]),style:{width:t.rowWidth}},null)}),j=t("a",i(x));const[C,F]=r("skeleton"),N={row:d(0),round:Boolean,title:Boolean,titleWidth:l,avatar:Boolean,avatarSize:l,avatarShape:u("round"),loading:p,animate:p,rowWidth:{type:[Number,String,Array],default:z}};var q=e({name:C,inheritAttrs:!1,props:N,setup(t,{slots:a,attrs:r}){const e=()=>{if(t.avatar)return n(k,{avatarShape:t.avatarShape,avatarSize:t.avatarSize},null)},l=()=>{if(t.title)return n(y,{round:t.round,titleWidth:t.titleWidth},null)},i=a=>{const{rowWidth:r}=t;return r===z&&a===+t.row-1?"60%":Array.isArray(r)?r[a]:r};return()=>{var s;return t.loading?n("div",v({class:F({animate:t.animate,round:t.round})},r),[a.template?a.template():n(h,null,[e(),n("div",{class:F("content")},[l(),Array(+t.row).fill("").map(((a,r)=>n(j,{key:r,round:t.round,rowWidth:o(i(r))},null)))])])]):null==(s=a.default)?void 0:s.call(a)}}});t("S",i(q))}}}));
|