(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-many-goods-list"],{"29cc":function(t,e,o){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={name:"diy-many-goods-list",props:{value:{type:Object,default:function(){return{}}},scrollTop:{type:[Number,String]},global:{type:Object,default:function(){return{}}}},data:function(){return{cateIndex:0,goodsValue:null,manyInfo:{bodyHeight:0,bodyTop:0,height:0,top:0}}},created:function(){this.changeCateIndex(this.value.list[0],0,!0)},watch:{componentRefresh:function(t){this.changeCateIndex(this.value.list[0],0,!0)},scrollTop:function(e){var o=this,n=t.createSelectorQuery().in(this);n.select(".many-goods-list").boundingClientRect((function(t){t&&(o.manyInfo.top=t.top)})).exec(),n.select(".many-goods-list .many-goods-list-body").boundingClientRect((function(t){t&&(o.manyInfo.bodyHeight=t.height||0,o.manyInfo.bodyTop=t.top||0)})).exec()}},computed:{fixedTop:function(){var t=JSON.parse(JSON.stringify(this.$store.state.diyGroupPositionObj)),e=0,o=0;if(delete t.diyManyGoodsList,t){var n=Object.values(t);n.forEach((function(t,o){e+=t.originalVal}))}return this.manyInfo.top<e&&this.manyInfo.bodyTop+this.manyInfo.bodyHeight>e+Number.parseFloat(this.manyInfo.height)&&(o=e),o},manyWrapCss:function(){var t="";return t+="position: ".concat(this.fixedTop?"fixed":"initial",";"),t+="top: ".concat(this.fixedTop,"px;"),this.global.topNavBg?t+="background-color: ".concat(this.fixedTop?this.global.topNavColor:"transparent",";"):t+="background-color: #fff;",t}},mounted:function(){var e=this,o=t.createSelectorQuery().in(this);o.select(".many-goods-list .many-goods-list-head").boundingClientRect((function(t){if(t){e.manyInfo.height=(t.height||0)+"px";var o={originalVal:t.height||0};e.$store.commit("setDiyGroupPositionObj",{diyManyGoodsList:o})}})).exec()},methods:{changeCateIndex:function(t,e,o){this.cateIndex=e,this.goodsValue={sources:t.sources,categoryId:t.categoryId,categoryName:t.categoryName,goodsId:t.goodsId,componentBgColor:this.value.componentBgColor,componentAngle:this.value.componentAngle,topAroundRadius:this.value.topAroundRadius,bottomAroundRadius:this.value.bottomAroundRadius,elementBgColor:this.value.elementBgColor,elementAngle:this.value.elementAngle,topElementAroundRadius:this.value.topElementAroundRadius,bottomElementAroundRadius:this.value.bottomElementAroundRadius,count:this.value.count,nameLineMode:this.value.nameLineMode,template:this.value.template,style:this.value.style,ornament:this.value.ornament,sortWay:this.value.sortWay,saleStyle:this.value.saleStyle,tag:this.value.tag,btnStyle:this.value.btnStyle,goodsNameStyle:this.value.goodsNameStyle,theme:this.value.theme,priceStyle:this.value.priceStyle,slideMode:this.value.slideMode,imgAroundRadius:this.value.imgAroundRadius,margin:this.value.margin,goodsMarginType:this.value.goodsMarginType,goodsMarginNum:this.value.goodsMarginNum},o||(this.$refs.diyGoodsList.goodsValue=this.goodsValue,this.$refs.diyGoodsList.getGoodsList())}}};e.default=o}).call(this,o("df3c")["default"])},5877:function(t,e,o){"use strict";var n=o("59d6"),i=o.n(n);i.a},"59d6":function(t,e,o){},8573:function(t,e,o){"use strict";o.r(e);var n=o("be4a"),i=o("a7e7");for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);o("5877");var s=o("828b"),u=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"5906d9b0",null,!1,n["a"],void 0);e["default"]=u.exports},a7e7:function(t,e,o){"use strict";o.r(e);var n=o("29cc"),i=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},be4a:function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){return n}));var n={diyGoodsList:function(){return o.e("components/diy-components/diy-goods-list").then(o.bind(null,"5f0c3"))}},i=function(){var t=this.$createElement;this._self._c},a=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/diy-components/diy-many-goods-list-create-component',
    {
        'components/diy-components/diy-many-goods-list-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("8573"))
        })
    },
    [['components/diy-components/diy-many-goods-list-create-component']]
]);
