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

This commit is contained in:
arashsheyda
2023-07-17 13:20:42 +00:00
parent 92bd342b25
commit ae7fce910d
251 changed files with 232 additions and 233 deletions

View File

@ -0,0 +1 @@
import{d as a,J as i,O as e,am as n,m as h}from"./entry.fa7b6eb8.js";const f=a({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:i(()=>{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 _};