mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-06 03:31:41 +00:00
added first data emit
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<CVslider name="Exposure" v-model="value.Exposure" :min="0" :max="100"></CVslider>
|
||||
<CVslider name="Exposure" v-model="value.Exposure" @input="handleInput('exposure',value.Exposure)" :min="0" :max="100"></CVslider>
|
||||
<CVslider name="Brightness" v-model="value.Brightness" :min="0" :max="100"></CVslider>
|
||||
<CVselect name="Orientation" v-model="value.Orientation" :list="['Normal','Inverted']"></CVselect>
|
||||
</div>
|
||||
@@ -26,6 +26,10 @@ import CVswitch from '../../components/cv-switch'
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
handleInput(key,val){
|
||||
let msg = this.$msgPack().encode({key,val});
|
||||
this.$socket.send(msg);
|
||||
}
|
||||
},
|
||||
computed:{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user