mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-25 01:41:40 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -1,20 +1,27 @@
|
||||
<template>
|
||||
<div id="3D">
|
||||
<Slider v-for="slider in sliders" v-bind:key="slider.id" v-model="slider.value"></Slider>
|
||||
<div id="Threshold">
|
||||
<chrange title="Hue" :value="[0,10]"></chrange>
|
||||
<chrange title="Saturation" :value="[0,10]"></chrange>
|
||||
<chrange title="Value" :value="[0,10]"></chrange>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import chrange from './ch-range.vue'
|
||||
import chselect from './ch-select.vue'
|
||||
export default {
|
||||
name: '3D',
|
||||
name: 'Threshold',
|
||||
data () {
|
||||
return {
|
||||
sliders: [
|
||||
{ id: 'lightning', value: 25 }
|
||||
]
|
||||
}
|
||||
},
|
||||
components:{
|
||||
chrange,
|
||||
chselect
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
45
chameleon-client/src/components/ch-range.vue
Normal file
45
chameleon-client/src/components/ch-range.vue
Normal file
@@ -0,0 +1,45 @@
|
||||
|
||||
<template>
|
||||
<row type="flex" justify="start" align="middle" :gutter="1" >
|
||||
<Col>
|
||||
<h4 style="width:100%">{{title}}</h4>
|
||||
</Col>
|
||||
<col >
|
||||
<InputNumber style="margin-left: 5px ;width:10%;" v-model="value[0]" size="small"></InputNumber>
|
||||
</col>
|
||||
<Col span="14">
|
||||
<Slider range style="margin-left:10px;" v-model="value" @on-input="handleInput"></Slider>
|
||||
</col>
|
||||
<col >
|
||||
<InputNumber style="margin-left: 5px ;width:10%;" v-model="value[1]" size="small"></InputNumber>
|
||||
</col>
|
||||
</row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'ch-slider',
|
||||
props:['title','value'],
|
||||
data() {
|
||||
return {
|
||||
content:this.value
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleInput() {
|
||||
this.$emit('input',{[this.title]:this.value});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style >
|
||||
h4 {
|
||||
color: #e6ebf1;
|
||||
}
|
||||
/* .ivu-input-number-input{
|
||||
background-color: #2c3e50 !important;
|
||||
color: #fff !important;
|
||||
} */
|
||||
</style>
|
||||
|
||||
@@ -36,11 +36,11 @@ h4 {
|
||||
color: #e6ebf1;
|
||||
text-align: left;
|
||||
}
|
||||
.ivu-select-selection{
|
||||
/* .ivu-select-selection{
|
||||
background-color: #2c3e50 !important;
|
||||
}
|
||||
.ivu-select-selected-value{
|
||||
} */
|
||||
/* .ivu-select-selected-value{
|
||||
color: #fff !important;
|
||||
}
|
||||
} */
|
||||
|
||||
</style>
|
||||
@@ -32,13 +32,11 @@
|
||||
|
||||
<style>
|
||||
h4 {
|
||||
color: #e6ebf1;
|
||||
text-align: left;
|
||||
}
|
||||
.ivu-input-number-input{
|
||||
background-color: #2c3e50 !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
color: #e6ebf1;
|
||||
}
|
||||
/* .ivu-input-number-input{
|
||||
background-color: #2c3e50 !important;
|
||||
color: #fff !important;
|
||||
} */
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user