Files
PhotonVision/chameleon-client/src/components/InputTab.vue

44 lines
1.0 KiB
Vue
Raw Normal View History

2019-03-15 21:47:44 +02:00
2019-03-10 22:29:29 +02:00
<template>
<div id="InputTab">
<chslider class="spacing" title="exposure" v-model="expval" v-on:input="onChange(expval)"></chslider>
2019-03-16 21:47:34 +02:00
<chslider class="spacing" title="Brightness"></chslider>
2019-03-24 20:01:57 +02:00
<chselect class="spacing" title="Orientation" :list="['Normal','Inverted']" v-model="OrientationVal" v-on:input="onChange(OrientationVal)" ></chselect>
<chselect class="spacing" title="Resolution" :list="['idk']"></chselect>
2019-03-15 21:47:44 +02:00
</div>
2019-03-10 22:29:29 +02:00
</template>
<script>
2019-03-15 21:47:44 +02:00
import chslider from './ch-slider.vue'
import chselect from './ch-select.vue'
2019-03-10 22:29:29 +02:00
export default {
name: 'InputTab',
data () {
2019-03-22 16:44:58 +02:00
return{
expval,
OrientationVal
2019-03-10 22:29:29 +02:00
}
2019-03-15 21:47:44 +02:00
},
components: {
chslider,
chselect
2019-03-22 16:02:57 +02:00
},
2019-03-22 16:25:10 +02:00
methods: {
2019-03-22 16:44:58 +02:00
onChange(i) {
2019-03-23 23:42:24 +02:00
// console.log(i);
this.$socket.send(JSON.stringify(i));
2019-03-22 16:02:57 +02:00
}
2019-03-10 22:29:29 +02:00
}
}
2019-03-22 16:02:57 +02:00
2019-03-10 22:29:29 +02:00
</script>
<style scoped>
2019-03-16 21:47:34 +02:00
.spacing{
margin-top: 20px;
}
2019-03-10 22:29:29 +02:00
</style>