import{G as p,H as y,D as E,C as g,I as x,F as C}from"./element-plus.9cae3cb1.js";import{_ as A}from"./index.vue_vue_type_script_setup_true_lang.82f57aae.js";import{_ as B}from"./picker.b9386bc9.js";import{d as k,o as d,L as m,M as t,V as l,S as i,R as c,a as f}from"./@vue.96c135a1.js";const U=f("div",{class:"form-tips"},"\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8\uFF1A300px*40px",-1),w=f("div",{class:"form-tips"},"\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8\uFF1A750px*\u9AD8\u5EA6\u4E0D\u9650",-1),R=k({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(e){return(D,o)=>{const a=p,r=y,n=E,_=g,s=B,V=A,F=x,b=C;return d(),m(b,{ref:"form","label-width":"80px",size:"large"},{default:t(()=>[l(F,{shadow:"never",class:"!border-none flex mt-2"},{default:t(()=>[l(n,{label:"\u9875\u9762\u6807\u9898"},{default:t(()=>[l(r,{modelValue:e.content.title_type,"onUpdate:modelValue":o[0]||(o[0]=u=>e.content.title_type=u)},{default:t(()=>[l(a,{label:"1"},{default:t(()=>[i("\u6587\u5B57")]),_:1}),l(a,{label:"2"},{default:t(()=>[i("\u56FE\u7247")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.content.title_type==1?(d(),m(n,{key:0},{default:t(()=>[l(_,{modelValue:e.content.title,"onUpdate:modelValue":o[1]||(o[1]=u=>e.content.title=u),maxlength:"8","show-word-limit":"",class:"w-[300px]",placeholder:"\u8BF7\u8F93\u5165\u9875\u9762\u6807\u9898"},null,8,["modelValue"])]),_:1})):c("",!0),e.content.title_type==2?(d(),m(n,{key:1},{default:t(()=>[l(s,{modelValue:e.content.title_img,"onUpdate:modelValue":o[2]||(o[2]=u=>e.content.title_img=u),limit:1,size:"100px"},null,8,["modelValue"]),U]),_:1})):c("",!0),e.content.title_type==1?(d(),m(n,{key:2,label:"\u6587\u5B57\u989C\u8272"},{default:t(()=>[l(r,{modelValue:e.content.text_color,"onUpdate:modelValue":o[3]||(o[3]=u=>e.content.text_color=u)},{default:t(()=>[l(a,{label:"1"},{default:t(()=>[i("\u767D\u8272")]),_:1}),l(a,{label:"2"},{default:t(()=>[i("\u9ED1\u8272")]),_:1})]),_:1},8,["modelValue"])]),_:1})):c("",!0),l(n,{label:"\u9875\u9762\u80CC\u666F"},{default:t(()=>[l(r,{modelValue:e.content.bg_type,"onUpdate:modelValue":o[4]||(o[4]=u=>e.content.bg_type=u)},{default:t(()=>[l(a,{label:"1"},{default:t(()=>[i("\u80CC\u666F\u989C\u8272")]),_:1}),l(a,{label:"2"},{default:t(()=>[i("\u80CC\u666F\u56FE\u7247")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.content.bg_type==1?(d(),m(n,{key:3},{default:t(()=>[l(V,{modelValue:e.content.bg_color,"onUpdate:modelValue":o[5]||(o[5]=u=>e.content.bg_color=u),"reset-color":"#F5F5F5"},null,8,["modelValue"])]),_:1})):c("",!0),e.content.bg_type==2?(d(),m(n,{key:4},{default:t(()=>[l(s,{modelValue:e.content.bg_image,"onUpdate:modelValue":o[6]||(o[6]=u=>e.content.bg_image=u),limit:1,size:"100px"},null,8,["modelValue"]),w]),_:1})):c("",!0)]),_:1})]),_:1},512)}}});export{R as _};
