suspensionButton.fdba4937.js 895 B

1
  1. import{d as i,s as a,p as l,e as n,f as s,t as r,n as f,u as g,_ as p}from"./index.0308b213.js";const u={key:0},_=["src"],d=i({props:{config:null},setup(e){const t=e,c=a(()=>{let o={};return o.height=`${t.config.height}px`,o.width=`${t.config.width}px`,o.lineHeight=`${t.config.height}px`,o.left=`${t.config.left}px`,o.top=`${t.config.top}px`,t.config.image_type==2?(o.backgroundColor==="transparent"&&(o.backgroundColor="#f00"),o.backgroundColor=t.config.color,o.color=t.config.font_color,o.fontSize=`${t.config.font_size}px`):o.backgroundColor="transparent",o});return l(()=>t.config,o=>{console.log("config.value",o)},{immediate:!0}),(o,h)=>(n(),s("div",{class:"suspension_button",style:f(g(c))},[e.config.image_type==2?(n(),s("text",u,r(e.config.text),1)):(n(),s("img",{key:1,src:e.config.image,alt:""},null,8,_))],4))}});const x=p(d,[["__scopeId","data-v-6d899475"]]);export{x as default};