@eturnity/eturnity_reusable_components 1.2.31-3d-master.8 → 1.2.31-3d-master.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -456,8 +456,11 @@ export default {
|
|
|
456
456
|
return evaluated
|
|
457
457
|
},
|
|
458
458
|
onInput(value){
|
|
459
|
-
|
|
460
|
-
this
|
|
459
|
+
try{
|
|
460
|
+
const evaluatedVal=this.onEvaluateCode(value)
|
|
461
|
+
this.$emit('on-input',evaluatedVal)
|
|
462
|
+
}catch(err){
|
|
463
|
+
}
|
|
461
464
|
},
|
|
462
465
|
onInputBlur(e) {
|
|
463
466
|
this.isFocused = false
|
|
@@ -534,8 +537,8 @@ export default {
|
|
|
534
537
|
},
|
|
535
538
|
interact(e) {
|
|
536
539
|
e.preventDefault()
|
|
537
|
-
let value=
|
|
538
|
-
|
|
540
|
+
let value=parseFloat(this.value || 0)
|
|
541
|
+
console.log("value",value)
|
|
539
542
|
value+=parseFloat(this.interactionStep)*parseInt(e.movementX)
|
|
540
543
|
this.$emit('on-input',value)
|
|
541
544
|
|