import{a as m,o as l,h as i,i as s,t as f,c as y,k as r,j as a,m as w,u as o,G as k,b8 as g,E as b,p as x,X as d,bc as B,H as S,b9 as p}from"./entry.834fe740.js";import{_ as E}from"./items.vue_vue_type_script_setup_true_lang.8121b615.js";import{e as N,a as v}from"./empty_news.70229e1b.js";const z={class:"bg-white rounded-[8px]"},A={class:"flex items-center h-[60px] border-b border-br ml-5 pr-5"},C={class:"flex-1 flex min-w-0 mr-4 h-full"},T={class:"text-2xl truncate font-medium h-full border-b-2 border-tx-primary mt-[1px] flex items-center"},_={class:"px-5 pb-5"},D={key:1},$=m({__name:"card",props:{header:{type:String,default:""},link:{type:String,default:""},data:{type:Array,default:()=>[]},source:{type:String,default:"default"},onlyTitle:{type:Boolean,default:!0},titleLine:{type:Number,default:1},border:{type:Boolean,default:!0},imageSize:{type:String,default:"default"},showAuthor:{type:Boolean,default:!0},showDesc:{type:Boolean,default:!0},showClick:{type:Boolean,default:!0},showTime:{type:Boolean,default:!0},showSort:{type:Boolean,default:!0}},setup(e){return(n,L)=>{const u=B,h=E;return l(),i("div",z,[s("div",A,[s("div",C,[s("span",T,f(e.header),1)]),e.link?(l(),y(o(b),{key:0,class:"button",link:""},{default:r(()=>[a(u,{to:e.link,class:"flex"},{default:r(()=>[w(" \u66F4\u591A "),a(o(k),null,{default:r(()=>[a(o(g))]),_:1})]),_:1},8,["to"])]),_:1})):x("",!0)]),e.data.length?d(n.$slots,"content",{key:0,data:e.data},()=>[s("div",_,[(l(!0),i(S,null,p(e.data,(t,c)=>d(n.$slots,"item",{key:t.id,item:t,index:c},()=>[a(h,{index:c,"show-sort":e.showSort,id:t.id,title:t.title,desc:t.desc,click:t.click,author:t.author,"create-time":t.create_time,image:t.image,"only-title":e.onlyTitle,"image-size":e.imageSize,"show-author":e.showAuthor,"show-desc":e.showDesc,"show-click":e.showClick,border:e.border,"title-line":e.titleLine,"show-time":e.showTime,source:e.source},null,8,["index","show-sort","id","title","desc","click","author","create-time","image","only-title","image-size","show-author","show-desc","show-click","border","title-line","show-time","source"])])),128))])]):(l(),i("div",D,[a(o(v),{image:o(N),description:"\u6682\u65E0\u8D44\u8BAF","image-size":250},null,8,["image"])]))])}}});export{$ as _};
