2025-09-16 11:54:19 +00:00

3 lines
694 B
JavaScript

import{a as t,r as i,_ as a}from"./plugin-vueexport-helper-CAXJ8sGA.js";import{d as c,c as s,o as d}from"./index-DGi0-hAa.js";const l=c({name:"tmagic-img",props:{config:{type:Object,required:!0},iteratorIndex:Array,iteratorContainerId:Array,containerIndex:Number,pageFragmentContainerId:[String,Number],model:{type:Object,default:()=>({})}},setup(e){const r=()=>{e.config.url&&(window.location.href=e.config.url)},n=t(e);return i(n),{clickHandler:r}}}),f=["src"];function m(e,r,n,u,p,g){return d(),s("img",{src:e.config.src,onClick:r[0]||(r[0]=(...o)=>e.clickHandler&&e.clickHandler(...o))},null,8,f)}const b=a(l,[["render",m]]);export{b as default};
//# sourceMappingURL=index-fCe7t2BB.js.map