skeletion-index-modal-f26dfd49.js 2.2 KB

1
  1. import{d as c,O as o,o as i,w as _,g as e}from"./index-1d4a9afa.js";import{S as d,b as r,a}from"./index-fc00eb76.js";import{C as u}from"./index-a27d7671.js";const g="_cellGroup_gex1n_1",m="_cell_gex1n_1",x="_iconTeacher_gex1n_13",h="_username_gex1n_20",k="_name_gex1n_20",w="_attendance_gex1n_29",v="_noLink_gex1n_36",p="_attendanceItem_gex1n_36",f="_weekAttendance_gex1n_51",A="_value_gex1n_51",G="_classAttendance_gex1n_56",y="_error_gex1n_63",I="_success_gex1n_66",L="_teacherAttendanceDetail_gex1n_69",S="_className_gex1n_79",C="_timer_gex1n_100",T="_skeletionTitle_gex1n_104",N="_detailCellGroup_gex1n_107",W="_detailGroup_gex1n_110",D="_detailItem_gex1n_117",b="_detailStatus_gex1n_124",B="_statusName_gex1n_131",M="_img_gex1n_134",O="_sign_gex1n_138",P="_locate_gex1n_146",t={cellGroup:g,cell:m,iconTeacher:x,username:h,name:k,class:"_class_gex1n_24",attendance:w,noLink:v,attendanceItem:p,weekAttendance:f,value:A,classAttendance:G,error:y,success:I,teacherAttendanceDetail:L,className:S,timer:C,skeletionTitle:T,detailCellGroup:N,detailGroup:W,detailItem:D,detailStatus:b,statusName:B,img:M,sign:O,locate:P},z=c({name:"skeleton-modal",props:{show:{type:Boolean,default:!1},showCount:{type:Array,default:()=>[1,2,3,4,5,6,5,6]},isLink:{type:Boolean,default:!0}},setup(n,{slots:s}){const l=o({loading:!1});return i(()=>{l.loading=n.show}),_(()=>n.show,()=>{l.loading=n.show}),()=>e(d,{loading:l.loading,style:"flex-wrap: wrap"},{template:()=>e("div",{style:{height:n.isLink?"calc(100vh - var(--header-height))":"auto",overflow:"hidden",width:"100%"}},[n.showCount.map(()=>e("div",{class:t.cellGroup},[e(u,{center:!0,isLink:n.isLink,clickable:!1,class:t.cell},{icon:()=>e(r,{class:t.iconTeacher},null),title:()=>e("div",{class:t.username,style:{width:"80px"}},[e(a,{rowWidth:"50%"},null),e(a,{style:{marginTop:"4px"}},null)]),value:()=>e("div",{class:[t.attendance,n.isLink?"":t.noLink]},[e("div",{class:[t.attendanceItem]},[e(a,{class:t.value,rowWidth:"40%"},null),e(a,{class:t.value,rowWidth:"40%"},null)]),e("div",{class:[t.attendanceItem]},[e(a,{class:t.value,rowWidth:"40%"},null),e(a,{class:t.value,rowWidth:"40%"},null)])])})]))]),default:()=>s.default&&s.default()})}});export{z as S,t as s};