import{d as _,r as f,y as l,p,dx as h,e as o,f as c,A as a,g as s,t as v,n as m,dB as u,R as L,S as y,_ as k}from"./index.0308b213.js";const d=i=>(L("data-v-26736ced"),i=i(),y(),i),x={key:0,class:"left"},I=["src"],b={key:1,class:"right"},N={class:"right__left"},S=d(()=>s("div",{class:"icon tn-icon-sound-fill"},null,-1)),F={class:"content"},B=d(()=>s("div",{class:"right__right"},[s("div",{class:"tn-icon-right more"})],-1)),C=_({props:{config:null},setup(i){const e=i,t=f(0);let g=setInterval(()=>{t.value>0?l(()=>{t.value-=1}):l(()=>{t.value=e.config.noticeList.length-1})},1e3);return console.log(e,"dataList"),p(()=>e.config.noticeList,(n,r)=>{e.config.noticeList&&n.length>=0&&(t.value=n.length),(!e.config.noticeList||e.config.noticeList.length<=0)&&(e.config.noticeList=[{id:1,title:"\u4F60\u60F3\u8981\u7684\u4F18\u60E0\u5377\u90FD\u5728\u8FD9\u91CC1",thumb:u("@/assets/images/plugins/diy-page/newNotice.png")}])},{immediate:!0,deep:!0}),h(()=>{clearInterval(g)}),(n,r)=>(o(),c("div",{class:"notice",style:m({backgroundImage:`url(${e.config.noticeList[0].thumb?e.config.noticeList[0].thumb:u("@/assets/images/plugins/diy-page/newNotice.png")})`})},[e.config.noticeList[t.value]?(o(),c("div",x,[e.config.noticeList[t.value].isTem&&e.config.noticeList[t.value].thumb?(o(),c("img",{key:0,src:e.config.noticeList[t.value].thumb,alt:""},null,8,I)):a("",!0)])):a("",!0),e.config.noticeList[t.value]?(o(),c("div",b,[s("div",N,[S,s("div",F,v(e.config.noticeList[t.value].title),1)]),B])):a("",!0)],4))}});const D=k(C,[["__scopeId","data-v-26736ced"]]);export{D as default};
