property-2d955196.js 5.8 KB

1
  1. import{_ as K,__tla as O}from"./ComponentContainerProperty-f3dbbc51.js";import{d as T,r as w,aP as X,o as m,c as s,i as t,w as e,a as l,F as C,k as A,j as v,t as c,dF as U,a2 as M,y as Q,v as W,J as Y,H as Z,av as B,aw as G,ah as L,c0 as N,K as $,_ as tt,__tla as at}from"./index-b2b3c6c4.js";import{_ as et,__tla as lt}from"./index-8c216baa.js";import{_ as rt,__tla as ot}from"./UploadImg-5f639045.js";import{E as _t,__tla as ut}from"./el-card-bd6e27c9.js";import{E as mt,__tla as st}from"./el-text-466bfabe.js";import{u as nt,__tla as ct}from"./util-c8690f25.js";import{e as pt}from"./constants-a1da293a.js";import dt,{__tla as it}from"./CouponSelect-a3aec707.js";import"./color-6e929987.js";import{__tla as ft}from"./index-677601df.js";import{__tla as yt}from"./el-image-viewer-b5664270.js";import{__tla as ht}from"./useMessage-a5edbb0f.js";import{__tla as bt}from"./Dialog-70b24cbf.js";import{__tla as Vt}from"./Qrcode-39102c0a.js";import{__tla as xt}from"./IFrame-e1343bd8.js";import{__tla as gt}from"./vuedraggable.umd-8fcf2deb.js";import{__tla as wt}from"./el-collapse-item-1a294fd0.js";import{__tla as Ct}from"./index-341fc94c.js";import{__tla as vt}from"./index-2d76a87c.js";import{__tla as Ut}from"./DictTag-4199ec8d.js";import{__tla as kt}from"./dict-7f0cc6d2.js";import{__tla as Pt}from"./ContentWrap-e91b2b5a.js";import{__tla as It}from"./formatter-0ba6d97e.js";import{__tla as Dt}from"./formatTime-7e07ce72.js";import{__tla as Et}from"./couponTemplate-a02e24a1.js";let k,St=Promise.all([(()=>{try{return O}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return st}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 Ut}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return Dt}catch{}})(),(()=>{try{return Et}catch{}})()]).then(async()=>{let f,y,h;f={key:0},y={key:1},h={key:2},k=tt(T({name:"CouponCardProperty",__name:"property",props:{modelValue:{type:Object,required:!0}},emits:["update:modelValue"],setup(P,{emit:I}){const D=P,E=I,{formData:r}=nt(D.modelValue,E),u=w([]),b=w(),S=()=>{b.value.open()};return X(()=>u.value,()=>{r.value.couponIds=u.value.map(V=>V.id)}),(V,o)=>{const x=mt,n=W,j=Y,_=Z,g=_t,p=B,d=G,z=L,H=rt,i=et,F=N,R=$,q=K;return m(),s(C,null,[t(q,{modelValue:l(r).style,"onUpdate:modelValue":o[6]||(o[6]=a=>l(r).style=a)},{default:e(()=>[t(R,{"label-width":"80px",model:l(r)},{default:e(()=>[t(g,{header:"\u4F18\u60E0\u5238\u5217\u8868",class:"property-group",shadow:"never"},{default:e(()=>[(m(!0),s(C,null,A(l(u),(a,J)=>(m(),s("div",{key:J,class:"flex items-center justify-between"},[t(x,{size:"large",truncated:""},{default:e(()=>[v(c(a.name),1)]),_:2},1024),t(x,{type:"info",truncated:""},{default:e(()=>[a.usePrice>0?(m(),s("span",f,"\u6EE1"+c(l(U)(a.usePrice))+"\u5143\uFF0C",1)):M("",!0),a.discountType===l(pt).PRICE.type?(m(),s("span",y," \u51CF"+c(l(U)(a.discountPrice))+"\u5143 ",1)):(m(),s("span",h," \u6253"+c(a.discountPercent)+"\u6298 ",1))]),_:2},1024)]))),128)),t(_,{"label-width":"0"},{default:e(()=>[t(j,{onClick:S,type:"primary",plain:"",class:"m-t-8px w-full"},{default:e(()=>[t(n,{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:e(()=>[t(_,{label:"\u5217\u6570",prop:"type"},{default:e(()=>[t(z,{modelValue:l(r).columns,"onUpdate:modelValue":o[0]||(o[0]=a=>l(r).columns=a)},{default:e(()=>[t(d,{class:"item",content:"\u4E00\u5217",placement:"bottom"},{default:e(()=>[t(p,{label:1},{default:e(()=>[t(n,{icon:"fluent:text-column-one-24-filled"})]),_:1})]),_:1}),t(d,{class:"item",content:"\u4E8C\u5217",placement:"bottom"},{default:e(()=>[t(p,{label:2},{default:e(()=>[t(n,{icon:"fluent:text-column-two-24-filled"})]),_:1})]),_:1}),t(d,{class:"item",content:"\u4E09\u5217",placement:"bottom"},{default:e(()=>[t(p,{label:3},{default:e(()=>[t(n,{icon:"fluent:text-column-three-24-filled"})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(_,{label:"\u80CC\u666F\u56FE\u7247",prop:"bgImg"},{default:e(()=>[t(H,{modelValue:l(r).bgImg,"onUpdate:modelValue":o[1]||(o[1]=a=>l(r).bgImg=a),height:"80px",width:"100%",class:"min-w-160px"},null,8,["modelValue"])]),_:1}),t(_,{label:"\u6587\u5B57\u989C\u8272",prop:"textColor"},{default:e(()=>[t(i,{modelValue:l(r).textColor,"onUpdate:modelValue":o[2]||(o[2]=a=>l(r).textColor=a)},null,8,["modelValue"])]),_:1}),t(_,{label:"\u6309\u94AE\u80CC\u666F",prop:"button.bgColor"},{default:e(()=>[t(i,{modelValue:l(r).button.bgColor,"onUpdate:modelValue":o[3]||(o[3]=a=>l(r).button.bgColor=a)},null,8,["modelValue"])]),_:1}),t(_,{label:"\u6309\u94AE\u6587\u5B57",prop:"button.color"},{default:e(()=>[t(i,{modelValue:l(r).button.color,"onUpdate:modelValue":o[4]||(o[4]=a=>l(r).button.color=a)},null,8,["modelValue"])]),_:1}),t(_,{label:"\u95F4\u9694",prop:"space"},{default:e(()=>[t(F,{modelValue:l(r).space,"onUpdate:modelValue":o[5]||(o[5]=a=>l(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":l(u),"onUpdate:multipleSelection":o[7]||(o[7]=a=>Q(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{St as __tla,k as default};