ThreeItemSwiper.js 814 B

12
  1. "use strict";const e=require("../common/vendor.js"),a={props:{products:{type:Array,default:()=>[]}},data(){return{activeIndex:0,outerMargin:"120rpx"}},computed:{currentCenterIndex(){return this.products.length===0?0:this.activeIndex%this.products.length}},methods:{onSwiperChange(u){this.activeIndex=u.detail.current}}};function o(u,p,d,i,c,r){return{a:e.f(d.products,(t,n,h)=>e.e({a:t.imgUrl,b:n===r.currentCenterIndex},n===r.currentCenterIndex?{c:e.t(t.prizeLevel),d:e.t(t.productName)}:{},{e:n===r.currentCenterIndex?1:"",f:n})),b:c.activeIndex,c:e.o((...t)=>r.onSwiperChange&&r.onSwiperChange(...t)),d:c.outerMargin,e:c.outerMargin}}const s=e._export_sfc(a,[["render",o],["__scopeId","data-v-efdfa05e"]]);wx.createComponent(s);
  2. //# sourceMappingURL=../../.sourcemap/mp-weixin/components/ThreeItemSwiper.js.map