PageSourceSearch

https://hfmusic-hfmuisc.hf.space/assets/songs-DYF3XbZK.js

js hfmusic-hfmuisc.hf.space collected 2026-10-03 16:56:35 UTC 1,088 bytes, 1 lines download raw bytes

1import{d as a,o as s,a6 as e,l as o,g as t,aN as l,di as n,O as r,a5 as u,F as d,h as i,f as c,ai as p,br as v}from"./stores-Bgdvgnu2.js";import{_ as m}from"./SongList-D6ezd94v.js";import"./cloud-BgNXQP7O.js";const g={class:"search-type"},f=a({__name:"songs",props:{keyword:{}},setup(a){const f=a,y=u(!0),k=u(!0),h=u(0),_=u(1),w=u([]),b=async()=>{k.value=!0;const a=await n(f.keyword,50,h.value,1);y.value=a.result?.hasMore||a.result?.songCount>h.value+50,_.value=a.result?.songCount;const s=r(a.result.songs);w.value=w.value?.concat(s),k.value=!1},j=()=>{y.value?(h.value+=50,b()):k.value=!1};return s(()=>{b()}),(s,n)=>{const r=m,u=p,f=v;return d(),e("div",g,[o(l,{name:"fade",mode:"out-in"},{default:t(()=>[i(_)>0?(d(),c(r,{key:0,data:i(w),loading:i(k),doubleClickAction:"add",loadMore:"",disabledSort:"",onReachBottom:j},null,8,["data","loading"])):(d(),c(f,{key:1,description:`很抱歉,未能找到与 ${a.keyword} 相关的任何歌曲`,style:{"margin-top":"60px"},size:"large"},{icon:t(()=>[o(u,{name:"SearchOff"})]),_:1},8,["description"]))]),_:1})])}}});export{f as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.