property-81c16a49.js 5.9 KB

1
  1. import{_ as A,__tla as F}from"./ComponentContainerProperty-837466f4.js";import{d as H,r as w,L,o as m,c as n,f as t,w as l,a as e,F as C,q as T,n as v,t as c,ar as P,P as B,O as G,j as M,C as Q,A as $,dj as J,bh as K,ai as N,dc as Y,D as Z,_ as tt,__tla as at}from"./index-11e4820e.js";import{_ as lt,__tla as et}from"./index-e8085014.js";import{_ as rt,__tla as ot}from"./UploadImg-a1807be8.js";import{E as _t,__tla as ut}from"./el-card-919c14be.js";import{E as mt,__tla as nt}from"./el-text-ff6dcf4e.js";import{u as st,__tla as ct}from"./util-2aa5381f.js";import{e as pt}from"./constants-40f13f5e.js";import dt,{__tla as it}from"./CouponSelect-e6060691.js";import"./color-6e929987.js";import{__tla as ft}from"./index-4203485c.js";import{__tla as yt}from"./el-image-viewer-c4f5814f.js";import{__tla as ht}from"./useMessage-06ddf735.js";import{__tla as bt}from"./Dialog-bbfaf85c.js";import{__tla as Vt}from"./Qrcode-af459bd3.js";import{__tla as xt}from"./IFrame-ff1fc2dd.js";import{__tla as gt}from"./vuedraggable.umd-0d041ae3.js";import{__tla as wt}from"./el-collapse-item-1259fd66.js";import{__tla as Ct}from"./index-c8f58bd0.js";import{__tla as vt}from"./index-dd73c59d.js";import{__tla as Pt}from"./DictTag-e41ec8de.js";import{__tla as Ut}from"./dict-4072dcec.js";import{__tla as kt}from"./ContentWrap-694014d4.js";import{__tla as Dt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-11f85821.js";import{__tla as It}from"./formatter-fbdaad3b.js";import{__tla as jt}from"./formatTime-f6a2c881.js";import{__tla as Et}from"./couponTemplate-f29d1e92.js";let U,zt=Promise.all([(()=>{try{return F}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return ht}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return Vt}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return gt}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return vt}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return Ut}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return Dt}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return Et}catch{}})()]).then(async()=>{let f,y,h;f={key:0},y={key:1},h={key:2},U=tt(H({name:"CouponCardProperty",__name:"property",props:{modelValue:{type:Object,required:!0}},emits:["update:modelValue"],setup(k,{emit:D}){const I=k,j=D,{formData:r}=st(I.modelValue,j),u=w([]),b=w(),E=()=>{b.value.open()};return L(()=>u.value,()=>{r.value.couponIds=u.value.map(V=>V.id)}),(V,o)=>{const x=mt,s=M,z=Q,_=$,g=_t,p=J,d=K,q=N,O=rt,i=lt,R=Y,S=Z,W=A;return m(),n(C,null,[t(W,{modelValue:e(r).style,"onUpdate:modelValue":o[6]||(o[6]=a=>e(r).style=a)},{default:l(()=>[t(S,{"label-width":"80px",model:e(r)},{default:l(()=>[t(g,{header:"\u4F18\u60E0\u5238\u5217\u8868",class:"property-group",shadow:"never"},{default:l(()=>[(m(!0),n(C,null,T(e(u),(a,X)=>(m(),n("div",{key:X,class:"flex items-center justify-between"},[t(x,{size:"large",truncated:""},{default:l(()=>[v(c(a.name),1)]),_:2},1024),t(x,{type:"info",truncated:""},{default:l(()=>[a.usePrice>0?(m(),n("span",f,"\u6EE1"+c(e(P)(a.usePrice))+"\u5143\uFF0C",1)):B("",!0),a.discountType===e(pt).PRICE.type?(m(),n("span",y," \u51CF"+c(e(P)(a.discountPrice))+"\u5143 ",1)):(m(),n("span",h," \u6253"+c(a.discountPercent)+"\u6298 ",1))]),_:2},1024)]))),128)),t(_,{"label-width":"0"},{default:l(()=>[t(z,{onClick:E,type:"primary",plain:"",class:"m-t-8px w-full"},{default:l(()=>[t(s,{icon:"ep:plus",class:"mr-5px"}),v(" \u6DFB\u52A0 ")]),_:1})]),_:1})]),_:1}),t(g,{header:"\u4F18\u60E0\u5238\u6837\u5F0F",class:"property-group",shadow:"never"},{default:l(()=>[t(_,{label:"\u5217\u6570",prop:"type"},{default:l(()=>[t(q,{modelValue:e(r).columns,"onUpdate:modelValue":o[0]||(o[0]=a=>e(r).columns=a)},{default:l(()=>[t(d,{class:"item",content:"\u4E00\u5217",placement:"bottom"},{default:l(()=>[t(p,{label:1},{default:l(()=>[t(s,{icon:"fluent:text-column-one-24-filled"})]),_:1})]),_:1}),t(d,{class:"item",content:"\u4E8C\u5217",placement:"bottom"},{default:l(()=>[t(p,{label:2},{default:l(()=>[t(s,{icon:"fluent:text-column-two-24-filled"})]),_:1})]),_:1}),t(d,{class:"item",content:"\u4E09\u5217",placement:"bottom"},{default:l(()=>[t(p,{label:3},{default:l(()=>[t(s,{icon:"fluent:text-column-three-24-filled"})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(_,{label:"\u80CC\u666F\u56FE\u7247",prop:"bgImg"},{default:l(()=>[t(O,{modelValue:e(r).bgImg,"onUpdate:modelValue":o[1]||(o[1]=a=>e(r).bgImg=a),height:"80px",width:"100%",class:"min-w-160px"},null,8,["modelValue"])]),_:1}),t(_,{label:"\u6587\u5B57\u989C\u8272",prop:"textColor"},{default:l(()=>[t(i,{modelValue:e(r).textColor,"onUpdate:modelValue":o[2]||(o[2]=a=>e(r).textColor=a)},null,8,["modelValue"])]),_:1}),t(_,{label:"\u6309\u94AE\u80CC\u666F",prop:"button.bgColor"},{default:l(()=>[t(i,{modelValue:e(r).button.bgColor,"onUpdate:modelValue":o[3]||(o[3]=a=>e(r).button.bgColor=a)},null,8,["modelValue"])]),_:1}),t(_,{label:"\u6309\u94AE\u6587\u5B57",prop:"button.color"},{default:l(()=>[t(i,{modelValue:e(r).button.color,"onUpdate:modelValue":o[4]||(o[4]=a=>e(r).button.color=a)},null,8,["modelValue"])]),_:1}),t(_,{label:"\u95F4\u9694",prop:"space"},{default:l(()=>[t(R,{modelValue:e(r).space,"onUpdate:modelValue":o[5]||(o[5]=a=>e(r).space=a),max:100,min:0,"show-input":"","input-size":"small","show-input-controls":!1},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),t(dt,{ref_key:"couponSelectDialog",ref:b,"multiple-selection":e(u),"onUpdate:multipleSelection":o[7]||(o[7]=a=>G(u)?u.value=a:null)},null,8,["multiple-selection"])],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/components/DiyEditor/components/mobile/CouponCard/property.vue"]])});export{zt as __tla,U as default};