import{d as i}from"./dayjs.min-C87aRAS5.js";import{_ as p}from"./index-M_JNBppB.js";import{r as t,j as _,X as u,B as d,z as f,D as s,L as o,u as n}from"./vue-BJk78QHK.js";import"./threejs-BafxXW5-.js";import"./utils-YI6ye1sf.js";import"./element-3_pOinej.js";import"./vxe-Dx3zSILm.js";const v={class:"box"},D={class:"boxDay"},x={class:"boxTime"},y={class:"boxDate"},b=Object.assign({name:"Time"},{__name:"Time",props:{element:{type:Object,default:()=>({})}},setup(h){const r=t(null),c=t(null),l=t(null),m=t(["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]),a=t(null);return _(()=>{a.value=setInterval(()=>{const e=i(new Date);r.value=e.format("HH:mm:ss"),c.value=e.format("YYYY-MM-DD"),l.value=e.format(m.value[e.day()])},1e3)}),u(()=>{a.value&&clearInterval(a.value)}),(e,B)=>(f(),d("div",v,[s("p",D,o(n(l)),1),s("p",x,o(n(r)),1),s("p",y,o(n(c)),1)]))}}),w=p(b,[["__scopeId","data-v-c01aa812"]]);export{w as default};
