Deploying to gh-pages from @ arashsheyda/nuxt-mongoose@edcf10eea1 🚀

This commit is contained in:
arashsheyda
2024-04-03 19:37:00 +00:00
parent d69d188863
commit b1f4dd698d
147 changed files with 456 additions and 462 deletions

View File

@ -0,0 +1 @@
import{d as i,H as a,M as e,$ as n,m as h}from"./entry.smrWno0O.js";const f=i({props:{src:{type:[String,Object],default:null}},setup(s){const r=t=>t&&t.startsWith("/")&&!t.startsWith("//")?n(t,h().app.baseURL):t;return{imgSrc:a(()=>{let t=s.src;try{t=JSON.parse(t)}catch{t=s.src}return typeof t=="string"?r(s.src):{light:r(t.light),dark:r(t.dark)}})}},render({imgSrc:s}){if(typeof s=="string")return e("img",{src:s,...this.$attrs});const r=[];return s.light&&r.push(e("img",{src:s.light,class:["dark-img"],...this.$attrs})),s.dark&&r.push(e("img",{src:s.dark,class:["light-img"],...this.$attrs})),r}});export{f as _};