You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
1011 B
1 lines
1011 B
import{u as r}from"./poster-7c3bbecf.js";import{d as u,M as l,h as f,c as s,aC as p,u as c}from"./index-be67c1b4.js";const v=u({__name:"preview-goods-price",props:{value:{type:Object,default:{}}},setup(i,{expose:a}){const e=i;r(),l(()=>e.value);const n=l(()=>{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/price.ttf")&&(t+="font-family: poster_price_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 a({}),(t,o)=>(f(),s("div",{class:"overflow-hidden",style:p(c(n))},"¥980.00",4))}}),_=Object.freeze(Object.defineProperty({__proto__:null,default:v},Symbol.toStringTag,{value:"Module"}));export{_};
|
|
|