property-124610cd.js 5.5 KB

1
  1. import{_ as I,__tla as A}from"./ComponentContainerProperty-6ef97b3e.js";import{d as D,r as O,k as q,o as u,q as _,w as r,f as e,a,c as F,F as L,n as N,g as w,m as W,O as j,x as K,y as M,z as Q,_ as $,d1 as G,aO as H,ah as J,ac as S,cV as X,cW as Y,C as Z,__tla as ee}from"./index-73e02845.js";import{_ as le,__tla as ae}from"./UploadImg-0588e092.js";import{_ as te,__tla as oe}from"./index-07c17b54.js";import{E as re,__tla as se}from"./el-card-ada74e7d.js";import{u as de,__tla as ue}from"./util-dd51d14c.js";import{a as me,__tla as _e}from"./combinationActivity-0e8622e9.js";import{C as pe}from"./constants-a3c69b57.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ne}from"./index-c6e30cdd.js";import{__tla as ie}from"./el-image-viewer-a6b3dac3.js";import{__tla as ce}from"./useMessage-1490ad82.js";import"./color-6e929987.js";import{__tla as fe}from"./Dialog-1f04d1b7.js";import{__tla as he}from"./Qrcode-6f455c95.js";import{__tla as Ve}from"./el-text-42605a6c.js";import{__tla as ye}from"./IFrame.vue_vue_type_script_setup_true_lang-f13b6e94.js";import{__tla as be}from"./vuedraggable.umd-a9078d65.js";import{__tla as we}from"./el-collapse-item-ef3a5f74.js";let g,ge=Promise.all([(()=>{try{return A}catch{}})(),(()=>{try{return ee}catch{}})(),(()=>{try{return ae}catch{}})(),(()=>{try{return oe}catch{}})(),(()=>{try{return se}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return _e}catch{}})(),(()=>{try{return ne}catch{}})(),(()=>{try{return ie}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return fe}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return we}catch{}})()]).then(async()=>{let p,n;p={class:"flex gap-8px"},n={class:"flex gap-8px"},g=D({name:"PromotionCombinationProperty",__name:"property",props:{modelValue:{}},emits:["update:modelValue"],setup(U,{emit:x}){const v=U,R=x,{formData:t}=de(v.modelValue,R),i=O([]);return q(async()=>{const{list:c}=await me({status:pe.ENABLE});i.value=c}),(c,o)=>{const T=K,z=M,s=Q,d=re,f=$,h=G,V=H,B=J,y=te,b=S,C=X,P=le,m=Y,k=Z,E=I;return u(),_(E,{modelValue:a(t).style,"onUpdate:modelValue":o[11]||(o[11]=l=>a(t).style=l)},{default:r(()=>[e(k,{"label-width":"80px",model:a(t)},{default:r(()=>[e(d,{header:"\u62FC\u56E2\u6D3B\u52A8",class:"property-group",shadow:"never"},{default:r(()=>[e(s,{label:"\u62FC\u56E2\u6D3B\u52A8",prop:"activityId"},{default:r(()=>[e(z,{modelValue:a(t).activityId,"onUpdate:modelValue":o[0]||(o[0]=l=>a(t).activityId=l)},{default:r(()=>[(u(!0),F(L,null,N(a(i),l=>(u(),_(T,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(d,{header:"\u5546\u54C1\u6837\u5F0F",class:"property-group",shadow:"never"},{default:r(()=>[e(s,{label:"\u5E03\u5C40",prop:"type"},{default:r(()=>[e(B,{modelValue:a(t).layoutType,"onUpdate:modelValue":o[1]||(o[1]=l=>a(t).layoutType=l)},{default:r(()=>[e(V,{class:"item",content:"\u5355\u5217",placement:"bottom"},{default:r(()=>[e(h,{label:"oneCol"},{default:r(()=>[e(f,{icon:"fluent:text-column-one-24-filled"})]),_:1})]),_:1}),e(V,{class:"item",content:"\u4E09\u5217",placement:"bottom"},{default:r(()=>[e(h,{label:"threeCol"},{default:r(()=>[e(f,{icon:"fluent:text-column-three-24-filled"})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"\u5546\u54C1\u540D\u79F0",prop:"fields.name.show"},{default:r(()=>[w("div",p,[e(y,{modelValue:a(t).fields.name.color,"onUpdate:modelValue":o[2]||(o[2]=l=>a(t).fields.name.color=l)},null,8,["modelValue"]),e(b,{modelValue:a(t).fields.name.show,"onUpdate:modelValue":o[3]||(o[3]=l=>a(t).fields.name.show=l)},null,8,["modelValue"])])]),_:1}),e(s,{label:"\u5546\u54C1\u4EF7\u683C",prop:"fields.price.show"},{default:r(()=>[w("div",n,[e(y,{modelValue:a(t).fields.price.color,"onUpdate:modelValue":o[4]||(o[4]=l=>a(t).fields.price.color=l)},null,8,["modelValue"]),e(b,{modelValue:a(t).fields.price.show,"onUpdate:modelValue":o[5]||(o[5]=l=>a(t).fields.price.show=l)},null,8,["modelValue"])])]),_:1})]),_:1}),e(d,{header:"\u89D2\u6807",class:"property-group",shadow:"never"},{default:r(()=>[e(s,{label:"\u89D2\u6807",prop:"badge.show"},{default:r(()=>[e(C,{modelValue:a(t).badge.show,"onUpdate:modelValue":o[6]||(o[6]=l=>a(t).badge.show=l)},null,8,["modelValue"])]),_:1}),a(t).badge.show?(u(),_(s,{key:0,label:"\u89D2\u6807",prop:"badge.imgUrl"},{default:r(()=>[e(P,{modelValue:a(t).badge.imgUrl,"onUpdate:modelValue":o[7]||(o[7]=l=>a(t).badge.imgUrl=l),height:"44px",width:"72px"},{tip:r(()=>[W(" \u5EFA\u8BAE\u5C3A\u5BF8\uFF1A36 * 22 ")]),_:1},8,["modelValue"])]),_:1})):j("",!0)]),_:1}),e(d,{header:"\u5546\u54C1\u6837\u5F0F",class:"property-group",shadow:"never"},{default:r(()=>[e(s,{label:"\u4E0A\u5706\u89D2",prop:"borderRadiusTop"},{default:r(()=>[e(m,{modelValue:a(t).borderRadiusTop,"onUpdate:modelValue":o[8]||(o[8]=l=>a(t).borderRadiusTop=l),max:100,min:0,"show-input":"","input-size":"small","show-input-controls":!1},null,8,["modelValue"])]),_:1}),e(s,{label:"\u4E0B\u5706\u89D2",prop:"borderRadiusBottom"},{default:r(()=>[e(m,{modelValue:a(t).borderRadiusBottom,"onUpdate:modelValue":o[9]||(o[9]=l=>a(t).borderRadiusBottom=l),max:100,min:0,"show-input":"","input-size":"small","show-input-controls":!1},null,8,["modelValue"])]),_:1}),e(s,{label:"\u95F4\u9694",prop:"space"},{default:r(()=>[e(m,{modelValue:a(t).space,"onUpdate:modelValue":o[10]||(o[10]=l=>a(t).space=l),max:100,min:0,"show-input":"","input-size":"small","show-input-controls":!1},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}})});export{ge as __tla,g as default};