index-legacy-5380cf9b.js 4.0 KB

12345
  1. <<<<<<<< HEAD:dist/assets/index-legacy-5380cf9b.js
  2. System.register(["./index-legacy-5f8741ef.js"],(function(o,e){"use strict";var r,a,l,n,i,t,s,c,u,d,v,g,f,h,y,m,b,p,w,z,S;return{setters:[o=>{r=o.c,a=o.d,l=o.r,n=o.aU,i=o.e,t=o.o,s=o.a2,c=o.w,u=o.bx,d=o.aI,v=o.y,g=o.z,f=o.a,h=o.n,y=o.t,m=o.m,b=o.g,p=o.by,w=o.h,z=o.I,S=o.k}],execute:function(){const[e,x]=r("image"),I={src:String,alt:String,fit:String,position:String,round:Boolean,block:Boolean,width:h,height:h,radius:h,lazyLoad:Boolean,iconSize:h,showError:y,errorIcon:m("photo-fail"),iconPrefix:String,showLoading:y,loadingIcon:m("photo")};var L=a({name:e,props:I,emits:["load","error"],setup(o,{emit:e,slots:r}){const a=l(!1),h=l(!0),y=l(),{$Lazyload:m}=n().proxy,S=i((()=>{const e={width:t(o.width),height:t(o.height)};return s(o.radius)&&(e.overflow="hidden",e.borderRadius=t(o.radius)),e}));c((()=>o.src),(()=>{a.value=!1,h.value=!0}));const I=o=>{h.value&&(h.value=!1,e("load",o))},L=()=>{const o=new Event("load");Object.defineProperty(o,"target",{value:y.value,enumerable:!0}),I(o)},P=o=>{a.value=!0,h.value=!1,e("error",o)},$=(e,r,a)=>a?a():f(z,{name:e,size:o.iconSize,class:r,classPrefix:o.iconPrefix},null),j=()=>{if(a.value||!o.src)return;const e={alt:o.alt,class:x("img"),style:{objectFit:o.fit,objectPosition:o.position}};return o.lazyLoad?b(f("img",w({ref:y},e),null),[[p("lazy"),o.src]]):f("img",w({ref:y,src:o.src,onLoad:I,onError:P},e),null)},k=({el:o})=>{const e=()=>{o===y.value&&h.value&&L()};y.value?e():g(e)},E=({el:o})=>{o!==y.value||a.value||P()};return m&&u&&(m.$on("loaded",k),m.$on("error",E),d((()=>{m.$off("loaded",k),m.$off("error",E)}))),v((()=>{g((()=>{var e;(null==(e=y.value)?void 0:e.complete)&&!o.lazyLoad&&L()}))})),()=>{var e;return f("div",{class:x({round:o.round,block:o.block}),style:S.value},[j(),h.value&&o.showLoading?f("div",{class:x("loading")},[$(o.loadingIcon,x("loading-icon"),r.loading)]):a.value&&o.showError?f("div",{class:x("error")},[$(o.errorIcon,x("error-icon"),r.error)]):void 0,null==(e=r.default)?void 0:e.call(r)])}}});o("I",S(L))}}}));
  3. ========
  4. System.register(["./index-legacy-23bc5b47.js"],(function(o,e){"use strict";var r,a,l,n,i,t,s,c,u,d,v,g,f,h,y,m,b,p,w,z,S;return{setters:[o=>{r=o.c,a=o.d,l=o.r,n=o.aU,i=o.e,t=o.o,s=o.a2,c=o.w,u=o.by,d=o.aI,v=o.y,g=o.z,f=o.a,h=o.n,y=o.t,m=o.m,b=o.g,p=o.bz,w=o.h,z=o.I,S=o.k}],execute:function(){const[e,I]=r("image"),L={src:String,alt:String,fit:String,position:String,round:Boolean,block:Boolean,width:h,height:h,radius:h,lazyLoad:Boolean,iconSize:h,showError:y,errorIcon:m("photo-fail"),iconPrefix:String,showLoading:y,loadingIcon:m("photo")};var x=a({name:e,props:L,emits:["load","error"],setup(o,{emit:e,slots:r}){const a=l(!1),h=l(!0),y=l(),{$Lazyload:m}=n().proxy,S=i((()=>{const e={width:t(o.width),height:t(o.height)};return s(o.radius)&&(e.overflow="hidden",e.borderRadius=t(o.radius)),e}));c((()=>o.src),(()=>{a.value=!1,h.value=!0}));const L=o=>{h.value&&(h.value=!1,e("load",o))},x=()=>{const o=new Event("load");Object.defineProperty(o,"target",{value:y.value,enumerable:!0}),L(o)},P=o=>{a.value=!0,h.value=!1,e("error",o)},$=(e,r,a)=>a?a():f(z,{name:e,size:o.iconSize,class:r,classPrefix:o.iconPrefix},null),j=()=>{if(a.value||!o.src)return;const e={alt:o.alt,class:I("img"),style:{objectFit:o.fit,objectPosition:o.position}};return o.lazyLoad?b(f("img",w({ref:y},e),null),[[p("lazy"),o.src]]):f("img",w({ref:y,src:o.src,onLoad:L,onError:P},e),null)},k=({el:o})=>{const e=()=>{o===y.value&&h.value&&x()};y.value?e():g(e)},E=({el:o})=>{o!==y.value||a.value||P()};return m&&u&&(m.$on("loaded",k),m.$on("error",E),d((()=>{m.$off("loaded",k),m.$off("error",E)}))),v((()=>{g((()=>{var e;(null==(e=y.value)?void 0:e.complete)&&!o.lazyLoad&&x()}))})),()=>{var e;return f("div",{class:I({round:o.round,block:o.block}),style:S.value},[j(),h.value&&o.showLoading?f("div",{class:I("loading")},[$(o.loadingIcon,I("loading-icon"),r.loading)]):a.value&&o.showError?f("div",{class:I("error")},[$(o.errorIcon,I("error-icon"),r.error)]):void 0,null==(e=r.default)?void 0:e.call(r)])}}});o("I",S(x))}}}));
  5. >>>>>>>> iteration-20250327-light:dist/assets/index-legacy-02facf09.js