2 lines
2.3 KiB
JavaScript
2 lines
2.3 KiB
JavaScript
import{b as m,d as n}from"./index-Ssy6AHhX.js";import{g as l}from"./decoration-DD-ajGy1.js";import{d,r as _,c as o,o as s,a as t,F as x,q as f,g as u,m as i,l as v,u as b}from"./@vue-DqCYILjk.js";import"./nprogress-Cn18nAuv.js";import"./vue-router-B-0K5V-K.js";import"./pinia-mEEzQJvk.js";import"./axios-DIsA03vz.js";import"./lodash-y93ab0Xv.js";import"./element-plus-Caccz9g_.js";import"./@element-plus-DUVk59Vi.js";import"./lodash-es-B-ecsAzo.js";import"./dayjs-DwMCULLY.js";import"./@popperjs-D_chPuIy.js";import"./async-validator-9PlIezaS.js";import"./@ctrl-r5W6hzzQ.js";import"./normalize-wheel-es-BQoi3Ox2.js";import"./@vueuse-DAQYQaJJ.js";import"./css-color-function-Oslqczna.js";import"./balanced-match-BdS7OldZ.js";import"./color-DYO1E7y4.js";import"./clone-Ddk2tjDh.js";import"./color-convert-DsNsD289.js";import"./color-name-Dju3oUBS.js";import"./color-string-pUQDDJII.js";import"./ms-CzQ2E3wO.js";import"./vue-clipboard3-CdRib5DX.js";import"./clipboard-DbF4rXjn.js";import"./echarts-CXZcVnUo.js";import"./tslib-BDyQ-Jie.js";import"./zrender-DO4NV0px.js";import"./highlight.js-CCvalMLC.js";import"./@highlightjs-Bvtfkhq1.js";const g={class:"news"},w={key:0,class:"mr-[10px]"},y=["src"],h={class:"flex flex-col justify-between flex-1"},j={class:"text-[15px] font-medium line-clamp-2"},k={class:"line-clamp-1 text-sm mt-[8px]"},D={class:"text-[#999] text-xs w-full flex justify-between mt-[8px]"},V={class:"flex items-center"},B={class:"ml-[5px]"},N=d({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(C){const r=_([]);return(async()=>{const p=await l({limit:10});r.value=p})(),(p,a)=>{const c=m;return s(),o("div",g,[a[0]||(a[0]=t("div",{class:"flex items-center news-title mx-[10px] my-[15px] text-[17px] font-medium"}," 最新资讯 ",-1)),(s(!0),o(x,null,f(b(r),e=>(s(),o("div",{key:e.id,class:"news-card flex bg-white px-[10px] py-[16px] text-[#333] border-[#f2f2f2] border-b"},[e.image?(s(),o("div",w,[t("img",{src:e.image,class:"w-[120px] h-[90px] object-contain"},null,8,y)])):u("",!0),t("div",h,[t("div",j,i(e.title),1),t("div",k,i(e.desc),1),t("div",D,[t("div",null,i(e.create_time),1),t("div",V,[v(c,{name:"el-icon-View"}),t("div",B,i(e.click),1)])])])]))),128))])}}}),mt=n(N,[["__scopeId","data-v-dba98882"]]);export{mt as default};
|