1 |
- import{T as g}from"./index-56826533.js";import{d as u,u as p,c as d,f as t,J as i,k as f,l as v,O as b}from"./index-6fc4924b.js";const w="_container_bwvqf_1",I="_tools_bwvqf_8",h="_content_bwvqf_18",y="_item_bwvqf_23",N="_cover_bwvqf_29",q="_itemImg_bwvqf_46",L="_itemName_bwvqf_65",e={container:w,tools:I,content:h,item:y,cover:N,itemImg:q,itemName:L},R=""+new URL("0-34a03604.png",import.meta.url).href,k=""+new URL("1-30f15957.png",import.meta.url).href,U=""+new URL("2-5f9c270e.png",import.meta.url).href,j=""+new URL("3-d57df471.png",import.meta.url).href,O=""+new URL("1-30f15957.png",import.meta.url).href,S=""+new URL("5-7bea1376.png",import.meta.url).href,x=Object.assign({"./0.png":R,"./1.png":k,"./2.png":U,"./3.png":j,"./4.png":O,"./5.png":S}),z=o=>x[`./${o}`]||"";function _(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!b(o)}const A=u({name:"XiaokuAi",setup(){const o=p(),a=d({tags:[{name:"全部",id:0},{name:"人教版",id:1},{name:"声部训练",id:2},{name:"小曲目",id:3},{name:"考级曲目",id:4}],tagIndex:0,list:[{name:"一年级上册人教版(2013版)",src:""}]});return()=>{let s,c;return t("div",{class:e.container},[t("div",{class:e.tools},[t("div",{class:e.tags},[t(i,{size:[24,12]},_(s=a.tags.map((r,n)=>t(f,{round:!0,secondary:a.tagIndex!==n,type:a.tagIndex===n?"primary":"default",class:[e.tag,a.tagIndex===n?e.active:""],onClick:()=>a.tagIndex=n},{default:()=>[r.name]})))?s:{default:()=>[s]})]),t(g,{round:!0},null)]),t("div",{class:e.content},[t(i,{size:[50,40]},_(c=new Array(30).fill(a.list[0]).map((r,n)=>{const m=n>5?n%5:n;return t("div",{class:e.item,key:`item-${n}`,onClick:()=>o.push({path:"/xiaoku-music"})},[t("div",{class:e.cover},[t("div",{class:e.itemImg},[t(v,{objectFit:"contain",src:z(`${m}.png`),lazy:!0,previewDisabled:!0,onLoad:l=>{l.target.dataset.loaded="true"}},null)])]),t("div",{class:e.itemName},[r.name])])}))?c:{default:()=>[c]})])])}}});export{A as default};
|