mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-06 04:58:10 +00:00
2 lines
1.0 KiB
JavaScript
2 lines
1.0 KiB
JavaScript
import{u as s}from"./poster-834b1f90.js";import{d as f,M as a,h as p,c,t as v,u as l,aC as d}from"./index-785a2eda.js";const h=f({__name:"preview-friendspay-message",props:{value:{type:Object,default:{}}},setup(n,{expose:i}){const e=n;s();const r=a(()=>e.value),u=a(()=>{var t="";t+=`font-size: ${e.value.fontSize}px;color: ${e.value.fontColor};line-height: ${e.value.lineHeight+e.value.fontSize}px;`,(e.value.x=="left"||e.value.x=="center"||e.value.x=="right")&&(t+=`text-align: ${e.value.x};`),e.value.weight&&(t+="font-weight: bold;"),(!e.value.fontFamily||e.value.fontFamily=="static/font/SourceHanSansCN-Regular.ttf")&&(t+="font-family: poster_default_font;");let o=document.getElementById(e.value.id);return o?t+=`width:${o.offsetWidth}px;height:${o.offsetHeight}px;`:t+=`width:${e.value.width}px;height:${e.value.height}px;`,t});return i({}),(t,o)=>(p(),c("div",{class:"overflow-hidden",style:d(l(u))},v(l(r).value),5))}}),g=Object.freeze(Object.defineProperty({__proto__:null,default:h},Symbol.toStringTag,{value:"Module"}));export{g as _};
|