item.b13aad29.js 2.3 KB

1
  1. import{d as n,r,f as l,S as u,c as t,a as o,k as m}from"./vendor.f5bf56e4.js";import{i as _,a as g}from"./icon_album_active.66672e6b.js";const A="_liveClass_1wai0_1",p="_badge_1wai0_21",w="_itemWrap_1wai0_28",d="_left_1wai0_49",f="_imgWrap_1wai0_54",B="_textWrap_1wai0_61",h="_authorInfo_1wai0_70",C="_icon_1wai0_80",v="_authorName_1wai0_87",b="_tagList_1wai0_92",N="_tag_1wai0_92",W="_right_1wai0_106",k="_arrow_1wai0_112",x="_touchButton_1wai0_117",F="_vip_1wai0_128",I="_free_1wai0_132",y="_charge_1wai0_136",E="_iconFine_1wai0_140",S="_iconAlbum_1wai0_146";var i={liveClass:A,badge:p,itemWrap:w,left:d,imgWrap:f,textWrap:B,authorInfo:h,icon:C,authorName:v,tagList:b,tag:N,right:W,arrow:k,touchButton:x,vip:F,free:I,charge:y,iconFine:E,iconAlbum:S},J="./assets/music.24d07fa6.png",U="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAPlJREFUWEft2LENAiEUBuB3tlaUOIyJK1gwgreAA9BZOcHlmttBK9dxBhJzuRgSCxtN4P0/kgg1kC8/JLxHJ5WPrnKfNKD2hFqCP0lwGIbDsizWGHNyzj20iG/rk494HMfNPM/316YXY8yeiUwGeu9X1tqbiOxKIJOBETVN0zqEcBWRLRuZBSyJzAaWQqqAJZBqIBsJATKRMCALCQUykHAgGkkBIpE04Afkue/7Y0px8b9A1HtNSRCFi1cBDkTi4EA0Dgpk4GBAFg4CZOLUQDZOBSyBywaWwmUBq287q2/cY+xVf32klEqIufC3GIF636MBtYm2BLUJPgHTXfIpPDsbwQAAAABJRU5ErkJggg==",R=n({name:"music-item",props:{item:{type:Object,default:()=>({})},onClick:{type:Function,default:e=>{}},onChangeState:{type:Function,default:e=>{}}},setup(e){const a=r({item:e.item});l(),u(()=>e.item,s=>{a.item=s});const c=()=>{console.log(1)};return()=>t("div",{onClick:()=>{e.onClick(a.item)}},[t("div",{class:i.itemWrap,onClick:()=>c()},[t("div",{class:i.left},[t("div",{class:i.imgWrap},[t("img",{src:a.item.titleImg||J,alt:""},null)]),t("div",{class:i.textWrap},[t("p",null,[a.item.exquisiteFlag===1&&t("img",{src:_,class:i.iconFine},null),a.item.albumNums>0&&t("img",{src:g,class:i.iconAlbum},null),a.item.musicSheetName]),t("div",{class:i.authorInfo},[t("span",null,[o("\u4F5C\u66F2: "),a.item.composer])]),t("div",{class:i.tagList},[a.item.subjectNames?t("div",{class:i.tag},[a.item.subjectNames]):null])])]),t("div",{class:i.right},[a.item.auditStatus==="PASS"&&t(m,{plain:!0,type:"danger",round:!0,size:"small",style:{padding:"8px 12px"},onClick:s=>{s.stopPropagation(),e.onChangeState(a.item)}},{default:()=>[o("\u4E0B\u67B6")]}),t("img",{class:i.arrow,src:U,alt:""},null)])])])}});export{R as M,i as s};