|
|
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-02616982"],{"2bb89":function(t,e,l){},b407:function(t,e,l){"use strict";l.r(e);var f=function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("div",{ref:"container",staticClass:"cl-scroll",on:{wheel:function(e){return e.preventDefault(),t.handleScroll.apply(null,arguments)}}},[l("div",{ref:"wrapper",staticClass:"scroll-wrapper",style:{left:t.left+"px"}},[t._t("default")],2)])},s=[],i=15,n={name:"cl-scroll",data:function(){return{left:0}},methods:{handleScroll:function(t){var e=t.wheelDelta||3*-t.deltaY,l=this.$refs.container,f=l.offsetWidth,s=this.$refs.wrapper,n=s.offsetWidth;e>0?this.left=Math.min(0,this.left+e):f-i<n?this.left<-(n-f+i)?this.left=this.left:this.left=Math.max(this.left+e,f-n-i):this.left=0},moveToTarget:function(t){var e=this.$refs.container,l=e.offsetWidth,f=t.offsetLeft,s=t.offsetWidth;f<-this.left?this.left=-f+i:f+i>-this.left&&f+s<-this.left+l-i||(this.left=-(f-(l-s)+i))}}},r=n,a=(l("f51f"),l("4ac2")),c=Object(a["a"])(r,f,s,!1,null,"2d7c0d59",null);e["default"]=c.exports},f51f:function(t,e,l){"use strict";l("2bb89")}}]);
|