import{H as g,s as y}from"./element-plus-z3MwpXC9.js";import{e as b}from"./index-Ck4tC1F8.js";import{d as x,o as n,c as _,V as c,M as r,a as h,T as w,L as i,aE as v,Q as C,u as k}from"./@vue-TMcuEboY.js";const B={class:"pages-setting"},E={class:"title flex items-center before:w-[3px] before:h-[14px] before:block before:bg-primary before:mr-2 text-xl font-medium"},U=x({__name:"attr-setting",props:{widget:{type:Object,default:()=>({})},type:{type:String,default:"mobile"}},emits:["update:content"],setup(e,{emit:d}){const m=d,p=o=>{m("update:content",o)};return(o,S)=>{const f=g,u=y;return n(),_("div",B,[c(f,{shadow:"never",class:"!border-none flex"},{default:r(()=>{var t;return[h("div",E,w((t=e.widget)==null?void 0:t.title),1)]}),_:1}),c(u,{class:"w-full",style:{height:"calc(100% - 60px)"}},{default:r(()=>{var t,a,s,l;return[(n(),i(v,null,[(n(),i(C((a=k(b)[(t=e.widget)==null?void 0:t.name])==null?void 0:a.attr),{content:(s=e.widget)==null?void 0:s.content,styles:(l=e.widget)==null?void 0:l.styles,type:e.type,"onUpdate:content":p},null,40,["content","styles","type"]))],1024))]}),_:1})])}}});export{U as _};
