index.25ff6681.js 1.3 KB

1
  1. import{d as m,j as e,A as i,N as r,$ as c}from"./ResizeObserver.es.39b48a47.js";import{G as n,a as u}from"./index.5416c7b0.js";import{I as d}from"./index.fcbcb027.js";import{I as _}from"./icon-xin.797feb04.js";const p="_theMusicGrid_10oqo_1",f="_item_10oqo_12",g="_title_10oqo_15",y="_des_10oqo_24",b="_imgWrap_10oqo_29",v="_albumType_10oqo_36",G="_model_10oqo_49",T="_num_10oqo_64";var t={theMusicGrid:p,item:f,title:g,des:y,imgWrap:b,albumType:v,model:G,num:T};function h(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!c(o)}var C=m({name:"TheMusicGrid",props:{isHiddenTag:{type:Boolean,default:!1},list:{type:Array,default:()=>[]}},emits:["goto"],setup(o,{emit:l}){return()=>{let a;return e("div",{class:t.theMusicGrid},[e(n,{border:!1,columnNum:3},h(a=o.list.map(s=>e(u,null,{default:()=>[e("div",{class:t.item,onClick:()=>l("goto",s)},[e("div",{class:t.imgWrap},[s.paymentType==="CHARGE"&&!o.isHiddenTag&&e("span",{class:t.albumType},[i("\u4ED8\u8D39")]),e(d,{class:t.image,width:"100%",height:"100%",fit:"cover",src:s.albumCoverUrl},null),e("div",{class:t.model},[e(r,{name:_},null),e("span",{class:t.num},[s.albumFavoriteCount,i("\u4EBA")])])]),e("div",{class:t.title},[s.albumName])])]})))?a:{default:()=>[a]})])}}});export{C as M};