@ -2,13 +2,14 @@ import bus from "@/utils/bus";
@@ -2,13 +2,14 @@ import bus from "@/utils/bus";
importUtilsfrom'@/utils'
import{SlideType}from"@/utils/const_var";
importGMfrom"@/utils";
import{sum}from"lodash-es";
exportfunctionslideInit(el,state,type){
state.wrapper.width=GM.$getCss(el,'width')
state.wrapper.height=GM.$getCss(el,'height')
state.wrapper.childrenLength=el.children.length
lett=getSlideDistance(state,type)
lett=getSlideDistance(state,type,el)
letdx1=0,dx2=0
if(type===SlideType.HORIZONTAL)dx1=t
elsedx2=t
@ -55,7 +56,7 @@ export function slideTouchMove(e, el, state, judgeValue, canNextCb, nextCb, type
@@ -55,7 +56,7 @@ export function slideTouchMove(e, el, state, judgeValue, canNextCb, nextCb, type