(window.webpackJsonp=window.webpackJsonp||[]).push([[69],{551:function(e,s,n){},717:function(e,s,n){"use strict";n(551)},773:function(e,s,n){"use strict";n.r(s);var t=n(436),i=n(446);t.a.use(i.a);var a={data:function(){return{nums:1,currentPageIndex:0}},mounted:function(){this.init()},beforeDestroy:function(){this.slide.destroy()},methods:{increase:function(){var e=this;this.nums+=1,this.$nextTick((function(){e.slide.refresh()}))},decrease:function(){var e=this;this.nums-=1,this.nums=Math.max(1,this.nums),this.$nextTick((function(){e.slide.refresh()}))},init:function(){var e=this;window.slide=this.slide=new t.a(this.$refs.slide,{scrollX:!0,scrollY:!1,slide:{autoplay:!1,loop:!0},momentum:!1,bounce:!1,probeType:3}),this.slide.on("scrollEnd",this._onScrollEnd),this.slide.on("slideWillChange",(function(s){console.log("【slideWillChange】CurrentPage =>",s),e.currentPageIndex=s.pageX})),this.slide.on("slidePageChanged",(function(e){console.log("【slidePageChanged】CurrentPage =>",e)}))},_onScrollEnd:function(){console.log("【scrollEnd】CurrentPage =>",this.slide.getCurrentPage())}}},l=(n(717),n(41)),r=Object(l.a)(a,(function(){var e=this,s=e._self._c;return s("div",{staticClass:"dynamic-slide-banner"},[s("div",{staticClass:"banner-wrapper"},[s("div",{ref:"slide",staticClass:"slide-banner-wrapper"},[s("div",{staticClass:"slide-banner-content"},e._l(e.nums,(function(n){return s("div",{key:n,staticClass:"slide-page",class:"page"+n},[e._v("page "+e._s(n))])})),0)]),e._v(" "),s("div",{staticClass:"dots-wrapper"},e._l(e.nums,(function(n){return s("span",{key:n,staticClass:"dot",class:{active:e.currentPageIndex===n-1}})})),0)]),e._v(" "),s("div",{staticClass:"btn-wrap"},[s("button",{staticClass:"increase",on:{click:e.increase}},[e._v("increase")]),e._v(" "),s("button",{staticClass:"decrease",on:{click:e.decrease}},[e._v("decrease")])])])}),[],!1,null,null,null);s.default=r.exports}}]);