skeletion-index-modal-8a1233ae.js 1.0 KB

1
  1. 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-edefc56e.js";import{S as f,a as o}from"./index-ba2bf563.js";import{C as h}from"./index-075173b8.js";import{C as i}from"./index-f9a2e469.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};