import{I as E,J as C,C as F,B,H as N,D as z}from"./element-plus-z3MwpXC9.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang-Cj_-Ra1I.js";import{_ as R}from"./picker-Cx07Sp9S.js";import{d as j,b as D,o as s,L as r,M as t,V as l,u as a,S as p,R as i,a as g}from"./@vue-TMcuEboY.js";const L=j({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},emits:["update:content"],setup(u,{emit:y}){const b=y,x=u,o=D({get:()=>x.content,set:f=>{b("update:content",f)}});return(f,e)=>{const m=E,_=C,d=F,k=B,V=R,v=I,U=N,w=z;return s(),r(w,{ref:"form","label-width":"80px",size:"large"},{default:t(()=>[l(U,{shadow:"never",class:"!border-none flex mt-2"},{default:t(()=>[l(d,{label:"页面标题"},{default:t(()=>[l(_,{modelValue:a(o).title_type,"onUpdate:modelValue":e[0]||(e[0]=n=>a(o).title_type=n)},{default:t(()=>[l(m,{value:"1"},{default:t(()=>e[7]||(e[7]=[p("文字")])),_:1}),l(m,{value:"2"},{default:t(()=>e[8]||(e[8]=[p("图片")])),_:1})]),_:1},8,["modelValue"])]),_:1}),u.content.title_type==1?(s(),r(d,{key:0},{default:t(()=>[l(k,{modelValue:a(o).title,"onUpdate:modelValue":e[1]||(e[1]=n=>a(o).title=n),maxlength:"8","show-word-limit":"",class:"w-[300px]",placeholder:"请输入页面标题"},null,8,["modelValue"])]),_:1})):i("",!0),u.content.title_type==2?(s(),r(d,{key:1},{default:t(()=>[l(V,{modelValue:a(o).title_img,"onUpdate:modelValue":e[2]||(e[2]=n=>a(o).title_img=n),limit:1,size:"100px"},null,8,["modelValue"]),e[9]||(e[9]=g("div",{class:"form-tips"},"建议图片尺寸：300px*40px",-1))]),_:1})):i("",!0),u.content.title_type==1?(s(),r(d,{key:2,label:"文字颜色"},{default:t(()=>[l(_,{modelValue:a(o).text_color,"onUpdate:modelValue":e[3]||(e[3]=n=>a(o).text_color=n)},{default:t(()=>[l(m,{value:"1"},{default:t(()=>e[10]||(e[10]=[p("白色")])),_:1}),l(m,{value:"2"},{default:t(()=>e[11]||(e[11]=[p("黑色")])),_:1})]),_:1},8,["modelValue"])]),_:1})):i("",!0),l(d,{label:"页面背景"},{default:t(()=>[l(_,{modelValue:a(o).bg_type,"onUpdate:modelValue":e[4]||(e[4]=n=>a(o).bg_type=n)},{default:t(()=>[l(m,{value:"1"},{default:t(()=>e[12]||(e[12]=[p("背景颜色")])),_:1}),l(m,{value:"2"},{default:t(()=>e[13]||(e[13]=[p("背景图片")])),_:1})]),_:1},8,["modelValue"])]),_:1}),u.content.bg_type==1?(s(),r(d,{key:3},{default:t(()=>[l(v,{modelValue:a(o).bg_color,"onUpdate:modelValue":e[5]||(e[5]=n=>a(o).bg_color=n),"reset-color":"#F5F5F5"},null,8,["modelValue"])]),_:1})):i("",!0),u.content.bg_type==2?(s(),r(d,{key:4},{default:t(()=>[l(V,{modelValue:a(o).bg_image,"onUpdate:modelValue":e[6]||(e[6]=n=>a(o).bg_image=n),limit:1,size:"100px"},null,8,["modelValue"]),e[14]||(e[14]=g("div",{class:"form-tips"},"建议图片尺寸：750px*高度不限",-1))]),_:1})):i("",!0)]),_:1})]),_:1},512)}}});export{L as _};
