index.b1356415.js 1019 B

1
  1. import{t as a}from"./formatTime.529a6f14.js";import{_ as c,d as m,e as r,g as e,v as i,h as d,i as _}from"./index.bec96d93.js";const u={class:"imgbox",style:{"margin-bottom":"10px"}},g=["src","alt"],p={class:"content"},x={class:"title ellipsis-two"},f={class:"footer flex-row flex-aic flex-jc-sb"},v={__name:"index",props:{image:{type:String,default:"https://dummyimage.com/279x155/e3e3e3/fff"},title:{type:String},timeAgo:{type:String},likeCount:{type:Number},commentCount:{type:Number},is_like:String,is_collect:String},emits:["todetails"],setup(t,{emit:s}){const n=a,o=s,l=()=>{o("update")};return(y,h)=>(m(),r("div",{class:"index-news-container",style:{cursor:"pointer"},onClick:l},[e("div",u,[e("img",{src:t.image,alt:t.title},null,8,g)]),e("div",p,[e("div",x,i(t.title),1),e("div",f,[e("span",null,i(d(n)(t.timeAgo)),1),e("div",null,[e("span",null,i(t.likeCount)+"\u559C\u6B22",1),_("\xB7"),e("span",null,i(t.commentCount)+"\u8BC4\u8BBA",1)])])])]))}};var b=c(v,[["__scopeId","data-v-6156e418"]]);export{b as _};