skeletion-index-modal-6fa9a542.js 1.0 KB

1
  1. import{s as t}from"./index.module-422ac088.js";import{S as n,a as o}from"./index-fc00eb76.js";import{d as r,O as d,o as u,w as f,g as e}from"./index-1d4a9afa.js";import{C as h}from"./index-b8090118.js";import{C as i}from"./index-a27d7671.js";const g=r({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=d({loading:!1});return u(()=>{a.loading=l.show}),f(()=>l.show,()=>{a.loading=l.show}),()=>e(n,{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};