index.710c4036.js 1.1 KB

12
  1. import{i as s,a as i}from"./lineStart.9340661e.js";import{d as n,c as e,a,x as l}from"./vendor.f5bf56e4.js";var o="./assets/hold.abbcc7ab.png";const r="_albumType_1hn8v_1";var c={albumType:r},u=n({name:"item",props:{item:{type:Object,default:()=>({})},onItemClick:{type:Function,default:t=>{}}},render(){const t=this.item;return e("div",{class:"rounded-[10px] w-[156px] cursor-pointer overflow-hidden relative transition-all",onClick:()=>{this.onItemClick(t)}},[t.paymentType==="CHARGE"&&e("span",{class:c.albumType},[a("\u4ED8\u8D39")]),e(l,{src:t.favorite?s:i,class:"w-6 h-6 !absolute top-2 right-4 z-10"},null),e(l,{class:"w-full h-[156px] align-middle rounded-[10px]",fit:"cover",src:t.albumCoverUrl||o},null),e("div",{class:"text-lg text-black whitespace-nowrap text-ellipsis overflow-hidden pb-0.5 pt-2"},[t.albumName]),e("div",{class:"flex justify-between text-sm text-[#999]"},[e("div",{class:"flex items-center"},[e("span",null,[t.musicSheetCount,a("\u9996")])]),e("div",{class:"flex items-center "},[e("span",null,[t.albumFavoriteCount,a("\u6536\u85CF")])])])])}});export{u as I};