veplayer-mp-wechat
Advanced tools
Comparing version 1.2.2-alpha.13 to 1.2.2-alpha.14
@@ -12,16 +12,4 @@ "use strict"; | ||
'interactState': function (newVal, oldVal) { | ||
let _stateClass = ''; | ||
switch (newVal) { | ||
case "focus" /* InteractStates.FOCUS */: | ||
_stateClass = "xg-state-focus" /* ControlsStateClass.FOCUS */; | ||
break; | ||
case "blur" /* InteractStates.BLUR */: | ||
_stateClass = "xg-state-blur" /* ControlsStateClass.BLUR */; | ||
break; | ||
case "immerse" /* InteractStates.IMMERSE */: | ||
_stateClass = "xg-state-immerse" /* ControlsStateClass.IMMERSE */; | ||
break; | ||
} | ||
this.setData({ | ||
stateClassName: _stateClass | ||
stateClassName: this.getClassByInteractState(newVal) | ||
}); | ||
@@ -38,4 +26,19 @@ } | ||
this.triggerEvent('useraction', _data); | ||
}, | ||
getClassByInteractState(interactState) { | ||
let _stateClass = ''; | ||
switch (interactState) { | ||
case "focus" /* InteractStates.FOCUS */: | ||
_stateClass = "xg-state-focus" /* ControlsStateClass.FOCUS */; | ||
break; | ||
case "blur" /* InteractStates.BLUR */: | ||
_stateClass = "xg-state-blur" /* ControlsStateClass.BLUR */; | ||
break; | ||
case "immerse" /* InteractStates.IMMERSE */: | ||
_stateClass = "xg-state-immerse" /* ControlsStateClass.IMMERSE */; | ||
break; | ||
} | ||
return _stateClass; | ||
} | ||
} | ||
}); |
{ | ||
"name": "veplayer-mp-wechat", | ||
"version": "1.2.2-alpha.13", | ||
"version": "1.2.2-alpha.14", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "miniprogram": "dist", |
Sorry, the diff of this file is not supported yet
147833
2492