niucloud-admin/niucloud/public/admin/assets/preview-nickname-2543baea.js
全栈小学生 eff269ab88 up
2025-09-20 09:12:11 +08:00

2 lines
1.0 KiB
JavaScript

import{u}from"./poster-7c65d559.js";import{d as f,X as l,h as r,c as s,aH as c,u as p}from"./index-9f163f98.js";const v=f({__name:"preview-nickname",props:{value:{type:Object,default:{}}},setup(n,{expose:a}){const e=n;u(),l(()=>e.value);const i=l(()=>{let 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/PingFang-Medium.ttf")&&(t+="font-family: poster_default_font;");const 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 a({}),(t,o)=>(r(),s("div",{class:"overflow-hidden",style:c(p(i))},"会员昵称",4))}}),m=Object.freeze(Object.defineProperty({__proto__:null,default:v},Symbol.toStringTag,{value:"Module"}));export{m as _};