文档归位:雪猫 README 门面 + 公告/制作文档/发布工具并入仓库根
Release Tag / validate-version (push) Waiting to run

This commit is contained in:
天天的鸟蛋蛋 committed 2026-11-12 06:29:38 +08:00
1 parent b9655a5ab1
commit e292824161
122 files changed
+90002 -69

No files matched your search

@@ -0,0 +1 @@
import{r as c}from"./react-vendor-jWT2yUdV.js";import{aJ as d}from"./index-DiaaLdUu.js";function f(){const n=()=>()=>{};return c.useSyncExternalStore(n,()=>!0,()=>!1)}function I(n={}){const{onLoad:u,onError:o,ignoreFallback:a}=n,t=f(),e=c.useRef(t?new Image:null),[i,s]=c.useState("pending");c.useEffect(()=>{e.current&&(e.current.onload=l=>{r(),s("loaded"),u==null||u(l)},e.current.onerror=l=>{r(),s("failed"),o==null||o(l)})},[e.current]);const r=()=>{e.current&&(e.current.onload=null,e.current.onerror=null,e.current=null)};return d(()=>{t&&s(g(n,e))},[t]),a?"loaded":i}function g(n,u){const{loading:o,src:a,srcSet:t,crossOrigin:e,sizes:i,ignoreFallback:s}=n;if(!a)return"pending";if(s)return"loaded";const r=new Image;return r.src=a,e&&(r.crossOrigin=e),t&&(r.srcset=t),i&&(r.sizes=i),o&&(r.loading=o),u.current=r,r.complete&&r.naturalWidth?"loaded":"loading"}export{I as u};