| 1 |
- var p=Object.defineProperty,h=Object.defineProperties;var v=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var u=(o,t,e)=>t in o?p(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,c=(o,t)=>{for(var e in t||(t={}))w.call(t,e)&&u(o,e,t[e]);if(i)for(var e of i(t))M.call(t,e)&&u(o,e,t[e]);return o},d=(o,t)=>h(o,v(t));import{am as I,an as O,ao as f}from"./index.js";import{r as k,G as H}from"./vue-aed314e3.js";function G(o=!0,t=1e3){let e;const n=k({year:0,month:0,week:"",day:0,hour:"",minute:0,second:0,meridiem:"",timestamp:0}),r=()=>{const a=f(),g=a.format("HH"),l=a.format("mm"),y=a.get("s");n.year=a.get("y"),n.month=a.get("M")+1>9?a.get("M")+1:"0"+(a.get("M")+1),n.week="星期"+["日","一","二","三","四","五","六"][a.day()],n.day=a.get("date")>9?a.get("date"):"0"+a.get("date"),n.hour=g,n.minute=l,n.second=y,n.meridiem=a.format("A"),n.timestamp=f().valueOf()};function m(){r(),clearInterval(e),e=setInterval(()=>r(),t)}function s(){clearInterval(e)}return I(()=>{o&&m()}),O(()=>{s()}),d(c({},H(n)),{start:m,stop:s})}export{G as u};
|