mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-07 13:38:10 +00:00
2 lines
699 B
JavaScript
2 lines
699 B
JavaScript
import{d as _,X as n,h as l,c as s,u as e,z as c,aH as p}from"./index-9f163f98.js";const m=["src"],d=["src"],f=_({__name:"preview-image",props:{value:{type:Object,default:{}}},setup(r,{expose:u}){const a=r,o=n(()=>a.value),i=n(()=>{let t="";return t+=`width: ${a.value.width}px;`,t});return u({}),(t,g)=>(l(),s("div",{class:"pointer-events-none max-w-[720px]",style:p(e(i))},[e(o).value?(l(),s("img",{key:0,src:e(c)(e(o).value),class:"w-full h-full"},null,8,m)):(l(),s("img",{key:1,src:e(c)("static/resource/images/diy/crack_figure.png"),class:"w-full h-full"},null,8,d))],4))}}),y=Object.freeze(Object.defineProperty({__proto__:null,default:f},Symbol.toStringTag,{value:"Module"}));export{y as _};
|