mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-05 03:21:40 +00:00
select and slider comp
This commit is contained in:
@@ -74,7 +74,7 @@ export default {
|
||||
|
||||
#camera, #main-layout {
|
||||
background-color: #272e35;
|
||||
padding: 100px 30px 30px 30px;
|
||||
/* padding: 100px 30px 30px 30px; */
|
||||
}
|
||||
|
||||
.layout{
|
||||
|
||||
@@ -1,23 +1,31 @@
|
||||
|
||||
<template>
|
||||
<div id="InputTab">
|
||||
<Slider v-for="slider in sliders" v-bind:key="slider.id" v-model="slider.value"></Slider>
|
||||
</div>
|
||||
<chslider title="exposure"></chslider>
|
||||
<chslider title="fuck off"></chslider>
|
||||
<chselect title="tet" placeholdert="fuck of this took time" :list="[1,2,23]" ></chselect>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import chslider from './ch-slider.vue'
|
||||
import chselect from './ch-select.vue'
|
||||
export default {
|
||||
name: 'InputTab',
|
||||
data () {
|
||||
return {
|
||||
sliders: [
|
||||
{ id: 'lightning', value: 25 },
|
||||
{ id: 'saturation', value: 30 }
|
||||
]
|
||||
}
|
||||
},
|
||||
components: {
|
||||
chslider,
|
||||
chselect
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
||||
34
chameleon-client/src/components/ch-select.vue
Normal file
34
chameleon-client/src/components/ch-select.vue
Normal file
@@ -0,0 +1,34 @@
|
||||
<template>
|
||||
<row type="flex" justify="start" align="middle" :gutter="10" >
|
||||
<Col span="3">
|
||||
<h4>{{title}}</h4>
|
||||
|
||||
</Col>
|
||||
<col span="12">
|
||||
<i-select v-model="value" size="small" style="width:400px" v-bind:placeholder="placeholdert">
|
||||
<i-option v-for="item in list" :value="item" :key="item">{{item}}</i-option>
|
||||
</i-select>
|
||||
</col>
|
||||
</row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'ch-select',
|
||||
props:{
|
||||
title:"",
|
||||
placeholdert:"",
|
||||
list:[]
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
h4 {
|
||||
color: #e6ebf1;
|
||||
}
|
||||
</style>
|
||||
32
chameleon-client/src/components/ch-slider.vue
Normal file
32
chameleon-client/src/components/ch-slider.vue
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
<template>
|
||||
<row type="flex" justify="start" align="middle" :gutter="10" >
|
||||
<Col span="3">
|
||||
<h4>{{title}}</h4>
|
||||
</Col>
|
||||
<col span="2">
|
||||
<InputNumber v-model="value" size="small"></InputNumber>
|
||||
</col>
|
||||
<Col span="14">
|
||||
<Slider v-model="value"></Slider>
|
||||
</col>
|
||||
</row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'ch-slider',
|
||||
props:['title'],
|
||||
data() {
|
||||
return {
|
||||
value :0
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
h4 {
|
||||
color: #e6ebf1;
|
||||
}
|
||||
</style>
|
||||
@@ -1,5 +1,4 @@
|
||||
@import '../node_modules/iview/src/styles/index.less';
|
||||
|
||||
|
||||
@primary-color: #ff0000;
|
||||
@link-color : #ff0000;
|
||||
@primary-color: #0ec4ab;
|
||||
|
||||
Reference in New Issue
Block a user