select and slider comp

This commit is contained in:
ori agranat
2019-03-15 21:47:44 +02:00
parent 6863af482c
commit 9ed992cc44
5 changed files with 80 additions and 7 deletions

View File

@@ -74,7 +74,7 @@ export default {
#camera, #main-layout {
background-color: #272e35;
padding: 100px 30px 30px 30px;
/* padding: 100px 30px 30px 30px; */
}
.layout{

View File

@@ -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>

View 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>

View 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>

View File

@@ -1,5 +1,4 @@
@import '../node_modules/iview/src/styles/index.less';
@primary-color: #ff0000;
@link-color : #ff0000;
@primary-color: #0ec4ab;