1 |
- import{d as U,o as u,q as i,w as e,aC as _,O as z,f as l,a as o,m as s,at as $,V as P,ag as j,ah as q,z as D,d3 as E,d_ as O,C as W,W as A,__tla as F}from"./index-2eab2d23.js";import{E as G,__tla as H}from"./el-card-c558f0ec.js";import{_ as J,__tla as K}from"./UploadImg-90fe71c2.js";import{_ as M,__tla as N}from"./index-30d48444.js";import{u as Q,__tla as S}from"./util-8a54c07a.js";import{_ as X}from"./_plugin-vue_export-helper-1b428a4d.js";let f,Y=Promise.all([(()=>{try{return F}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return N}catch{}})(),(()=>{try{return S}catch{}})()]).then(async()=>{f=X(U({name:"ComponentContainer",__name:"ComponentContainerProperty",props:{modelValue:{}},emits:["update:modelValue"],setup(c,{emit:v}){const h=c,R=v,{formData:a}=Q(h.modelValue,R),y=[{label:"\u5916\u90E8\u8FB9\u8DDD",prop:"margin",children:[{label:"\u4E0A",prop:"marginTop"},{label:"\u53F3",prop:"marginRight"},{label:"\u4E0B",prop:"marginBottom"},{label:"\u5DE6",prop:"marginLeft"}]},{label:"\u5185\u90E8\u8FB9\u8DDD",prop:"padding",children:[{label:"\u4E0A",prop:"paddingTop"},{label:"\u53F3",prop:"paddingRight"},{label:"\u4E0B",prop:"paddingBottom"},{label:"\u5DE6",prop:"paddingLeft"}]},{label:"\u8FB9\u6846\u5706\u89D2",prop:"borderRadius",children:[{label:"\u4E0A\u5DE6",prop:"borderTopLeftRadius"},{label:"\u4E0A\u53F3",prop:"borderTopRightRadius"},{label:"\u4E0B\u53F3",prop:"borderBottomRightRadius"},{label:"\u4E0B\u5DE6",prop:"borderBottomLeftRadius"}]}];return(n,r)=>{const m=P,b=j,T=q,p=D,V=M,x=J,C=E,w=O,B=W,L=G,k=A;return u(),i(k,{stretch:""},{default:e(()=>[n.$slots.default?(u(),i(m,{key:0,label:"\u5185\u5BB9"},{default:e(()=>[_(n.$slots,"default",{},void 0,!0)]),_:3})):z("",!0),l(m,{label:"\u6837\u5F0F",lazy:""},{default:e(()=>[l(L,{header:"\u7EC4\u4EF6\u6837\u5F0F",class:"property-group"},{default:e(()=>[l(B,{model:o(a),"label-width":"80px"},{default:e(()=>[l(p,{label:"\u7EC4\u4EF6\u80CC\u666F",prop:"bgType"},{default:e(()=>[l(T,{modelValue:o(a).bgType,"onUpdate:modelValue":r[0]||(r[0]=t=>o(a).bgType=t)},{default:e(()=>[l(b,{label:"color"},{default:e(()=>[s("\u7EAF\u8272")]),_:1}),l(b,{label:"img"},{default:e(()=>[s("\u56FE\u7247")]),_:1})]),_:1},8,["modelValue"])]),_:1}),o(a).bgType==="color"?(u(),i(p,{key:0,label:"\u9009\u62E9\u989C\u8272",prop:"bgColor"},{default:e(()=>[l(V,{modelValue:o(a).bgColor,"onUpdate:modelValue":r[1]||(r[1]=t=>o(a).bgColor=t)},null,8,["modelValue"])]),_:1})):(u(),i(p,{key:1,label:"\u4E0A\u4F20\u56FE\u7247",prop:"bgImg"},{default:e(()=>[l(x,{modelValue:o(a).bgImg,"onUpdate:modelValue":r[2]||(r[2]=t=>o(a).bgImg=t),limit:1},{tip:e(()=>[s("\u5EFA\u8BAE\u5BBD\u5EA6 750px")]),_:1},8,["modelValue"])]),_:1})),l(w,{data:y,"expand-on-click-node":!1,"default-expand-all":""},{default:e(({node:t,data:d})=>[l(p,{label:d.label,prop:d.prop,"label-width":t.level===1?"80px":"62px",class:"w-full m-b-0!"},{default:e(()=>[l(C,{modelValue:o(a)[d.prop],"onUpdate:modelValue":g=>o(a)[d.prop]=g,max:100,min:0,"show-input":"","input-size":"small","show-input-controls":!1,onInput:g=>(I=>{switch(I){case"margin":a.value.marginTop=a.value.margin,a.value.marginRight=a.value.margin,a.value.marginBottom=a.value.margin,a.value.marginLeft=a.value.margin;break;case"padding":a.value.paddingTop=a.value.padding,a.value.paddingRight=a.value.padding,a.value.paddingBottom=a.value.padding,a.value.paddingLeft=a.value.padding;break;case"borderRadius":a.value.borderTopLeftRadius=a.value.borderRadius,a.value.borderTopRightRadius=a.value.borderRadius,a.value.borderBottomRightRadius=a.value.borderRadius,a.value.borderBottomLeftRadius=a.value.borderRadius}})(d.prop)},null,8,["modelValue","onUpdate:modelValue","onInput"])]),_:2},1032,["label","prop","label-width"])]),_:1}),_(n.$slots,"style",{style:$(o(a))},void 0,!0)]),_:3},8,["model"])]),_:3})]),_:3})]),_:3})}}}),[["__scopeId","data-v-b4f5a6ea"]])});export{f as _,Y as __tla};
|