mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-04 20:31:10 +00:00
2 lines
642 B
JavaScript
2 lines
642 B
JavaScript
import{d as c,X as l,h as u,c as s,aH as i,u as d}from"./index-9f163f98.js";const p=c({__name:"preview-draw",props:{value:{type:Object,default:{}}},setup(n,{expose:r}){const e=n;l(()=>e.value);const a=l(()=>{let t="";t+=`background-color: ${e.value.bgColor};`,t+=`width: ${e.value.width}px;height: ${e.value.height}px;`;const o=document.getElementById(e.value.id);return o&&(t+=`width:${o.offsetWidth}px;height:${o.offsetHeight}px;`),t});return r({}),(t,o)=>(u(),s("div",{class:"overflow-hidden",style:i(d(a))},null,4))}}),f=Object.freeze(Object.defineProperty({__proto__:null,default:p},Symbol.toStringTag,{value:"Module"}));export{f as _};
|