niucloud-admin/niucloud/public/admin/assets/preview-draw-41c646d2.js
全栈小学生 1c498f5a2a up
2025-01-03 17:59:49 +08:00

2 lines
640 B
JavaScript

import{d as u,M as l,h as c,c as i,aC as s,u as d}from"./index-a59af0dd.js";const p=u({__name:"preview-draw",props:{value:{type:Object,default:{}}},setup(r,{expose:a}){const e=r;l(()=>e.value);const n=l(()=>{var t="";t+=`background-color: ${e.value.bgColor};`,t+=`width: ${e.value.width}px;height: ${e.value.height}px;`;let o=document.getElementById(e.value.id);return o&&(t+=`width:${o.offsetWidth}px;height:${o.offsetHeight}px;`),t});return a({}),(t,o)=>(c(),i("div",{class:"overflow-hidden",style:s(d(n))},null,4))}}),f=Object.freeze(Object.defineProperty({__proto__:null,default:p},Symbol.toStringTag,{value:"Module"}));export{f as _};