import{c as a,e as t,f as s,w as l,g as e,v as d,A as i,j as c,z as o,x as r,h as n,F as _,i as u,t as y,p as g,B as p}from"./index-DVkgSHpn.js";import{_ as m}from"./el-layout._U-vZTft.js";const f=m({__name:"mall-archives",props:{data:{type:Object,default:function(){return{}}}},setup(m){const f=m,h=a((()=>1===f.data.list_style?"center":"aspectFill")),k=a((()=>3===f.data.list_style||!(!f.data.is_title&&!f.data.is_price&&!f.data.is_button)));return(a,f)=>{const x=g,v=p;return t(),s(x,{class:o(["goods",{"lucency-goods":4==m.data.list_style&&5==m.data.card_style}]),style:r({backgroundColor:m.data.background_color,padding:m.data.margin+"px 0","border-radius":5==m.data.card_style?m.data.layout_radius+"px":0})},{default:l((()=>[5==m.data.card_style?(t(),s(x,{key:0,class:"lucency-title"},{default:l((()=>[e(x,null,{default:l((()=>[d(i(m.data.title||"标题"),1)])),_:1}),e(x,null,{default:l((()=>[d(i(m.data.ctitle||"更多 >"),1)])),_:1})])),_:1})):c("",!0),e(x,{class:o(["goods-layout",{larger:1==m.data.list_style,small:2==m.data.list_style,list:3==m.data.list_style,swipe:4==m.data.list_style}]),style:r({paddingLeft:m.data.padding+"px",paddingRight:m.data.padding+"px",marginLeft:-m.data.spacing/2+"px",marginRight:-m.data.spacing/2+"px"})},{default:l((()=>[(t(!0),n(_,null,u(m.data.list,((a,n)=>(t(),s(x,{class:o(["goods-wrapper",{white:1==m.data.card_style,card:2==m.data.card_style,stroke:3==m.data.card_style,lucency:4==m.data.card_style,chamfer:m.data.chamfer_style}]),key:n},{default:l((()=>["标题名称"!=a.name?(t(),s(x,{key:0,class:"goods-item",style:r({margin:m.data.spacing/2+"px"}),onClick:t=>{return s=a.link,void y(s.path);var s}},{default:l((()=>[e(x,{class:"goods-item-photo"},{default:l((()=>[e(x,{class:"goods-item-image"},{default:l((()=>[e(x,{class:"goods-item-cover"},{default:l((()=>[e(v,{"lazy-load":"",style:{width:"100%",height:"100%"},src:a.image,mode:h.value},null,8,["src","mode"])])),_:2},1024)])),_:2},1024)])),_:2},1024),k.value?(t(),s(x,{key:0,class:"goods-item-detail"},{default:l((()=>[m.data.is_title?(t(),s(x,{key:0,class:"goods-item-title"},{default:l((()=>[d(i(a.name),1)])),_:2},1024)):c("",!0)])),_:2},1024)):c("",!0)])),_:2},1032,["style","onClick"])):c("",!0)])),_:2},1032,["class"])))),128)),e(x,{class:"clear"})])),_:1},8,["style","class"])])),_:1},8,["class","style"])}}},[["__scopeId","data-v-03f88cc6"]]);export{f as _};
//# sourceMappingURL=mall-archives.Cslt4H0d.js.map
