import{s as t}from"./index.module-3b4cd265.js";import{d as n,O as r,o as d,w as u,g as e}from"./index-8911ca98.js";import{S as f,a as o}from"./index-be98d0cb.js";import{C as h}from"./index-7b38230b.js";import{C as i}from"./index-8a6d93dd.js";const g=n({name:"skeleton-modal",props:{show:{type:Boolean,default:!1},showCount:{type:Array,default:()=>[1,2,3,4,5,6]},isLink:{type:Boolean,default:!0}},setup(l,{slots:s}){const a=r({loading:!1});return d(()=>{a.loading=l.show}),u(()=>l.show,()=>{a.loading=l.show}),()=>e(f,{loading:a.loading,style:"flex-wrap: wrap"},{template:()=>e("div",{style:{height:l.isLink?"calc(100vh - var(--header-height))":"auto",overflow:"hidden",width:"100%"}},[l.showCount.map(()=>e(h,{inset:!0,class:t.cellGroup},{default:()=>[e(i,{center:!0,isLink:l.isLink,class:t.cellTitle,clickable:!1},{title:()=>e(o,{rowWidth:"80%",class:t.title},null)}),e(i,{center:!0,valueClass:t.cellTimerSkeleton},{title:()=>e(o,{rowWidth:"80%"},null),value:()=>e(o,{rowWidth:"50%"},null)})]}))]),default:()=>s.default&&s.default()})}});export{g as S};
