mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-03 03:01:40 +00:00
37 lines
1.1 KiB
Vue
37 lines
1.1 KiB
Vue
<template>
|
|
<div>
|
|
<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" @input="handleInput('Brightness',value.Brightness)"></CVslider>
|
|
<CVselect name="Orientation" v-model="value.Orientation" :list="['Normal','Inverted']" @input="handleInput('Orientation',value.Orientation)"></CVselect>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import CVslider from '../../components/cv-slider'
|
|
import CVselect from '../../components/cv-select'
|
|
export default {
|
|
name: 'Input',
|
|
props:['value'],
|
|
components:{
|
|
CVslider,
|
|
CVselect,
|
|
},
|
|
data() {
|
|
return {
|
|
t:0,
|
|
a:1
|
|
}
|
|
},
|
|
methods:{
|
|
// handleInput(key,val){
|
|
// let msg = this.$msgPack().encode({key,val});
|
|
// this.$socket.send(msg);
|
|
// }
|
|
},
|
|
computed:{}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
</style> |