skeletion-index-modal-013437e7.js 1.0 KB

1
  1. import{s as t}from"./index.module-422ac088.js";import{S as n,a as o}from"./index-713253ef.js";import{d as r,O as d,o as u,w as f,g as e}from"./index-7efc3749.js";import{C as h}from"./index-a1fc7980.js";import{C as i}from"./index-4a491eda.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};