index-54c8c3bb.js 2.3 KB

1
  1. import{a as m,e as _,f as e,i as d,k as u,g,u as f,H as i,l as h,L as v}from"./index-db4acc2d.js";const b="_container_1dizp_1",y="_tools_1dizp_8",z="_content_1dizp_18",I="_item_1dizp_23",N="_cover_1dizp_29",w="_itemImg_1dizp_46",S="_itemName_1dizp_57",t={container:b,tools:y,content:z,item:I,cover:N,itemImg:w,itemName:S},L="_TheSearch_o12zc_1",R={TheSearch:L},U=""+new URL("icon_search-8a6ade17.svg",import.meta.url).href,k=m({name:"TheSearch",props:{round:{type:Boolean,default:!1}},emits:["search"],setup(a,{emit:n}){const s=_({value:""});return()=>e(d,{class:R.TheSearch,round:a.round,modelValue:s.value,"onUpdate:modelValue":r=>s.value=r},{prefix:()=>e("img",{src:U},null),suffix:()=>e(u,{size:"small",round:!0,type:"primary",onClick:()=>n("search",s.value)},{default:()=>[g("搜索")]})})}}),T=""+new URL("0-34a03604.png",import.meta.url).href,x=""+new URL("1-30f15957.png",import.meta.url).href,j=""+new URL("2-5f9c270e.png",import.meta.url).href,C=""+new URL("3-d57df471.png",import.meta.url).href,V=""+new URL("1-30f15957.png",import.meta.url).href,$=""+new URL("5-7bea1376.png",import.meta.url).href,D=Object.assign({"./0.png":T,"./1.png":x,"./2.png":j,"./3.png":C,"./4.png":V,"./5.png":$}),O=a=>D[`./${a}`]||"";function l(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!v(a)}const B=m({name:"XiaokuAi",setup(){const a=f(),n=_({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,r;return e("div",{class:t.container},[e("div",{class:t.tools},[e("div",{class:t.tags},[e(i,{size:[24,12]},l(s=n.tags.map((c,o)=>e(u,{round:!0,secondary:n.tagIndex!==o,type:n.tagIndex===o?"primary":"default",class:[t.tag,n.tagIndex===o?t.active:""],onClick:()=>n.tagIndex=o},{default:()=>[c.name]})))?s:{default:()=>[s]})]),e(k,{round:!0},null)]),e("div",{class:t.content},[e(i,{size:[50,40]},l(r=new Array(30).fill(n.list[0]).map((c,o)=>{const p=o>5?o%5:o;return e("div",{class:t.item,key:`item-${o}`,onClick:()=>a.push({path:"/xiaoku-music"})},[e("div",{class:t.cover},[e("div",{class:t.itemImg},[e(h,{objectFit:"contain",src:O(`${p}.png`),lazy:!0,previewDisabled:!0},null)])]),e("div",{class:t.itemName},[c.name])])}))?r:{default:()=>[r]})])])}}});export{B as default};