index-deaf93a5.js 5.6 KB

12345
  1. <<<<<<<< HEAD:dist/assets/index-deaf93a5.js
  2. import{d as L,r as a,L as b,l as B,o as l,v as P,w as j,g as m,au as s,a as o,c as i,F as q,q as C,f as g,P as x,Z as D,t as R,bo as E,_ as I,__tla as U}from"./index-d75b4e4d.js";import{E as F,__tla as G}from"./el-image-c9652061.js";import{__tla as O}from"./el-image-viewer-b9e519ff.js";import{e as S,__tla as W}from"./spu-03655398.js";let $,Z=Promise.all([(()=>{try{return U}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return W}catch{}})()]).then(async()=>{let v,_;v={key:0,class:"absolute left-0 top-0 z-1 items-center justify-center"},_=L({name:"ProductList",__name:"index",props:{property:{type:Object,required:!0}},setup(T){const t=T,p=a([]);b(()=>t.property.spuIds,async()=>{p.value=await S(t.property.spuIds)},{immediate:!0,deep:!0});const u=a(375),h=a(),r=a(2),c=a("100%"),d=a("0"),n=a("");return b(()=>[t.property,u,p.value.length],()=>{r.value=t.property.layoutType==="twoCol"?2:3;const e=(u.value-t.property.space*(r.value-1))/r.value;d.value=r.value===2?"64px":`${e}px`,t.property.layoutType==="horizSwiper"?(n.value=`repeat(auto-fill, ${e}px)`,c.value=e*p.value.length+t.property.space*(p.value.length-1)+"px"):(n.value=`repeat(${r.value}, auto)`,c.value="100%")},{immediate:!0,deep:!0}),B(()=>{var e,y;u.value=((y=(e=h.value)==null?void 0:e.wrapRef)==null?void 0:y.offsetWidth)||375}),(e,y)=>{const w=F,k=E;return l(),P(k,{class:"z-1 min-h-30px","wrap-class":"w-full",ref_key:"containerRef",ref:h},{default:j(()=>[m("div",{class:"grid overflow-x-auto",style:s({gridGap:`${e.property.space}px`,gridTemplateColumns:o(n),width:o(c)})},[(l(!0),i(q,null,C(o(p),(f,z)=>(l(),i("div",{class:"relative box-content flex flex-row flex-wrap overflow-hidden bg-white",style:s({borderTopLeftRadius:`${e.property.borderRadiusTop}px`,borderTopRightRadius:`${e.property.borderRadiusTop}px`,borderBottomLeftRadius:`${e.property.borderRadiusBottom}px`,borderBottomRightRadius:`${e.property.borderRadiusBottom}px`}),key:z},[e.property.badge.show?(l(),i("div",v,[g(w,{fit:"cover",src:e.property.badge.imgUrl,class:"h-26px w-38px"},null,8,["src"])])):x("",!0),g(w,{fit:"cover",src:f.picUrl,style:s({width:o(d),height:o(d)})},null,8,["src","style"]),m("div",{class:D(["flex flex-col gap-8px p-8px box-border",{"w-[calc(100%-64px)]":o(r)===2,"w-full":o(r)===3}])},[e.property.fields.name.show?(l(),i("div",{key:0,class:"truncate text-12px",style:s({color:e.property.fields.name.color})},R(f.name),5)):x("",!0),m("div",null,[e.property.fields.price.show?(l(),i("span",{key:0,class:"text-12px",style:s({color:e.property.fields.price.color})}," \uFFE5"+R(f.price),5)):x("",!0)])],2)],4))),128))],4)]),_:1},512)}}}),$=I(_,[["__file","D:/zx/mall-newfeifan-zx-admin/src/components/DiyEditor/components/mobile/ProductList/index.vue"]])});export{Z as __tla,$ as default};
  3. ========
  4. import{d as L,r as a,L as b,l as B,o as l,v as P,w as j,g as m,au as s,a as o,c as i,F as q,q as C,f as g,P as x,Z as D,t as R,bo as E,_ as I,__tla as U}from"./index-c9fff140.js";import{E as F,__tla as G}from"./el-image-7432aa55.js";import{__tla as O}from"./el-image-viewer-0aee2692.js";import{e as S,__tla as W}from"./spu-f9e35797.js";let $,Z=Promise.all([(()=>{try{return U}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return W}catch{}})()]).then(async()=>{let v,_;v={key:0,class:"absolute left-0 top-0 z-1 items-center justify-center"},_=L({name:"ProductList",__name:"index",props:{property:{type:Object,required:!0}},setup(T){const t=T,p=a([]);b(()=>t.property.spuIds,async()=>{p.value=await S(t.property.spuIds)},{immediate:!0,deep:!0});const u=a(375),h=a(),r=a(2),c=a("100%"),d=a("0"),n=a("");return b(()=>[t.property,u,p.value.length],()=>{r.value=t.property.layoutType==="twoCol"?2:3;const e=(u.value-t.property.space*(r.value-1))/r.value;d.value=r.value===2?"64px":`${e}px`,t.property.layoutType==="horizSwiper"?(n.value=`repeat(auto-fill, ${e}px)`,c.value=e*p.value.length+t.property.space*(p.value.length-1)+"px"):(n.value=`repeat(${r.value}, auto)`,c.value="100%")},{immediate:!0,deep:!0}),B(()=>{var e,y;u.value=((y=(e=h.value)==null?void 0:e.wrapRef)==null?void 0:y.offsetWidth)||375}),(e,y)=>{const w=F,k=E;return l(),P(k,{class:"z-1 min-h-30px","wrap-class":"w-full",ref_key:"containerRef",ref:h},{default:j(()=>[m("div",{class:"grid overflow-x-auto",style:s({gridGap:`${e.property.space}px`,gridTemplateColumns:o(n),width:o(c)})},[(l(!0),i(q,null,C(o(p),(f,z)=>(l(),i("div",{class:"relative box-content flex flex-row flex-wrap overflow-hidden bg-white",style:s({borderTopLeftRadius:`${e.property.borderRadiusTop}px`,borderTopRightRadius:`${e.property.borderRadiusTop}px`,borderBottomLeftRadius:`${e.property.borderRadiusBottom}px`,borderBottomRightRadius:`${e.property.borderRadiusBottom}px`}),key:z},[e.property.badge.show?(l(),i("div",v,[g(w,{fit:"cover",src:e.property.badge.imgUrl,class:"h-26px w-38px"},null,8,["src"])])):x("",!0),g(w,{fit:"cover",src:f.picUrl,style:s({width:o(d),height:o(d)})},null,8,["src","style"]),m("div",{class:D(["flex flex-col gap-8px p-8px box-border",{"w-[calc(100%-64px)]":o(r)===2,"w-full":o(r)===3}])},[e.property.fields.name.show?(l(),i("div",{key:0,class:"truncate text-12px",style:s({color:e.property.fields.name.color})},R(f.name),5)):x("",!0),m("div",null,[e.property.fields.price.show?(l(),i("span",{key:0,class:"text-12px",style:s({color:e.property.fields.price.color})}," \uFFE5"+R(f.price),5)):x("",!0)])],2)],4))),128))],4)]),_:1},512)}}}),$=I(_,[["__file","D:/zx/mall-newfeifan-zx-admin/src/components/DiyEditor/components/mobile/ProductList/index.vue"]])});export{Z as __tla,$ as default};
  5. >>>>>>>> 2589804fb89eb98fd6498c1ee41a354dcce32af3:dist/assets/index-00fe1066.js